• 🏆 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 with summon demon spell

Status
Not open for further replies.
Level 2
Joined
Apr 28, 2009
Messages
13
Help!!! :cry:

I need help with a spell: Summon demon. Its based off a dark portal spell and it spawn 1 demon out of 8 selected but I need to create a trigger that when this ability is used the 2nd time the 1st demon or REPLACED by the 2nd. I tried with Target unit of ability being cast and there is no unit. I tried adding buffs, but ability adds no buffs; i tried a full trigger ability the selected 1 unit from 3 groups and it only selected 1 unit form 1 group.

I dont know what to do any suggestion would be usefull:cry:

THX
 
Level 2
Joined
Apr 28, 2009
Messages
13
I'll try it. It's just crazy enough that it may work.

No it doesnt work since it now spawns 2 units (unit i HAVE specified 1 in ability menu) and they stay even if ability is reused in that case new units are just spawned; they dont replace old units.

Solved the problem:

Summon demon start
Events
Unit - A unit Spawns a summoned unit
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Summoning unit)) Equal to Azgalor
(Race of (Summoned unit)) Equal to Demon
(Unit-type of (Summoned unit)) Not equal to Doom Guard
(Unit-type of (Summoned unit)) Not equal to Infernal
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Demon is alive) Equal to True
Then - Actions
Unit - Remove Demon from the game
Set Demon = (Summoned unit)
Else - Actions
Set Demon = (Summoned unit)


Thank you used DARK PORTAL as source ability.
 
Last edited:
Status
Not open for further replies.
Top