If you want the units to take damage once each time they enter a region, you can simply use the "Unit - Unit Enters Region" event.
If you want the units to take damage each second they are in a region:
- Damage Region
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set temp_group = (Units in Damage Region <gen>)
- Unit Group - Pick every unit in temp_group and do (Actions)
- Loop - Actions
- Unit - Cause No unit to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
- Custom script: call DestroyGroup(udg_temp_group)
If you want the units to take damage once each time they enter a region, you can simply use the "Unit - Unit Enters Region" event.
If you want the units to take damage each second they are in a region:
- Damage Region
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set temp_group = (Units in Damage Region <gen>)
- Unit Group - Pick every unit in temp_group and do (Actions)
- Loop - Actions
- Unit - Cause No unit to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
- Custom script: call DestroyGroup(udg_temp_group)
Please do not double / triple post it is against the rules instead hit the edit button on your last post.
Sorry, Kinda new here, But anyway thanks
That is ok.
As for your problem try this.
- UnitEnterDamageRegionAdd
- Events
- Unit - Unit enters Damage Region
- Conditions
- Actions
- Set DamageRegionInt = (DamageRegionInt + 1)
- Unit group - Add (Triggering unit) to DamageRegionUnitGroup
- If (all conditions are true) then (do actions) else (else actions)
- If conditions
- DamageRegionInt greater than 0
- Then actions
- Turn on UnitEnterDamageLoop
- Else actions
- UnitEnterDamageRegionRemove
- Events
- Unit - Unit leaves Damage Region
- Conditions
- Actions
- Set DamageRegionInt = (DamageRegionInt - 1)
- Unit group - Remove (Triggering unit) to DamageRegionUnitGroup
- If (all conditions are true) then (do actions) else (else actions)
- If conditions
- DamageRegionInt less than 1
- Then actions
- Turn off UnitEnterDamageLoop
- Else actions
The above is a more efficient and better option to do.
- UnitEnterDamageLoop
- Events
- Every 1.00 seconds of game
- Conditions
- Actions
- Unit group - Pick every unit in DamageRegionUnitGroup and do actions.
- Loop
- Damage picked unit here.
DamageRegionUnitGroup is a unit group.
DamageRegionInt is an integer.
I also typed everything so the actions may not look exactly the same as above. But they are very close.
Create a dummy unit and give him permanent immolation. Set the immolation radius to 1000-2000 ?
I try that too :/
@deathismyfriend Can I have Demo Map?