killerrj8 Posted May 14, 2012 Share Posted May 14, 2012 How would I do that ? In the tutorial of the Bendu Olo quest it's about one person who dies and then the quest goes on. But if I want to have a crowd of 6 bandits killed... How would I do this ? What would be the best way ? Link to comment Share on other sites More sharing options...
DeadlyCobraXXX Posted May 14, 2012 Share Posted May 14, 2012 Best way that I know how to do it is by using If statements and IsDead commands with a starting event of OnDeath or OnDying. Example: Event OnDeath(Actor akKiller) if (Alias_Bandit01.GetReference().IsDead() == True) && (Alias_Bandit02.GetReference().IsDead() == True) && (Alias_Bandit03.GetReference().IsDead() == True) MyQuest.SetStage(5) endIfendEvent Link to comment Share on other sites More sharing options...
dfac364 Posted May 14, 2012 Share Posted May 14, 2012 (edited) How would I do that ? In the tutorial of the Bendu Olo quest it's about one person who dies and then the quest goes on. But if I want to have a crowd of 6 bandits killed... How would I do this ? What would be the best way ? Set the objective message to say the player has to kill all 6 bandits than set them as individual stages without objective displays (so like81,82,83) than for the final stage with the objective display where they are all dead (90) set the condition that all the other stages have to be complete first. Edited May 14, 2012 by dfac364 Link to comment Share on other sites More sharing options...
DeadlyCobraXXX Posted May 14, 2012 Share Posted May 14, 2012 ^ That would work too. Link to comment Share on other sites More sharing options...
killerrj8 Posted May 14, 2012 Author Share Posted May 14, 2012 okay, and where should i put the script Link to comment Share on other sites More sharing options...
littleork Posted May 14, 2012 Share Posted May 14, 2012 you would put that script on the bandit Link to comment Share on other sites More sharing options...
killerrj8 Posted May 14, 2012 Author Share Posted May 14, 2012 Yes the script for one to be killed I know. But what if I want to check if all are dead ? Link to comment Share on other sites More sharing options...
littleork Posted May 14, 2012 Share Posted May 14, 2012 Wouldnt it be the same thing? when one die, they check if they are all dead. If all of them are dead, they go to the next stage, if they arent...the code still execute until they are all dead. Maybe I dont get your question but it seems that the script would look as the target dies if all the six targets are dead and go to the next stage if they all are. Link to comment Share on other sites More sharing options...
killerrj8 Posted May 14, 2012 Author Share Posted May 14, 2012 (edited) Well, my Problem is that I don't know how I can make the script know WHO should be dead. I can't put a script in an actor because it says "Alias Bandit01 is undefined " blablabla.And even if I add it in the Properties it doesn't get defined as well. I don't know why Edited May 14, 2012 by killerrj8 Link to comment Share on other sites More sharing options...
littleork Posted May 14, 2012 Share Posted May 14, 2012 What i think you need to do is in your alias is to choose the checkbox find matching reference and add a conditon: Getisid and choose lvbandit*****, that part could be tricky tho since you would need to choose what kind of bandit would work for the quest (unless you had an OR so you can put more than one condition) Link to comment Share on other sites More sharing options...
Recommended Posts