• 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.

get research requirement

Status
Not open for further replies.
Level 2
Joined
Jun 5, 2012
Messages
18
hi all,

i have a rather simple question, but i think the answer won't :)
i want to know if it is possible to get the required tech level of an ability when being cast

for example, if a banshee uses "possession" then ill get a 2 as it requires the master training;
and if it uses the magic shield ill get a 1 (for adept training).

i hope i was clear enough :/
but thanks for your replies anyway :D
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Something like:
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Or - Any condition is true
      • (Ability being cast) equal to Possession
      • (Ability being cast) equal to Anti-Magic Shell
  • Actions
    • Set int = Current research level of Banshee Adept Training for (Triggering Player)
Maybe?

regards
-Ned
 
Last edited:
Level 12
Joined
Mar 24, 2011
Messages
1,082
What I realized as I was replying, is that if you have level 2 Banshee Adept Training while casting Anti-Magic Shell, it will still return 2, and atab wants it to return 1 in that case, since that is the requirement level.
Oh. Oh... Oooooooh... :| ...ops?

I wonder if there is a way to reference Techtree Requirements Level... It shows up in Tooltips, so I would say maybe with one of the underground WEs ?

:|
-Ned
 
Level 2
Joined
Jun 5, 2012
Messages
18
well thanks for your posts
tbh, i thought i edited my post to be more clear (and even without it you got my point the-silent :wink:) but yes, i wanted it said "1" or "2" regardless of the curent research.


and indeed, i was quite sure it wouldn't exist... but still wanted a confirm for more experienced users than me :smile:
i'll then use "the long path" to acheve that (which is close to what you proposed nedio ^^ one trigger per ability)
 
Status
Not open for further replies.
Top