New account registration is temporarily disabled.

LEVEL VARIABLE ISSUE

Posts

Pages: 1
I tried to create a variable that my character can't talk to a certain NPC until he's a specified level (3, in this case), so I chose greater than or equal to. To test it out, I set my character's level to 3, and went to talk to the NPC- but he wasn't there. So I tried a bunch of different stuff. Like, I set the character's level to 4. I set it for "greater than 2" and then set his level at 3, and then 4 also, but it still didn't work. But, when I tried "less than 4" it worked.
So, basically, less than or equal to works, but equal to and greater than or equal to don't. Any help?
Describe your process on how you made that variable. I think I know exactly what you did.
You need to set the variable to the Hero's level with an event first.

Easy way to do this is to create a parallel process on the map somewhere and insert the corresponding variable command.

1. Open Variable Operations in the Event Commands Box.
2. Set the operation to set if it isn't
3. Then set the operand to "YOUR HERO" and "LEVEL"

Done.
I did exactly what Rowan said.
So, there isn't a way to set it so that you have to REACH a certain level, you have to set the Hero's level with an event?

edit: Nevermind, I think I got it.
I'm guessing you're checking the box inside the event page, instead of adding a conditional branch. You should use a conditional branch.
You can either do it the way I said above or you can simply create a fork condition that'll check if the hero in question is at a certain level.

If you use the fork condition method the NPC will always be there regardless of the hero's level (he just won't say anything until the hero is level 3.)

If you want to do it this way then disregard and delete the event I said above, next open the NPC's event commands.

Once there, open the event command editor and click on "Fork Condition (or Conditional Branch w/e)"
Click on the second tab, click the hero box, and then click the "..." button right under the hero's name.
Click "Level is at least..." and input 3 (or w/e level you want.)
Click OK on all the boxes and you'll end up with a fork condition.
Between the word branch and end input what you want the NPC to say.

Done. Remove any preconditions from the NPC if you have any
Pages: 1