HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

When a spell levels up how to detect that the spell is for example lvl2 in a trigger

01-26-2004, 12:02 PM#1
ripmage
I know you can say
Action
Unit begins casting ability etc but in the conditions is there a way to detect what level of the ability the user is casting? Thx.
01-26-2004, 12:17 PM#2
Dimples
Two triggers.

First one is:
Event - Hero Learns an ability
Condition - Ability equals to [your spell]
Action - Set IntegerVariable = Integer Variable + 1

Second one is:
Event - Hero begins casting an ability
Condition - Ability being cast equal to [your spell]
Action -
If/Then/Else - If IntegerVariable = 1, do [whatever actions you may for level 1 spell.]
If/Then/Else - If IntegerVariable = 2, do [whatever actions you may want for level 2 spell.]

And so on... of course you'd have to alter some things, but those are the basics.
Hope this helps. :)
01-26-2004, 01:23 PM#3
Extrarius
In TFT there is 'Unit - Level of Ability on Unit'
01-26-2004, 01:33 PM#4
Vexorian
Questions go to the map development forum, the trigger and utility repository is to share working triggers
01-26-2004, 01:43 PM#5
The_Inquisitor3
we are in that forum.... or not?
01-26-2004, 01:49 PM#6
volatile
of course we are now... he just moved it :P
01-26-2004, 04:48 PM#7
Bloodlust
example spell:

event: superman casts a spell
condition: ability cast equal to laser eyes
action:

- if then else
if level of ability is equal to 1
then kill target
else do nothing
01-26-2004, 05:50 PM#8
The_Inquisitor3
ok.. but how do u ADD levels to a skill like if he use that skill, then set the ability "FLY" to level 4?
01-27-2004, 03:25 AM#9
Bloodlust
hero - learn skill