View Single Post
  #7318    
Old September 18th, 2012 (8:09 AM). Edited September 18th, 2012 by Inkblots.
Inkblots's Avatar
Inkblots Inkblots is offline
     
    Join Date: Sep 2012
    Location: Canada
    Age: 27
    Gender: Female
    Nature: Calm
    Posts: 219
    Okay, I'm brand new to this, so I'm sure it's a really simple fix, but I cannot see what's wrong for the life of me.
    I'm just trying to do a simple yes/no script in which the player receives a Treecko if they push yes (copying a script almost directly from a tutorial by Full Metal). However, when I go to test it, "yes" ends up getting treated the same as "no", and I can't get the pokemon. Can anybody see what I did wrong?

    Game: Ruby
    Type: Person event
    Editor: PKSV
    Script:
    Spoiler:
    #dynamic 0x740000

    #org @main
    lock
    faceplayer
    checkflag 0x200
    if 0x1 jump @haveit
    message @want
    callstd MSG_YESNO
    if 0x1 jump @yes
    jump @no

    #org @haveit
    message @howsit
    callstd MSG_NORMAL
    release
    end

    #org @yes
    setflag 0x200
    addpokemon TREECKO 5 00 0 0 0
    message @herego
    callstd MSG_NORMAL
    release
    end

    #org @no
    message @dontwant
    callstd MSG_NORMAL
    release
    end

    #org @want
    = I have this TREECKO, but I don't want it. \nWould you like it?

    #org @howsit
    = How is my TREECKO doing?

    #org @dontwant
    = Oh, ok. I'll find another trainer.

    #org @herego
    = Here you go. Please take good care of my TREECKO!




    Thanks to Ash493 and Alignment, it was the missing "compare" line that was causing the problem Ash493's recommendation worked, but I'll probably be using Alignment's solution in the future just because I prefer words over numbers