Variables

● ARCHIVED · READ-ONLY
Started by randallstevens 12 posts View original ↗
  1. So I'm new to VXace and I'm trying to create a NPC that changes it's conversation once you hit a certain level. I'm having trouble making it work.

    Any help is appreciated.
  2. Moved to support. :)

    Could you post a screenshot of your event? It will make it easier to isolate the problem. :)
  3. Set a variable to receive the player's level (\v[0001] for this example), then set a conditional branch.

    For example:

    If \v[0001] is 10 or greater = Display Text "You look experienced. I could use your help, if you're up for it."

    else = Display Text "Hey, can you he.... oh wait. Nevermind. You're a newb."
  4. I'm trying to set the event with two pages:

    I want this to be the page that shows when you're level is 5 or higher:

    page1.jpgpage2.jpg
  5. You have the check the variable outside of that event.

    You can't have the event that is checking a variable, be dependant on that same variable. So for page #1 remove the Condition.

    edit: Just a note... I Personally feel that Conditional Branches are tidier. I tend to avoid using Event Pages when not absolutely necessary. Escpecially when the branch is just one or two tiers deep. But, whatever floats your boat. ^_^
  6. Or simply have the following on a single event page (without a condition):

    Variable 1 is Name's level.

    Conditional Branch: Variable 1 >= Levelyouwant

    if yes: Show Text (...)

    if no: Show Text (...)

    end
  7. regendo said:
    Or simply have the following on a single event page (without a condition):

    Variable 1 is Name's level.

    Conditional Branch: Variable 1 >= Levelyouwant

    if yes: Show Text (...)

    if no: Show Text (...)

    end
    That's exactly what I said. Haha.
  8. Ah, didn't see that edit earlier.
  9. Levi said:
    edit: Just a note... I Personally feel that Conditional Branches are tidier. I tend to avoid using Event Pages when not absolutely necessary. Escpecially when the branch is just one or two tiers deep.
    I agree with this as well. It's a bit easier to deal with everything on a single page, imho.

    GB
  10. I got it working. Thanks for the replies- they helped a lot!
  11. randallstevens said:
    I got it working. Thanks for the replies- they helped a lot!
    For those who might search for this type of solution in the future, are you able to post screenshots of what you did?

    GB
  12. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.