Sharingan/Copy Spell
By DiFm
GUI/MUI/MPI
The idea of taking advantage of the enemy is an idea we all to often fiddle with. With this spell you take advantage of the enemies spell power and also increasing your own spell power.
The Spell is named Sharingan after an ability in the popular mange "Naruto" While that also gives other attributes this is soley based on the Copy Ability. MAximum possible learned abilities at same time is 5. however I set it to 4.
After the fourth spell is learned the spell you keeped the longest will be replaced. All spells will be removed on deactiviation. However you can just disable the "Removal" trigger if you wanna keep them. This spel is using the Spell Map by Tinki3
Lagless
Leakless
2 Triggers Only
1 Spell Only
MUI
MPI
GUI
Cons:
None so far
By DiFm
GUI/MUI/MPI
The idea of taking advantage of the enemy is an idea we all to often fiddle with. With this spell you take advantage of the enemies spell power and also increasing your own spell power.
The Spell is named Sharingan after an ability in the popular mange "Naruto" While that also gives other attributes this is soley based on the Copy Ability. MAximum possible learned abilities at same time is 5. however I set it to 4.
After the fourth spell is learned the spell you keeped the longest will be replaced. All spells will be removed on deactiviation. However you can just disable the "Removal" trigger if you wanna keep them. This spel is using the Spell Map by Tinki3
Lagless
Leakless
2 Triggers Only
1 Spell Only
MUI
MPI
GUI
Cons:
None so far
Possible Future Updates
Depending on demand.
Store System. (stooring abilities so they will come back when you activate again)
System for Heroes to copy more than 2 spells. Since they ussually have 4 spells it gives them only the ability to copy maximum of 2 spell.
Screenshots serve no purpose in this try it ingame.
Code
Trigger:
- Sharingan
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Actions
- Set LeakPoint = (Position of (Triggering unit))
- Set TempGroup = (Units within 2000.00 of LeakPoint matching (((Matching unit) has buff Sharingan ) Equal to True))
- For each (Integer A) from 1 to 100, do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Set MUI_True = False
- For each (Integer A) from 1 to 100, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Picked unit) Equal to MUI_User[(Integer A)]
- Then - Actions
- Set MUI_True = True
- Set MUI = (Integer A)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- MUI_True Equal to False
- Then - Actions
- For each (Integer A) from 1 to 100, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (MUI_User[(Integer A)] has buff Sharingan ) Equal to False
- Then - Actions
- Set MUI = (Integer A)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to 100, do (Actions)
- Else - Actions
- If - Conditions
- Set MUI_User[MUI] = (Picked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of (Ability being cast) for MUI_User[MUI]) Less than 1
- Then - Actions
- Unit - Remove MUI_Skill4[MUI] from MUI_User[MUI]
- Set MUI_Skill4[MUI] = MUI_Skill3[MUI]
- Set MUI_Skill3[MUI] = MUI_Skill2[MUI]
- Set MUI_Skill2[MUI] = MUI_Skill1[MUI]
- Set MUI_Skill1[MUI] = (Ability being cast)
- Unit - Add (Ability being cast) to MUI_User[MUI]
- Unit - Set level of (Ability being cast) for MUI_User[MUI] to (Level of (Ability being cast) for (Triggering unit))
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of (Ability being cast) for (Triggering unit)) Greater than (Level of (Ability being cast) for MUI_User[MUI])
- Then - Actions
- Unit - Set level of (Ability being cast) for MUI_User[MUI] to (Level of (Ability being cast) for (Triggering unit))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Loop - Actions
- Custom script: call RemoveLocation (udg_LeakPoint)
- Custom script: call DestroyGroup(udg_TempGroup)
- Events
Trigger:
- Removal
- Events
- Unit - A unit Is issued an order with no target
- Conditions
- (Issued order) Equal to (Order(unimmolation))
- Actions
- For each (Integer A) from 1 to 100, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Triggering unit) Equal to MUI_User[(Integer A)]
- Then - Actions
- Unit - Remove MUI_Skill1[(Integer A)] from (Triggering unit)
- Unit - Remove MUI_Skill2[(Integer A)] from (Triggering unit)
- Unit - Remove MUI_Skill3[(Integer A)] from (Triggering unit)
- Unit - Remove MUI_Skill4[(Integer A)] from (Triggering unit)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to 100, do (Actions)
- Events
Jesus Christ forgot the most important thing to attach the map.