donnydarko said:
set <groupOfFurbolgs> = <Units in <Playable map> owned by <Neutral wathever> matching < <Matching unit> type equal to <Futbolg> >
Turn on <A FURBOLG WAS KILLED>
1) Add new action
2) Select "Set Variable"
3) Click on "Variable" tag
4) If the unit-group variable exists, jump to (9)
5) Click on "Edit variables"
6) Click on the green X (New variable)
7) Type the variable name and select "Unit group" in variable type. Don't check the Array checkbutton, and click "OK".
8) Click OK in the variable screen
9) Select your unit-group variable in the combobox and click OK
10) Click on "Value" tag
11) Select "Units owned by Player matching condition"
12) Click on "Player" tag and select "Neutral hostile". Click OK
13) Click on "Condition" tag
14) Select "Unit-type comparison"
15) Click on first "Unit-type" tag
16) Click on "Triggering unit" and select "Matching unit", click OK
17) Click on second "Unit-type" tag (I think is shows "Footman" text)
18) Select the Furbolg unit-type (In Neutral - Melee - Northrend I think)
19) Click OK until you go back to the trigger editor
20) Ta-da! (I hope so)
Sorry, there's no "Units in <region> owned by <Player> matching <condition>"
You can add a region condition if you want the Furbolg to be in a specific region.
donnydarko said:
does neutral whatever in the above string mean neutral hostile?
If your Furbolgs belong to Neutral Hostile, then yes. It means the neutral player that owns all furbolgs.
I am trying to create a scenario in which all furbolgs must be killed and all hostages rescued in order to return the quest to the quest giver
Create a unit-group with all hostages units, the same way you create the Furbolg unit-group and have the next trigger
Code:
Event
A unit is rescued
Conditions
< <Rescued unit> in group <groupOfHostages> > equal to <true>
Actions
Remove <Rescued unit> from <groupOfHostages>
((Here you can do something like the unit greeting you for the rescue or showing info about the quest status))
Run <FURBOLG QUEST COMPLETED> <checking> conditions
Change the conditions in FURBOLG QUEST COMPLETED to also check for <groupOfHostages> to be empty
Code:
Conditions
...
<Number of units in <groupOfHostages> > equals to <0>
Err... Hope it helps you