• 🏆 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!

[Spell] Demon Summon Spell

Status
Not open for further replies.
Level 3
Joined
Jul 5, 2016
Messages
14
Hello Hivers, I am noob in triggers. So, I tried creating a simple spell. I did it, but when two units cast the spell, the spell won't work normaly [Bugs] . . . . . . . . . . . If anyone could fix it I will give him credit when I use this in my future projects . . . . . . . . . . and If you have time could you teach me what you have done.I upload the map.
 

Attachments

  • Demon.w3x
    19.8 KB · Views: 64
Level 9
Joined
Apr 23, 2011
Messages
527
Why are you using colors?

Anyway, just right click the name of the non-functioning trigger in Trigger Functions -> Copy as Text, paste it under [trigger]here[/trigger] so we have a clearer idea of where to look at.
 
Level 3
Joined
Jul 5, 2016
Messages
14
here the triggers it is too simple because I am noob :

upload_2018-7-1_10-5-21.png



  • Start Sumoning
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sumon Demon
    • Actions
      • Set AbilityIsRunning = True
      • Set Caster = (Casting unit)
      • Set Master = (Owner of Caster)
      • Set Location = (Target point of ability being cast)
      • Trigger - Turn on Effects <gen>
      • Trigger - Run Demon <gen> (checking conditions)

  • Finsh Sumoning
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Sumon Demon
    • Actions
      • Set AbilityIsRunning = False
      • Trigger - Turn off Effects <gen>
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • Unit - Unpause Demon
      • Unit - Make Demon Vulnerable

  • Cancel Sumoning
    • Events
      • Unit - A unit Stops casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Sumon Demon
          • AbilityIsRunning Equal to True
    • Actions
      • Trigger - Turn off Effects <gen>
      • Unit - Make Demon Explode on death
      • Unit - Kill Demon

  • Effects
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Special Effect - Create a special effect at Location using Abilities\Spells\Other\Charm\CharmTarget.mdl
      • Set Change = (Last created special effect)
      • Special Effect - Create a special effect at Location using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
      • Wait 1.50 seconds
      • Special Effect - Destroy Change

  • Demon
    • Events
    • Conditions
    • Actions
      • Unit - Create 1 Doom Guard for Master at Location facing (Facing of Caster) degrees
      • Set Demon = (Last created unit)
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
      • Unit - Make Demon Invulnerable
      • Unit - Pause Demon
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 95.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 90.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 85.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 75.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 70.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 60.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 55.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 45.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 40.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 35.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 30.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 25.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 20.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 15.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 10.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 5.00% transparency
      • Wait 1.00 seconds
      • Animation - Change Demon's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • Unit - Make Demon Vulnerable
      • Unit - Unpause Demon
 
Last edited:
Level 9
Joined
Apr 23, 2011
Messages
527
Your trigger is, suffice to say, very inefficient. Using Waits, most of the time, makes the trigger non-functional for multiple units because the variables get overwritten.

If you really just wanted to summon 1 Demon, nothing else, just use Inferno or Dark Portal ability. Look up on how to index units if you want to do some more special effects stuff with them.
 
Status
Not open for further replies.
Top