Special variable checked number from variable

Discussion in 'RPG Maker VX Ace' started by LynX, Mar 3, 2016.

  1. LynX

    LynX Veteran Veteran

    Messages:
    81
    Likes Received:
    7
    Location:
    Poland
    First Language:
    Polish
    Hi I making logical puzzle and I need some command to get it work fine.

    Im usining conditional branch to check the X and Y position


    and... I would like to know how set this to work:
    $game_map.events[$game_variables[581]].x = 8


    (where $game_variables[581] the value of the next event ID) 


    because if I put something like that in conditional branch script I got error...


    Please someone help ! I would really aprecciate any sugestion!
     
    #1
  2. Sarlecc

    Sarlecc Veteran Veteran

    Messages:
    454
    Likes Received:
    209
    First Language:
    English
    Primarily Uses:
    RMMV
    If it's going into a conditional branch it should be a double == vs one =. With just one you are setting the x variable to 8 vs checking if it equals 8.
     
    #2
    LynX likes this.
  3. LynX

    LynX Veteran Veteran

    Messages:
    81
    Likes Received:
    7
    Location:
    Poland
    First Language:
    Polish
    Thank you very much :)!
     
    #3
    Sarlecc likes this.

Share This Page