Jump to content

How to kill more than one person and activate a next stage?


killerrj8

Recommended Posts

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)

endIf

endEvent

Link to comment
Share on other sites

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 by dfac364
Link to comment
Share on other sites

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

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 by killerrj8
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...