jaekx Posted October 30, 2012 Author Share Posted October 30, 2012 I have dialogue and a reward, I would like for the dialogue and reward to only happen for a player once. After the dialogue and reward I would like to jump to text that says "Ya already did this now leave" sort of thing. Ive been messing with swtiches and haven't yet come up with a way to kill part of the event after its been executed once. Help? (JCs system you could do it quite easily with switches and pages) Link to comment Share on other sites More sharing options...
Ertzel Posted October 30, 2012 Share Posted October 30, 2012 Check out [this topic by Deathbeam](http://www.touchofdeathforums.com/community/index.php?/topic/130238-ea-event-system-tutorial/). He explains his event system a little in there. Link to comment Share on other sites More sharing options...
iraasta Posted October 30, 2012 Share Posted October 30, 2012 You need to change Player Switch for example from 0 to 1, and at the beginning make condition branch in which it will check the value assigned to this particular switch. If it is equal to 0 show quest's "first time" text. Else if it is equal to 1 show text "Ya already did this now leave".Have you been programming ever before? ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)If i explained sth not good enough then write it. Link to comment Share on other sites More sharing options...
jaekx Posted November 1, 2012 Author Share Posted November 1, 2012 I understand what your saying ill give it a shot, i messed with switches a bit but i set it up differently. Ill let you know if i fail lol. Link to comment Share on other sites More sharing options...
jaekx Posted November 1, 2012 Author Share Posted November 1, 2012 Alrite this is what I didset player variable = 0conditional branch if = 0positive -> "Hey how are you?"set player variable =1exit eventnegative -> "I already asked how you were!"exit eventand all it does is display "hey how are you" Link to comment Share on other sites More sharing options...
Ertzel Posted November 1, 2012 Share Posted November 1, 2012 If your first action in your event is setting the variable to 0, then it will always go to the "Hey how are you" condition as it will always set that variable when the user does anything with the event…. Link to comment Share on other sites More sharing options...
jaekx Posted November 2, 2012 Author Share Posted November 2, 2012 Yeah, i realized that after a while of it not working, do you know how to do what im attempting to do ertzel? I know how to do it in JCs event system very easily, Deaths is somewhat hard. His tutorial doesnt cover it at all either. Link to comment Share on other sites More sharing options...
iraasta Posted November 2, 2012 Share Posted November 2, 2012 Delete first line with player variable = 0\. I suggest to change all variables to zero in event on first map if variable "first spawn" is 1 and on end change it to 0\. I always do it, it's good way to be sure all variables for new player are equal to 0 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