• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Need Help For A Spell

Status
Not open for further replies.
Level 9
Joined
Jun 25, 2009
Messages
427
Hi guys, wanted to write here becouse i need help (badly ;/)

I want to make a spell that sounds something like this:

With each attack, Blezz has a chance to duplicate himself (PASSIVE):
Level 1- 5% chance, illusions deal 25% damage, gets 600%
Level 2- 10% chance, illiusions deal 35% damage, gets 500%
Level 3- 15% chacne, illiusions deal 45% damage, gets 400%
Level 4- 20% chance, illiusions deal 55% damage, gets 300%

If anyone could help me do this spell (a testmap or w/e)
It would be greatfull

Tiche3:grin:
 
Hi guys, wanted to write here becouse i need help (badly ;/)

I want to make a spell that sounds something like this:

With each attack, Blezz has a chance to duplicate himself (PASSIVE):
Level 1- 5% chance, illusions deal 25% damage, gets 600%
Level 2- 10% chance, illiusions deal 35% damage, gets 500%
Level 3- 15% chacne, illiusions deal 45% damage, gets 400%
Level 4- 20% chance, illiusions deal 55% damage, gets 300%

If anyone could help me do this spell (a testmap or w/e)
It would be greatfull

Tiche3:grin:

-first of all make the dummy ability(the ability that the unit will have)
-make a custom illusion spell and edit it's value to suit your needs (levels/damagedealt/damagetaken etc)
-make a dummy unit(the one that will use the illusion spell on your unit)

  • Events
    • Unit - A unit is attacked
  • Conditions
    • Unit Type of AttackingUnit is equal to (UNITTYPE of your unit)
    • Level of DummyAbility for AttackingUnit is greater than 0
  • Actions
    • Set TempUnit = AttackingUnit
    • Set TempLoc = Position of TempUnit
    • If-then-else
      • Conditions
        • If Math - Random integer between 1-100 is less than or equal to 5xlevel of DummyAbility for TempUnit
      • Actions
        • Unit - Create 1 dummy for (owner of TempUnit) at TempLoc facing 0.00
        • Set Dummy = lastcreatedunit
        • Unit - Add illusion to Dummy
        • Unit - Set level of illusion for Dummy to (level of DummyAbility for TempUnit)
        • Unit- Add a 1.00 second generic expiration timer to Dummy
        • Unit - Order Dummy to illusion TempUnit (I'm not sure of the order string for the illusion spell, but you can change it in the Object editor)
      • Custom Script: call RemoveLocation(udg_TempLoc)
      • set TempLoc = null
 
Status
Not open for further replies.
Top