Heya, This is probably a simple thing to do but I cant figure it out.
I'm creating a maze map (just to learn how to use the editor)
Different terrain does different thing when walked on, so for lava it does damage.
This is the script I have setup
Not sure if there is a better way to do that, if so tips are greatly welcomed.
Im trying to make it so if a unit has a certain item then it wont do damage. Something like this im guessing.
If ((Item carried by (Picked unit in slot 1) Equal to ITEM then do (Do nothing) else do ((Unit - Cause (Picked unit) to damage (Picked unit), dealing X damage of attack type Spells and damage type Fire.
Anyone able to help?
I'm creating a maze map (just to learn how to use the editor)
Different terrain does different thing when walked on, so for lava it does damage.
This is the script I have setup
Trigger:
- Lava
- Events
- Time - Every 0.05 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then actions) else do (Else actions)
- If - Conditions
- (Terrain type at (Position of (Picked unit))) Equal to Dungeon - Lava
- Then - Actions
- (Unit - Cause (Picked unit) to damage (Picked unit), dealing X damage of attack type Spells and damage type Fire
- Else - Actions
- Do Nothing
- If - Conditions
- If (All Conditions are True) then do (Then actions) else do (Else actions)
- Loop - Actions
- Custom script: call DestroyGroup(GetLastCreatedGroup())
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Events
Not sure if there is a better way to do that, if so tips are greatly welcomed.
Im trying to make it so if a unit has a certain item then it wont do damage. Something like this im guessing.
If ((Item carried by (Picked unit in slot 1) Equal to ITEM then do (Do nothing) else do ((Unit - Cause (Picked unit) to damage (Picked unit), dealing X damage of attack type Spells and damage type Fire.
Anyone able to help?