Jump to content

DragonNight

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by DragonNight

  1. Can someone explain why flags doesn't works here?

    Map: 34 - Route 30

    Script 11

    Fanfare 1500

    Lockall

    Faceplayer

    Checkflag 310 -- check flag value and store it in Last Result

    CheckLR 1 func_4 -- case be 'false or 1' (I believe) func_4 will be called

    Message 4 -- I’m not a Trainer. But if you look one in the eyes, prepare to battle.

    WaitButton

    CloseMsgOnKeyPress

    Releaseall

    End

    I've changed this script for test, below the func_4

    Message 0 -- Go, RATTATA! Tackle!

    WaitButton

    CloseMsgOnKeyPress

    Setflag 310 -- set the flag

    Releaseall

    End

    What I've done here was if flag 310 is not checked or set value 1 the function 4 will be called and the message 0 will be showed.

    When the script is runned again, the checkflag must put 0 (or a diferente value I believe) in LR and the function must not be executed, instead the message 4 will appear.

    But when I talk to girl, she only says "Go, RATTATA! Tackle!" like if the flag isn't be setted in function 4:

    img5.png

    Someone here can show me a light how flags works in the right way?

    img5.png.498358dcd89017ae8e0af2b4a11af14

×
×
  • Create New...