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

[General] Cloud spell only works for 1 team?

Status
Not open for further replies.
Level 15
Joined
Jul 9, 2008
Messages
1,552
is the cloud spell the dragon hawks have hard coded to only work for 1 team or somthing i cant work out why my spell is only working for 1 team and not the other

the spell is very basic the unit makes a smoke cloud causing units in the area to have a high chance at missing their attacks iv used channel to cast the spell and a trigger that makes a dummy unit cast the spell based off cloud the dragon hawks have and changed the targets to ENEMY GROUND AIR

the spell works 100% when your on team 1 but if ur on the second team all units incuding ur own will get the miss chance when attacking

note: i changed the dummy caster to make sure the owner of the unit is mine when playing on team 2
  • Smoke cloude
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Smoke cloude
    • Actions
      • Set Target_loc = (Target point of ability being cast)
      • Unit - Create 1 Zombie King for (Owner of (Casting unit)) at Target_loc facing (Facing of (Casting unit)) degrees
      • Unit - Add Cloud (dummy) to (Last created unit)
      • Unit - Set level of Cloud (dummy) for (Last created unit) to (Level of Smoke cloude for (Casting unit))
      • Unit - Order (Last created unit) to Human Dragonhawk Rider - Cloud Target_loc
      • Unit - Add a 31.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_Target_loc)
  • [trigger]
 
Level 10
Joined
Mar 17, 2012
Messages
579
is the cloud spell the dragon hawks have hard coded to only work for 1 team or somthing i cant work out why my spell is only working for 1 team and not the other

the spell is very basic the unit makes a smoke cloud causing units in the area to have a high chance at missing their attacks iv used channel to cast the spell and a trigger that makes a dummy unit cast the spell based off cloud the dragon hawks have and changed the targets to ENEMY GROUND AIR

the spell works 100% when your on team 1 but if ur on the second team all units incuding ur own will get the miss chance when attacking

note: i changed the dummy caster to make sure the owner of the unit is mine when playing on team 2

Did you try to allow The Cloud spell to affect only "Player's Units" option and create a dummy owned by the player of that team? Hence it'll work only for appropriate team.
 
Status
Not open for further replies.
Top