all i want is to allow a behavior to be applied if the level is 2 and how do you make a requirement a validator unless i can accomplish with validators.i dont like validators
OK im helping aczchef .... the problem here is this
The unit casting the spells is not the hero ... but a unit the hero created....
as far as I can tell there is no way to retrieve the "level of the learned ability from a different unit" its like this
Validator (combine)
Validator (requirement)
Requirement ( learned abiltiy count = 1) this tends not to count past "1" in my testing
Validator (requirement)
Requirement (qued or better < 2 ) this works fine
-
ok I removed the behavior from the created building and put it directly on the hero
with out leveling the ability it does not pass teh validator
after leveling once the validator passes and casts the spell correctly
after leveling the ability again the validator still passes but it should not since it
1. the ability is now level 2 and should not pass this requirement
I set the requirement to require the ability count = 0 and the validator passes prior to the abiltiy being learned
when I level up the ability so that it is level 1 the validator does not pass
so what this tells me is that ability count can not excede the value of "1" its either on or off.....
To actually get some kind of validator to work that can check the level of the spell I did this
created trigger that fires when the "Learn" - "RaiseTheDead" abiltiy is used .... this is the ability that trains a level of an abiltiy on a unit
created Dummy behavior that stacks up to the abilities maximum level
this dummy behavior is also handy for handling other aspects of more compicated spells (in this case it is being used to order "pets" to stay near the hero)
when the trigger detects the "learned" ability it applies 1 stack of the dummy behavior to the hero unit
Changed the validator (requirement)
instead of counting the number of abilties( RaiseTheDead) the player has I can count the Number of the Dummy behavior the player has
can you count the level of a learn ablity? cause it doesn't look like it
sure can
CountAbil("name of ability",CompleteOnlyAtUnit)[TechTreeCheat] = ##
so wait name of the learned ability not the learn ability and say completed at unit? wouldn't that check the ability being used not it being learned
@aczchef: Go
Just try it ;)
lol i will i was just checking out programmers video thing i was like no way this is possible
umm didnt work help?
can you copy and paste the text of the requirement you have entered and exactly what you want to do
ok one sec
(CountAbil(RasieTheDead,CompleteOnlyAtUnit)[TechTreeCheat] == 2|CountAbil(RasieTheDead,CompleteOnlyAtUnit)[TechTreeCheat] == 2)
all i want is to allow a behavior to be applied if the level is 2 and how do you make a requirement a validator unless i can accomplish with validators.i dont like validators
@aczchef: Go
So your trying to Hide it and Grey it out why? In a requirement you would only usually use one of those fields.
So if the raise the dead ability is level 2 (or higher?) you want it to apply a behavior, when the ability is used? but if its not, don't apply it?
If your ability is changing with levels, ideally you want to recreate the ability and change to the second one that does apply a behaviour at level 2
?? the max is level 2 btw but i still dont understand
what do you mean i have to create a second ability basically
bump
Look at this tutorial series
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
ive seen it already it wont help me at all...
@aczchef: Go
OK im helping aczchef .... the problem here is this
-ok I removed the behavior from the created building and put it directly on the hero
I set the requirement to require the ability count = 0 and the validator passes prior to the abiltiy being learned
when I level up the ability so that it is level 1 the validator does not pass
so what this tells me is that ability count can not excede the value of "1" its either on or off.....
To actually get some kind of validator to work that can check the level of the spell I did this
Does anybody have a different way to keep track of an Abilities Level with out having to do it the way I mentioned in the last posted?
Mainly being able to have a validator / requirement verify the current level of the ability?