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 Profile Posts

Winter Cover.png
Peeps, can we just take some time to appreciate the mods here? They're so friendly, and they're always there for us when we need help. Now that I've been here for two years, I want to thank the mods and admins for keeping it positive here on the forum. They're the reason I've stayed so long! Here's to you!
If it gets 6 degrees hotter we've reach 100
I am finally done making the 'superbosses' in my game!
I'm happy because oh my gosh they were a lot of work, but I'm also sad because I love database work... And also because I loved making stupid powerful bosses ._.
Question for anyone who reads Slip into Ruby or Jump into Javascript: do I sometimes get too "explainy" with the methods/functions? Would it be more useful if I stuck to explaining what the code is doing rather than also delving into minutiae of the technical side of it?

Forum statistics

Threads
111,121
Messages
1,058,487
Members
144,343
Latest member
kin_jpg
Top