Code Derps

Make Forums Get help Code Derps

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  Comprehensible 3 weeks, 1 day ago. This post has been viewed 109 times

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

    Comprehensible
    Participant

    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
    Participant

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

    #1506

    koonsolo
    Keymaster

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

    #1508

    Comprehensible
    Participant

    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

    koonsolo
    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
    Participant

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.