# Learning Reincarnation also adds life?

#### Nivius

##### TH.net Regular
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?

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 &lt;gen&gt; the event (Unit - (Triggering unit) Learns a skill)

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
• Else - Actions
• Do nothing

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
• Else - Actions
• Do nothing

#### Bloodcount

##### Starcraft II Moderator
WTF? Won't this work ?!

Trigger:
• Reincarnation Life Event
• Events
• Unit - A unit Learns a skill
• Conditions
• (Learned Hero Skill) Equal to Reincarnation (lvl3)
• Actions
• Unit - Add life to trigggering unit

Note: life is a custom ability with 3 levels based on item hit points bonus. It is invisible so no one will notice.

#### Nivius

##### TH.net Regular
WTF? Won't this work ?!

Trigger:
• Reincarnation Life Event
• Events
• Unit - A unit Learns a skill
• Conditions
• (Learned Hero Skill) Equal to Reincarnation (lvl3)
• Actions
• Unit - Add life to trigggering unit

Note: life is a custom ability with 3 levels based on item hit points bonus. It is invisible so no one will notice.
noticed this bit after some thinking i changed it to +40 str (1000 life and some regen)

General chit-chat
Help Users
• No one is chatting at the moment.
• The Helper:
Happy Hump Day!
• V-SNES:
Happy Friday!
• cubanral:
agreed!
• The Helper:
Friday Yay!
• mgarcia:
did you guys catch Carl's interview? https://www.youtube.com/watch?v=kuHiMXABkGs
• mgarcia:
he's the one that informed me about the DVD's working!
• mgarcia:
he also mentioned the progress on the controllers!
• The Helper:
I did actually it was cool to see the NUON mention
• The Helper:
https://discord.com/channels/985377399338332202/985377399950696481 you can still use this chat too we are two fisted now
• thewrongvine:
costs me \$80 to fill gas tank sad face
• Ghan:
Oof
• The Helper:
Yeah that gas is some expensive stuff
• The Helper:
ghan does not have to worry about it he has a tesla and I have a small tank so it does not cost me usually more than 50
• The Helper:
fyi Ghan we are getting an error trying to access stats or world editor tutorials Error 526 Ray ID: 72128c6bf99f6707 • 2022-06-26 02:35:15 UTCInvalid SSL certificate
• Ghan:
An artifact of switching to Cloudflare... the Let's Encrypt certs can't autorenew through Cloudflare.
• Ghan:
I got the forum updated before things expired but there were some other casualties.
• Ghan:
Everything should be fixed now....
• The Helper:
Thank you Ghan!
• The Helper:
Happy Monday!
• The Helper:
new NUON forum mod cubanral!
+1
• The Helper:
• tom_mai78101:
Started learning how to make tools-assisted speedruns, so I'm lately busy.
• tom_mai78101:
Here's my current project.
+3