Can someone help me optimize this?
Thanks!
-
Killing Spiders
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Spider
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Killing unit)) controller) Equal to User
- SpidersKilled[(Player number of (Owner of (Killing unit)))] Less than (SpidersRequirement[(Player number of (Owner of (Killing unit)))] - 1)
- QuestSpider[(Player number of (Owner of (Killing unit)))] Equal to started
-
Then - Actions
- Set SpidersKilled[(Player number of (Owner of (Killing unit)))] = (SpidersKilled[(Player number of (Owner of (Killing unit)))] + 1)
- Game - Display to (Player group((Owner of (Killing unit)))) the text: ((Spiders killed: + (String(SpidersKilled[(Player number of (Owner of (Killing unit)))]))) + (/ + (String(SpidersRequirement[(Player number of (Owner of (Killing unit)))]))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- QuestSpider[(Player number of (Owner of (Killing unit)))] Equal to started
-
Then - Actions
- Set SpidersKilled[(Player number of (Owner of (Killing unit)))] = SpidersRequirement[(Player number of (Owner of (Killing unit)))]
- Game - Display to (Player group((Owner of (Killing unit)))) the text: ((Spiders killed: + (String(SpidersKilled[(Player number of (Owner of (Killing unit)))]))) + (/ + (String(SpidersRequirement[(Player number of (Owner of (Killing unit)))]))))
- Game - Display to (Player group((Owner of (Killing unit)))) the text: Quest Complete!
- Set QuestSpider[(Player number of (Owner of (Killing unit)))] = requirementcomplete
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Thanks!