• 🏆 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] Neutral Hostile doesn't cast dummy spells

Status
Not open for further replies.
Level 22
Joined
Feb 3, 2009
Messages
3,292
Hello, so in several of my spells I create a dummy caster for the owner of the player who used the spell and then have the dummy use a dummy ability.

It works all good and fine for players, but neutral hostile refuses to cast these dummy spells with their dummy units.

Is there a way to fix this?

An example of a spell with this issue:

  • Eruption of Volcano
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Eruption of Volcano
    • Actions
      • Set TempLoc = (Target point of ability being cast)
      • Unit - Create 1 Volcano's Dummy for (Owner of (Triggering unit)) at TempLoc facing Default building facing degrees
      • Set TempUnit = (Last created unit)
      • Unit - Add Volcano Firelord Dummy to TempUnit
      • Unit - Set level of Volcano Firelord Dummy for TempUnit to (Level of Eruption of Volcano for (Triggering unit))
      • Unit - Order TempUnit to Neutral Fire Lord - Volcano TempLoc
      • Unit - Add a 30.00 second Generic expiration timer to TempUnit
      • Sound - Play HeroFirelordYesAttack2 <gen>
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: set udg_TempUnit = null
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • OrderID
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: call BJDebugMsg(OrderId2String(GetIssuedOrderId()) + " ---- " + I2S(GetIssuedOrderId()))

Is the dummy for neutral hostile given stop order immediately after the volcano order?
 
Status
Not open for further replies.
Top