highonpaint Posted October 14, 2012 Author Share Posted October 14, 2012 Hey guys I am using e.a 3.0.15 and when i try setting up conditional branches it dosnt work, I am trying to do a similar thing I did on e.o (which worked).ok so I want to set it up where you can accept a quest from a person - lets call him bobthen bob tells you he need idk lets say 5 logs.you go and get the 5 logs and then bob rewards you by giving you idk lets say 10 gold.I have tried setting it up a number of ways but when I try to run the event nothing happens.(I also tried doing a different thing in a conversation, where depending on what class you are it gives you different chat oprions but that didnt work either)I just need to know how to start the event off thats all thanks Link to comment Share on other sites More sharing options...
abhi2011 Posted October 15, 2012 Share Posted October 15, 2012 Could you paste your event system page. Link to comment Share on other sites More sharing options...
highonpaint Posted October 15, 2012 Author Share Posted October 15, 2012 > Could you paste your event system page.with the entire event inside or just part? Link to comment Share on other sites More sharing options...
abhi2011 Posted October 15, 2012 Share Posted October 15, 2012 Just the part if you prefer. Link to comment Share on other sites More sharing options...
highonpaint Posted October 15, 2012 Author Share Posted October 15, 2012 I cant even do it now as his event system in 3.0.15 has a bug Link to comment Share on other sites More sharing options...
abhi2011 Posted October 15, 2012 Share Posted October 15, 2012 Use prtScreen Link to comment Share on other sites More sharing options...
highonpaint Posted October 15, 2012 Author Share Posted October 15, 2012 > Use prtScreenAs the coding is too big for a print screen I will just add the coding here as text:1.@conditionalbranch - has log - 02.@showmessage - Hello there young one may I ask you something?3.@showchoices - I am too old to collect wood for my family, could you do it for me? (Yes - 4) (No- 33) ( Leave - 36)4.@showmessage - oh thats great5.@show message - ok so I need 10 logs, I will wait here for your return6.@conditionalbranch - has log - 17.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)8.@conditionalbranch - has log - 29.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)10.@conditionalbranch - has log - 311.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)12.@conditionalbranch - has log - 413.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)14.@conditionalbranch - has log - 515.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)16.@conditionalbranch - has log - 617.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)18.@conditionalbranch - has log - 719.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)20.@conditionalbranch - has log - 821.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)22.@conditionalbranch - has log - 923.@showchoices - Do you have my logs yet? (Yes - 35) (No - 33) (Leave - 36)24.@conditionalbranch - has log - 1025.@showchoices - Do you have my logs yet? (Yes - 36) (No - 33) (Leave - 36)26.@showmessage - Oh Great, I will pay you 2g for each of them.27@showchoices - Is this ok? (Yes - 28) (No - 33) (Leave - 36)28.@Showmessage - Great here you go.29.@changeitem - take item - log - 1030.@changeitem - give item - gold - 2031.@changeexp - give exp - 1532.@exitevent33.@show message - oh thats too bad.34.@exitevent35.@showmessage - You don't have enough, please return when you have more36.@exitevent Link to comment Share on other sites More sharing options...
abhi2011 Posted October 15, 2012 Share Posted October 15, 2012 Why do you make multiple coditional brances 2 check whether the player has logs starting from 1 all over to 10? rather make 1 that checks if he has 10 and then do it. That was your problem right? Link to comment Share on other sites More sharing options...
highonpaint Posted October 15, 2012 Author Share Posted October 15, 2012 I created multiple coditionl branches so the player gets a answer even if he dosnt have 10 and my problem is that the event dosnt even start Link to comment Share on other sites More sharing options...
abhi2011 Posted October 16, 2012 Share Posted October 16, 2012 It seems that line 1 has a conditional brach that checks if the player has no logs. So check your invent for logs and drop it. Link to comment Share on other sites More sharing options...
highonpaint Posted October 16, 2012 Author Share Posted October 16, 2012 Tried that Link to comment Share on other sites More sharing options...
abhi2011 Posted October 16, 2012 Share Posted October 16, 2012 I don't seem to know why it shouldn't start. I suppose only Deathbeam can help you. Link to comment Share on other sites More sharing options...
Agoraphobic Posted October 16, 2012 Share Posted October 16, 2012 This actually took me a while to figure out how to do this. The check item amount is still broken though and needs a source fix. It doesn't correctly check the amount of items.The next two pictures show how it should look and I'm going to break down what each line does after it.This is what it needs to look like in a nutshell (Can add more stuff if you so desire).>! ![](http://i.imgur.com/XjueU.jpg) The Conditional Branch>! ![](http://i.imgur.com/ha3pH.jpg) (1) This is just a simple show message that makes the npc acknowledge you're talking to him.(2) This is the conditional branch to check if you have the logs. The positive bar is telling it what line of code to go to when the condition is met, while the negative bar is telling it what line of code to go to if the condition is not met.(3)It appears the code won't run in the conditional branch unless you add exit events in right the conditional branch and after all the positive line of code.(4)The conditional branch runs this line if the condition works, then it keeps running each line after, until you add an exit event. The exit event after tells the branch that's all the positive code that needs to be ran.(5) Ends the positive Line of code.(6)The negative line of code starts here and runs until I add another exit event or there is no other line of code. Link to comment Share on other sites More sharing options...
highonpaint Posted October 16, 2012 Author Share Posted October 16, 2012 > This actually took me a while to figure out how to do this. The check item amount is still broken though and needs a source fix. It doesn't correctly check the amount of items.> > The next two pictures show how it should look and I'm going to break down what each line does after it.> > This is what it needs to look like in a nutshell (Can add more stuff if you so desire).> > > >! ![](http://i.imgur.com/XjueU.jpg) > > The Conditional Branch> > > >! ![](http://i.imgur.com/ha3pH.jpg) > > (1) This is just a simple show message that makes the npc acknowledge you're talking to him.> > (2) This is the conditional branch to check if you have the logs. The positive bar is telling it what line of code to go to when the condition is met, while the negative bar is telling it what line of code to go to if the condition is not met.> > (3)It appears the code won't run in the conditional branch unless you add exit events in right the conditional branch and after all the positive line of code.> > (4)The conditional branch runs this line if the condition works, then it keeps running each line after, until you add an exit event. The exit event after tells the branch that's all the positive code that needs to be ran.> > (5) Ends the positive Line of code.> > (6)The negative line of code starts here and runs until I add another exit event or there is no other line of code.Thanks agor, I will lock topic now 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