• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
C
Reaction score
1

Profile posts Latest activity Postings About

  • Happy Anniversary, Happy Anniversary, Happy Anniversary, Happy Anniversary, Happy Anniversary!
    A
    Yeah. I used to play TNRPG a lot. I'm a C1 vet. I had BBE back then.
    That's... I didn't follow any of that. I'm just glad I found the answer before having to wade through all that thinking it might help. :P

    I've also extensively modified the scripts too to incorporate a different control style (sorry, no spoilers, but it's good!), so it may have been that any answers wouldn't have helped me in my situation anyway.
    I solved it just now, actually, while replying to you. Turns out Ruby is weird, and if a variable is defined within a block (e.g. a "do" loop), then it becomes undefined again once you exit that block. The solution is to define the variable before the "do" loop begins (i.e. copy the line "ret=false" to before the "do" loop), and then it'll be usable after the loop finishes.

    It's not a bug as such, because sometimes programmers will want to use that property of blocks (e.g. use the same name for two different variables, one of which is in-loop only and the other is out-of-loop only), but in those cases I think it's just bad programming style.

    I considered this possibility before, but I dismissed it because it was a stupid thing for Ruby to do. Turns out that's how it works.

    So yeah, it's fine now. Thanks for the offer of help anyway. Might be interested to see what you came up with, though, if you want to PM me your working.
    "Best of luck on your project, although, this seems to me like one that'll become popular."
    How did you know xD?
    I kinda work the same way, But when I get bored or lost interest I work on somethin else. Right now im working on the maps then gonna add events... This is only because I'm not really sure how im gonna start the beginning lol... Good luck on your game i'll be watching it!
    Thanks, I feel my maps have no theme then again im too hard on myself... I DEMAND PERFECTION!!! :) AI = Artificial Intelligence I freelance program AI as a profession... But i use C++ And Ruby is... Um... Different kinda easier... but i didnt really read my book cover to cover tet :)
  • Loading…
  • Loading…
  • Loading…
Back
Top