Welcome Forums Get help Code Derps

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1504
    Comprehensible
    Moderator

    Hello!
    I was just trying to program a scene, and I’m really pretty tired at the moment. I was wondering if any of you had more awake eyes, and could see what I’m doing wrong. Here’s the code:

    if hero lacks token “token”
    Character says “Random stuff 1”
    else
    Character says “Random stuff 2”
    Character moves to (location)

    For some reason, when hero lacks “token,” Character is saying “random stuff 1,” and then moving to (location.) It’s really odd, and I can’t think of a reason Character is doing that. I’m tired, so does anyone see something I haven’t? Thank you so much!

    #1505
    Comprehensible
    Moderator

    BTW, there is proper indentation, it just didn’t show up.

    #1506
    deWiTTERS
    Keymaster

    Can you share the game, and say which level it is? Then I can take a look at it

    #1508
    Comprehensible
    Moderator

    Here’s the link: http://rpgplayground.com/the-game/?prj=597bad0cede9b20004bc2046
    The scene is “snake_battle_1,” and the character is the little fairy on screen. Thank you!

    #1538
    deWiTTERS
    Keymaster

    The line with “Peri walks to 2, -2” also needs to have 4 spaces in front of it. Then it should work.

    #1549
    Comprehensible
    Moderator

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Get help’ is closed to new topics and replies.