Staredit Network > Forums > SC2 Assistance > Topic: Validating an ability
Validating an ability
Nov 27 2013, 4:05 am
By: Leeroy_Jenkins  

Nov 27 2013, 4:05 am Leeroy_Jenkins Post #1



Hi, I am trying to give a unit a "silencing" ability. The player can cast this and silence all other players' spells for 5 seconds. So far, I have a trigger that detects when the "silence" effect is used. This trigger can then apply a blank "silenced" behavior buff to the appropriate units. What I am having trouble with is adding a valdiator to unit's abilities that checks for this "silenced" buff. I would like the button to be greyed out or something.

The validator I set up is "unit compare behavior count". Linked to the caster. Set to search for less than 1 of the "silenced" behavior buff. I tried putting this in the "smart validators" of an ability, but it does not seem to work.

Thanks in advance.



None.

Nov 27 2013, 7:21 am TF- Post #2

🤙🏾

A behavior can already disable abilities, just check the Behavior - Modification field and look through Ability and Behavior tabs, you have a lot of freedom because if you leave alone the Disable Abilities checkbox and look at Disabled Ability Classes you can choose to disable only certain types of abilities like say ones that use a target, and if you only want "spells" that use energy to be disabled then you can just look for the "Suppress Energy" checkbox in the Behavior tab to stop the unit from using its energy.



🤙🏾

Nov 27 2013, 8:46 am Leeroy_Jenkins Post #3



Oh, nice. Thank you!

I have one more question while this thread is still here.
http://www.staredit.net/starcraft2/Attaching_a_Model_to_a_Unit

I tried attaching an omnilight to a unit with triggers. There seems to be something besides what is in that guide that I need to do. Anyone know?



None.

Nov 27 2013, 8:50 am TF- Post #4

🤙🏾

That method should still work, maybe try different attachment points like Center which should always work. Also edit the omnilight's model in the Data Editor to give it a bigger scale as that makes the light stronger and reach further... might be you just can't notice the light because it's too faint.



🤙🏾

Nov 27 2013, 10:43 am Leeroy_Jenkins Post #5



Yeah, I'm not sure. I can't seem to attach any models using this method. I tried scaling up the light really big in the models, and attached it to the center.

Edit: Actually I was able to attach some other models with this method. No matter how big I scale it up I can't see it, so I guess they are just too faint. Thanks!

Post has been edited 1 time(s), last time on Nov 27 2013, 10:53 am by Leeroy_Jenkins.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2020-10-19. : 7:29 am]
C(a)HeK -- sraw531
sraw531 shouted: GGmano just fyi, might be a good idea in the future to link to the thread in the shoutbox when you reference a new thread
here it is - http://www.staredit.net/topic/18132/unread/#special
[2020-10-19. : 7:19 am]
sraw531 -- GGmano
GGmano shouted: i made a topic about it if anyone knows something about this please check the topic
just fyi, might be a good idea in the future to link to the thread in the shoutbox when you reference a new thread
[2020-10-19. : 4:46 am]
C(a)HeK -- SiberianTiger
SiberianTiger shouted: C(a)HeK yes correct it is a multiplayer map
Unfortunately, I don't have free time for multiplayer
[2020-10-18. : 10:06 pm]
SiberianTiger -- C(a)HeK
C(a)HeK shouted: GGmano I answered you as best I could
yes correct it is a multiplayer map
[2020-10-18. : 9:12 pm]
GGmano -- thanks c(a)hek
[2020-10-18. : 9:05 pm]
lil-Inferno -- mad AF
[2020-10-18. : 8:57 pm]
*KrayZee angrily uses a pen and fills in the circle for Joe Biden*
[2020-10-18. : 4:59 pm]
C(a)HeK -- GGmano
GGmano shouted: i made a topic about it if anyone knows something about this please check the topic
I answered you as best I could
[2020-10-18. : 2:01 pm]
GGmano -- i made a topic about it if anyone knows something about this please check the topic
[2020-10-18. : 2:00 pm]
GGmano -- hi all does anyone knows what difference save files does??
Please log in to shout.


Members Online: Roy, fford, O)FaRTy1billion[MM], kastam3546, jun3hong