- Joined
- Dec 16, 2017
- Messages
- 344
Hello guys, i've found this spell in the forum, is there anyway i can convert it to make it give -Armor but so it stacks?
Original thread Fire & Earth Spell Pack
Original thread Fire & Earth Spell Pack
-
DDS Main
- Events
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Nature's Blessing (Genesaur BRUTE) for (Damage source)) Greater than 0
-
Then - Actions
- -------- if loop trigger is not used we turn it on --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SF_Switch Equal to 0
-
Then - Actions
- Trigger - Turn on Storming Flame loop <gen>
- Else - Actions
-
If - Conditions
- -------- increasing index --------
- Set SF_CastNumber = (SF_CastNumber + 1)
- -------- confirms that ability used by one more unit --------
- Set SF_Switch = (SF_Switch + 1)
- Set SF_Off[SF_CastNumber] = True
- -------- establish damage source --------
- Set SF_Hero[SF_CastNumber] = (Damage source)
- -------- define time of strength bonus --------
- Set SF_Time[SF_CastNumber] = (10.00 + (5.00 x (Real((Level of Nature's Blessing (Genesaur BRUTE) for SF_Hero[SF_CastNumber])))))
- -------- increasing Hero's strength --------
- Hero - Modify Strength of SF_Hero[SF_CastNumber]: Add 1
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
DDS Add Unit
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- ((Entering unit) is in DDS_Detect) Equal to False
-
Actions
- Trigger - Add to DDS Main <gen> the event (Unit - (Entering unit) Takes damage)
- Unit Group - Add (Entering unit) to DDS_Detect
-
Events
-
DDS Init
-
Events
- Map initialization
- Conditions
-
Actions
- Set Temp_Group = (Units in (Playable map area))
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
- Trigger - Add to DDS Main <gen> the event (Unit - (Picked unit) Takes damage)
- Unit Group - Add (Picked unit) to DDS_Detect
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Temp_Group)
-
Events
-
Storming Flame loop
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
-
For each (Integer SF) from 1 to SF_CastNumber, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SF_Off[SF] Equal to True
-
Then - Actions
- -------- define time --------
- Set SF_Time[SF] = (SF_Time[SF] - 0.50)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SF_Time[SF] Less than or equal to 0.00
-
Then - Actions
- -------- confirms that time expired and this index is not used now --------
- Set SF_Off[SF] = False
- -------- subtract value from hero's strength --------
- Hero - Modify Strength of SF_Hero[SF]: Subtract 1
- -------- subtract 1 from switch, means one unit less used this trigger --------
- Set SF_Switch = (SF_Switch - 1)
- -------- if trigger is not used by other units, we can reset index and turn trigger off --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SF_Switch Equal to 0
-
Then - Actions
- Set SF_CastNumber = 0
- Trigger - Turn off Storming Flame loop <gen>
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer SF) from 1 to SF_CastNumber, do (Actions)
-
Events