Thread: [Tutorial] Creating Level Scripts
View Single Post
Old November 16th, 2012 (10:56 AM).
itman itman is offline
Back to ROM hacking. :D
    Join Date: May 2007
    Age: 23
    Nature: Adamant
    Posts: 100
    Originally Posted by 阴魂君 View Post
    Thank a lot ,but I have a question to ask you.I want the level sprite to go work when I go to a town every time,(for example,I want the weather changes at random every time I come to a town),so how to write the sprite?
    Lol, Cooley isn't around anymore...:/

    But it sounds to me that you just want the level script to repeat itself everytime, which is simple.
    Don't use a setvar (or you can if you need to remember).
    But in that case, (we'll use 0x5000 as an example), I'd setvar 0x5000 0x0.
    THEN, when I put in the Flag and Value, I'd put Flag: 5000, Value: 0000.

    If the value is set to zero, then the level script will always repeat itself because that variable will always be zero (unless you use an addvar command, it'll stay 0).
    Reply With Quote