iLeGiTiMx Posted September 4, 2015 Author Share Posted September 4, 2015 Hey bros,how can i give an item to a player once?Current:![](http://i.imgur.com/VWAgDfc.png)But this is not so good, because a player allways become this item if he talk to the npc.How can i get rid of this?Thank you :) Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted September 4, 2015 Share Posted September 4, 2015 You just made me hungry… I want Wurstbrot now... Anyways, you can change the Player variable (make one that's something like, gab Wurstbrot, or something) and set that to true, then have ha conditional that, if the variable = true then give the player nothing, if it's false, give then the item and set the variable to true. Link to comment Share on other sites More sharing options...
iLeGiTiMx Posted September 4, 2015 Author Share Posted September 4, 2015 Sorry :D okay i tried this:![](http://i.imgur.com/GjuvFGA.png)But now the npc doesn´t spawn. Propably it only spawns now if A is true. How to make it right? :D Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted September 4, 2015 Share Posted September 4, 2015 I did this, and it works, though my game might have an issue with double clicking… Anyways, look at this and see how I set it up![](http://s18.postimg.org/e2k4fkeix/Conversation.png)The way you have it set up, you would have to have a second page, and only one player would get bread before the Event stopped giving the item to anyone. (Also, these are Events, not NPCs, similar but not exactly the same) Link to comment Share on other sites More sharing options...
iLeGiTiMx Posted September 4, 2015 Author Share Posted September 4, 2015 Whaaaat how to set Else and ifs? :o And are u german? Because you wrote Wurstbrot Mann :DI don´t get it how to do this if and else thing :s Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted September 4, 2015 Share Posted September 4, 2015 Lol, I speak some basic German, so kinda XD I just saw you were using German so I'm throwing some in to make it clearer.So when you add a command, like the Event speech, there is a group called "Flow Control" and a button labeled "Conditional Branch" and that's the one you want to use Link to comment Share on other sites More sharing options...
iLeGiTiMx Posted September 4, 2015 Author Share Posted September 4, 2015 Ah :D and can i do this for every single player? I don´t want that player1 gets Wurstbrot, that player2 can´t get it anymore.. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted September 4, 2015 Share Posted September 4, 2015 Yes, with the player variable, it allows each player to experience the Event, with the self switch, it will make the Event only do it once and then it switches. Link to comment Share on other sites More sharing options...
iLeGiTiMx Posted September 4, 2015 Author Share Posted September 4, 2015 ![](http://i.imgur.com/31GnGUD.png)Works, thanks :heart: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now