Spell Copy Spell/Sharingan

DiFm

New Member
Reaction score
35
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



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 (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
            • Else - Actions
          • 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
      • Custom script: call RemoveLocation (udg_LeakPoint)
      • Custom script: call DestroyGroup(udg_TempGroup)


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


Jesus Christ forgot the most important thing to attach the map.
 

Attachments

  • Copy Spell by DiFm.w3x
    47.2 KB · Views: 388

sidove

Member
Reaction score
22
Sounds nice but, where is the map/spell?
EDIT: Aha didn't see the edit ^^
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Trigger:
  • Set LeakPoint = (Position of (Triggering unit))

Why do people insist to name their locations LeakPoint?
 

DiFm

New Member
Reaction score
35
Trigger:
  • Set LeakPoint = (Position of (Triggering unit))

Why do people insist to name their locations LeakPoint?

Maybe becoz they wanna name it for what its used as i named the integer MUI i named the point Leakpoint becoz it nly exist to clear the leak.
 

Azlier

Old World Ghost
Reaction score
461
Maybe becoz they wanna name it for what its used as i named the integer MUI i named the point Leakpoint becoz it nly exist to clear the leak.

Then why isn't your unit group named LeakGroup? :p
 

Dirac

22710180
Reaction score
147
This spell might cause unpleasant effects on heroes... why? maybe some Ability ID disorder or the X,Y position of the ability on the unit's frame.

To solve this i propose to create a ability named "Copied Ability" or so. When the sharingan user casts it, a dummy in his location casts the stored copied ability.
Pros: Solves the bugs i mentioned before
Cons: i dont know how to specify which ability is stored. Might only work for a maximum of 2 abilities.
 

Romek

Super Moderator
Reaction score
964
Trigger:
  • For each (Integer A) from 1 to 100, do (Actions)
    • Loop - Actions

Why? It's in the first trigger, one of the first lines.

You could use a total instead of constantly looping from 0-100.

GUI-MUI code is really ugly. :(
 

DiFm

New Member
Reaction score
35
Trigger:
  • For each (Integer A) from 1 to 100, do (Actions)
    • Loop - Actions

Why? It's in the first trigger, one of the first lines.

You could use a total instead of constantly looping from 0-100.

GUI-MUI code is really ugly. :(

Pff lol i thought i had gotten rid of that :/ srry that is just pointless


A total? I had that be4 bu i felt what if someone wanna use this in a map with real large number. then if your 5 players and you attack the enemies continously it's quite possible to go over 20 each at the end of the game.


This spell might cause unpleasant effects on heroes... why? maybe some Ability ID disorder or the X,Y position of the ability on the unit's frame.

To solve this i propose to create a ability named "Copied Ability" or so. When the sharingan user casts it, a dummy in his location casts the stored copied ability.
Pros: Solves the bugs i mentioned before
Cons: i dont know how to specify which ability is stored. Might only work for a maximum of 2 abilities.

This is why i typed it in Future uppdates its supposed to be a unit ability for now. I might fix it later and then i propably use a morph ability however it will preven the hero from having other morph abilities. otherwise the hero can have a mximum of 2 spells so far as i mentioned be4.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top