Status
Not open for further replies.

randallstevens

Villager
Member
Joined
Jul 29, 2012
Messages
6
Reaction score
0
Primarily Uses
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.
 

Levi

Veteran
Veteran
Joined
Jun 7, 2012
Messages
798
Reaction score
143
First Language
English
Primarily Uses
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."
 

randallstevens

Villager
Member
Joined
Jul 29, 2012
Messages
6
Reaction score
0
Primarily Uses
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
 

Levi

Veteran
Veteran
Joined
Jun 7, 2012
Messages
798
Reaction score
143
First Language
English
Primarily Uses
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. ^_^
 
Last edited by a moderator:

regendo

Villager
Member
Joined
Mar 13, 2012
Messages
76
Reaction score
8
First Language
German
Primarily Uses
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
 

Levi

Veteran
Veteran
Joined
Jun 7, 2012
Messages
798
Reaction score
143
First Language
English
Primarily Uses
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.
 

regendo

Villager
Member
Joined
Mar 13, 2012
Messages
76
Reaction score
8
First Language
German
Primarily Uses
Ah, didn't see that edit earlier.
 

Genii Benedict

Supervillain, Extraordinaire
Veteran
Joined
Jun 13, 2012
Messages
333
Reaction score
115
First Language
English
Primarily Uses
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
 

Genii Benedict

Supervillain, Extraordinaire
Veteran
Joined
Jun 13, 2012
Messages
333
Reaction score
115
First Language
English
Primarily Uses
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
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,558
Reaction score
5,602
First Language
Dutch
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I want to work on my reboot, but I don't have time to do it. ;_;
4y195n.png
big image so i posted it as a spoiler
Just a reminder to back your projects up. Do it now! :yamero:
If there was an award for best game dev procrastination, I'd say 'meh, I'll pick it up tomorrow' >_>
Honestly though, I've been staring at the same half-made map for a while now haha! Ahhh, I'm so tired of mapping!
Time to add the support for import/export default RMXP maps. Maybe there will be customized tileset support later. In theory, I can reimplement the entire RMXP inside this RMXP-made game to make more RMXP games. :kaojoy:RMXPFORMATSUPPORT.jpg

Forum statistics

Threads
111,269
Messages
1,059,781
Members
144,567
Latest member
Sysce
Top