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,599
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


Swag collecting in the new randomly generated area. Now the mini map also shows the randomly generated features... And even illustrates the whole "bubble" system" that I made to manage memory... Though that part's inadvertent. We'll just call that "the fog of war"... Yes, that's what we'll do. Nobody will be the wiser! :kaopride:
not me being not lazy for 5 seconds and drawing another char portrait (her name is hazel)
its_hazel.png
Been a while since the last time I made a song remix. Had a blast making this
One thing those jp developer still get wrong about boob physic is that... men's muscly hard pecs can jiggle too.
Definitely glad I haven't released a few of my plugins that are technically done. As I learn more, I find ways to make my code more efficient, and in one case so far, discovered an existing function that did EXACTLY what I created my own function to do.

Forum statistics

Threads
110,454
Messages
1,053,435
Members
143,542
Latest member
Back-AlleySnowman
Top