Nivius
TH.net Regular
- Reaction score
- 5
So, i'm adding a skill to a hero that gives Reincarnation (3 levels)
but i also want this skill to increase life by 1000 each level
but ofc, the added life should not stay if u was to unlearn the skill...
i'm quite new to this, but i think i got the idea right... i just want u guys to see if there's something wrong, also is there a better way of doing this?
The part that aren't shown complete in the above script...
but i also want this skill to increase life by 1000 each level
but ofc, the added life should not stay if u was to unlearn the skill...
i'm quite new to this, but i think i got the idea right... i just want u guys to see if there's something wrong, also is there a better way of doing this?
Trigger:
- Reincarnation Life Event
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Reincarnation (lvl3)
- Actions
- Trigger - Add to Reincarnation Life <gen> the event (Unit - (Triggering unit) Learns a skill)
- Events
Trigger:
- Reincarnation Life
- Events
- Conditions
- (Learned Hero Skill) Equal to Reincarnation (lvl3)
- Actions
- Set Reincarnationlvl[1] = (Level of Reincarnation (lvl3) for (Triggering unit))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[1] Equal to 1
- Then - Actions
- Set Reincarnationlvl[2] = (Level of Reincarnation (lvl3) for (Triggering unit))
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) + 1000.00)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[1] Equal to 2
- Then - Actions
- Set Reincarnationlvl[2] = (Level of Reincarnation (lvl3) for (Triggering unit))
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 1000.00)
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) + 2000.00)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[1] Equal to 3
- Then - Actions
- Set Reincarnationlvl[2] = (Level of Reincarnation (lvl3) for (Triggering unit))
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 2000.00)
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) + 3000.00)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Reincarnationlvl[1] Less than 1) or (Reincarnationlvl[1] Greater than 3)
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[2] Equal to 1
- Then - Actions
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 1000.00)
- Set Reincarnationlvl[1] = 0
- Set Reincarnationlvl[2] = 0
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[2] Equal to 2
- Then - Actions
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 2000.00)
- Set Reincarnationlvl[1] = 0
- Set Reincarnationlvl[2] = 0
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[2] Equal to 3
- Then - Actions
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 3000.00)
- Set Reincarnationlvl[1] = 0
- Set Reincarnationlvl[2] = 0
- Else - Actions
- 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)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- 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)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
The part that aren't shown complete in the above script...
Trigger:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Reincarnationlvl[1] Less than 1) or (Reincarnationlvl[1] Greater than 3)
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[2] Equal to 1
- Then - Actions
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 1000.00)
- Set Reincarnationlvl[1] = 0
- Set Reincarnationlvl[2] = 0
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[2] Equal to 2
- Then - Actions
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 2000.00)
- Set Reincarnationlvl[1] = 0
- Set Reincarnationlvl[2] = 0
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Reincarnationlvl[2] Equal to 3
- Then - Actions
- Unit - Set life of (Triggering unit) to ((Max life of (Triggering unit)) - 3000.00)
- Set Reincarnationlvl[1] = 0
- Set Reincarnationlvl[2] = 0
- Else - Actions
- 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)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Do nothing
- If - Conditions