Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Player Switches in the Event System


Infinite Studios
 Share

Recommended Posts

Hello all,
Um, to put this plainly, I'm pretty much a total noob. I'm not bad at mapping, but I can't figure out how to add the player switches to the new event system. Let me explain what I'm trying to do:

I have an NPC that acts as a sort of lore/tutorial for the first level, and at level 10 I want him to say something different than he does before that, to give the players a kind of quest to retrieve 10 potions. What is the best way you can think of to make him react differently to level 10+ players, and what is the best way to make retrieval quests? I can't find the source to edit it, so if it involves source edits you'll have to explain where I go to do that.

Thanks for your time to read this and type any reply you do,
Captian Zaco @ Infinite Studios
Link to comment
Share on other sites

Edit Sorry for the delay, having issues with the screen cutting off. Below is step by step what you do in each box. Forgot a step and added it back. Also the text need to be set to player, it kinda switched it up on me.
Truly sorry, just one of those forgetful days.

Although you can do what you wanted to do with Switches, a conditional branch in the events will suffice and is cleaner.

Here is how the actual code needs to be structured (although is slightly cut off).

>! ![](http://i.imgur.com/J6toN.jpg)

Here is step by step guide for each box.

>! ![](http://i.imgur.com/yhfCP.jpg)

Here you can see him saying tutorial stuff, because I'm Level 9 or lower. However at Level 10, he says something new! Only if we had some bread!

>! ![](http://i.imgur.com/Hds8R.jpg)

Oh wait I spawned some in and have some now!

>! ![](http://i.imgur.com/goh58.jpg)

Right now you can only check if the player has the item, however it doesn't let you check for the amount of an item, although you can take any amount of the item.
Also you can't assign it to a variable to do the same thing.
Link to comment
Share on other sites

Well you could always add a check in checkplayerlevelup if the player turns level 10 to change a player switch to true. Then make an event that says something, but if that player variable is true then it says something different for players over level 10\. But that would require code edits, so you'll need a copy of visual basic 6.
Link to comment
Share on other sites

Thank you so much! That's incredibly helpful! Players will just have to remember what their quests are, (or write them down) but this is so much better now! I started with EE 2.7 so I'm always impressed with how simple EO is to use now. :P Never learned to code or anything, really just mapped. Thanks again! that helps a lot!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...