I already posted this on another topic, but I'll post it again.
Lava Kill
Events
Time - Every 0.12 seconds of game time
Conditions
Actions
Set tempGroup = (Units of type Runner)
Unit Group - Pick every unit in tempGroup and do (Actions)
Loop - Actions
Set tempPoint = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
Or - Any (Conditions) are true
Conditions
(Terrain type at tempPoint) Equal to Dungeon - Lava
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Custom script: call RemoveLocation(udg_tempPoint)
Custom script: call DestroyGroup(udg_tempGroup)
I use the variables tempPoint and tempGroup because it removes memory leaks, which cause lag. Make sure you also use the custom scripts to delete the variable values.
Thanks for that but i am no pro at doing triggers so could you please make the trigger and export it as trigger data thing and email it to me at: [email protected]
What is there to explain? The trigger is right in front of you, all you have to do it copy it. I'll show you where you can find each action.
Lava Kill Events Time - Every 0.12 seconds of game time Conditions Actions Set tempGroup = (Units of type Runner) Set variable Unit Group - Pick every unit in tempGroup and do (Actions) Unit group - Pick every unit in group and do actions Loop - Actions Set tempPoint = (Position of (Picked unit)) Set variable If (All Conditions are True) then do (Then Actions) else do (Else Actions) If/Then/Else If - Conditions ((Picked unit) is alive) Equal to True Boolean Or - Any (Conditions) are true Or - Any conditions are true Conditions (Terrain type at tempPoint) Equal to Dungeon - Lava Terrain Type Comparison Then - Actions Unit - Kill (Picked unit) Unit - Kill Else - Actions Custom script: call RemoveLocation(udg_tempPoint) Custom script Custom script: call DestroyGroup(udg_tempGroup) Custom script
ahh ok now i understand ^^ But if i was too do this on my map, if you have played it you would notice theres frogs hidden off the paths, You gota find em all too get a diffrent ending >.< how would you do this?
I surpose you could make a new tile which looks the same but rename it, but i dunno how too do that stuff
oK, I tryed this heaps but i was always stumped on this part: Unit Group - Pick every unit in tempGroup and do (Actions) Unit group - Pick every unit in group and do actions Loop-actions
Now my problem is that (actions) part it just comes up red so i can't click 'ok' and then i click on the red actions and try and find Loop-action.
Please help me! and please don't say i shouldn't even do this map because everyone has to start somewhere!