• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

spell doesn't work

Status
Not open for further replies.
Level 4
Joined
Jan 5, 2009
Messages
53
Spell must make all owners of affected units( no matter allies or enemies) to lose control and have a dark screen :xxd:

Sorry for bad translation my WE is not English.:thumbs_down:
  • Events
    • Unit - A unit starts an effect of ability
  • Conditions
    • (Ability being cast) Equal to Blind
  • Actions
    • Set Blind_caster = (casting unit)
    • Unit group - pick every unit in (Units within 400 range of (Position of Blind_caster)) And do Actions:
      • Set Blind_Unit = (Picked unit)
      • Special effects - Disable user control for (Player group((Owner of Blind_unit)))
      • Special effects - apply blackening over 0.3 sec using texture black mask and color 0% 0% 0% with 0% transparency
      • Wait ((Real((level of Blind for Blind_caster))) +2 seconds
      • Special effects - Enable user control for (Player group((Owner of Blind_unit)))
      • Special effects - apply input over 0.3 sec using texture black mask and color 0% 0% 0% with 0% transparency
So the problem is
1. Spell must work. it's not working. Why?
2. Blackening must affect only owners of Blind_unit. How to make it?
REP guarantied!
 
Spell must make all owners of affected units( no matter allies or enemies) to lose control and have a dark screen :xxd:

Sorry for bad translation my WE is not English.:thumbs_down:
  • Events
    • Unit - A unit starts an effect of ability
  • Conditions
    • (Ability being cast) Equal to Blind
  • Actions
    • Set Blind_caster = (casting unit)
    • Unit group - pick every unit in (Units within 400 range of (Position of Blind_caster)) And do Actions:
      • Set Blind_Unit = (Picked unit)
      • Special effects - Disable user control for (Player group((Owner of Blind_unit)))
      • Special effects - apply blackening over 0.3 sec using texture black mask and color 0% 0% 0% with 0% transparency
      • Wait ((Real((level of Blind for Blind_caster))) +2 seconds
      • Special effects - Enable user control for (Player group((Owner of Blind_unit)))
      • Special effects - apply input over 0.3 sec using texture black mask and color 0% 0% 0% with 0% transparency
So the problem is
1. Spell must work. it's not working. Why?
2. Blackening must affect only owners of Blind_unit. How to make it?
REP guarantied!


You started the spell ok but the...it gets kinda of screwed...what do you want exactly this spell to do?
i don't understand the special effect actions...

And a small tip,try not to use wait actions in spells
 
You started the spell ok but the...it gets kinda of screwed...what do you want exactly this spell to do?
i don't understand the special effect actions...

And a small tip,try not to use wait actions in spells

I even don't know how to explain. The screen of player which controls unit that is affected by blind must darken for some time
 
Wait ((Real((level of Blind for Blind_caster))) +2 seconds

This can not be used in group enum functions (be run in the loop actions for a group) due to the way WC3 executes code. As soon as it gets to this action it causes a execution crash and so the rest of the code in the trigger after the first time it gets to that line is not run (even the rest of the loops).

Division by 0 causes the same effect.

To fix, you will have to instantly pick through all units and apply the effect, then wait X second (outside the loop) and finally loop through all the picked units again and remove the effect.
Also remember to destroy filters, not just remove their colour as even if they are 100% transparent, they will still prevent tooltips from displaying.
 
It's working :)) Thanks. And is it possible to aply this effect not to all players? i mean filter.
-One more question, how to make phoenix fire icon show in hero abilities?it is visible in the available skills to learn. But it's not shown in the learned skills.
 
Last edited:
Phoenix Fire can't be shown last I remember (although you could use a dummy passive ability instead).

Also, if your original trigger isn't working with more than one player, would there be any chance that it's because you are trying to set a unit variable to more than 1 unit?
 
Last edited:
Good idea with dummy.
 

Attachments

  • PF.JPG
    PF.JPG
    119.1 KB · Views: 139
  • PF2.JPG
    PF2.JPG
    135.6 KB · Views: 99
Status
Not open for further replies.
Back
Top