Specifying particular units for victory conditions
Trying to rewrite the victory conditions for the Human Expansion Campaign No.3 - "Once more into the Breach"
default script looks like this...
AddTrigger(
function()
return GetNumOpponents
GetPlayerDa
function() return ActionVictory() end)
I am trying to make it so once you have destroyed all the strongholds and/or fortresses, and taken Turalyon to the circle of power it then allows you to win.
So far I have tried this
AddTrigger(
function() return GetPlayerData(4, "UnitTypesCount", "unit-stronghold") == 0 end,
function() return IfNearUnit("this", "==", 1, "unit-knight-
function() return ActionVictory() end)
Only trying it for one of the enemy players just to see if it works, but all I have been getting so far is constant "incorrect argument" errors. What parameters do I need to use to make it so when specific buildings/units of the enemy are destroyed, it then enables victory for the player?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Wargus Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Travis for more information if necessary.