| 07-20-2003, 09:59 PM | #1 |
I need to implement trigger actions as a hero's skill changes levels but I can't figure out how. |
| 07-20-2003, 10:01 PM | #2 |
can u give an example? i think i might no wat ur talking about and how 2 do it... |
| 07-20-2003, 10:03 PM | #3 |
Alright. My hero puts his second point into [skill]. Now I need a trigger. If hero puts second point into [skill] [something happens] (in my map, he gets another unit ability that he can't see) |
| 07-20-2003, 10:07 PM | #4 |
What happens when he´s able to see it? It might be easier to just disable the Ability at Map Init. and then enable it later. |
| 07-20-2003, 10:09 PM | #5 |
do if [learned skill] == desired skill and [learned skill] level == 2, then something else |
| 07-20-2003, 10:14 PM | #6 |
ok, tell me if this is wat u wanted: Events-- Unit - Generic Unit Event --Unit - A unit learns a skill Conditions-- Hero Skill Comparison --Learned Hero Skill Equal to <watever u want> **Edit**Interger Comparison --Event Response - Learned Skill Level Equal to <watever> Actions-- <watever ur gonna do> Sound about right? **I had 2 edit this when i saw my stupid flaw of not having the specified lvl |
| 07-20-2003, 10:24 PM | #7 |
SkillX Events Unit - A unit owned by Player 1 (Red) Learns a skill Conditions (Learned Hero Skill) Equal to Human Archmage - Blizzard Actions Set SkillX = (SkillX + 1) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions SkillX Equal to 2 Then - Actions -------- Whatever -------- Else - Actions Do nothing edit: not sure bout this emote_sweat |
| 07-20-2003, 10:25 PM | #8 |
scio, where is the learned skill level condition? I can't find it. This is the problem, I didn't know if it existed or not. Cronanius , I'm not sure if that will work. He needs to get a different extra ability for every point put into his skill. I think (although I'm not sure at all and it'd be nice if this was cleared up) the hero learns a skill event only works for when the hero initially learns the skill and doesn't run again when they put a second or third point into the skill. hodi, I'll try that out. EDIT: ahh! conanius and hodi edited their posts after I typed that so it doesn't make as much sense now. Anyways, I want to try that game - hero ability clicked event. |
| 07-20-2003, 10:30 PM | #9 |
emote_sweat r u sure about the event in urs hodi? it dun sound right. He wants it to happen when the skill is learned, not when u click the hero abilities button. If/Then/Else never workes 4 me, i always try 2 not use it when i can. Helps keep my brain from overloading ![]() I dunno about the learned skill thing agent. But it should probably work. Because when u learn <Skill> Lvl 3, u don't learn skill lvl 1. im pretty sure there separate. |
| 07-20-2003, 10:31 PM | #10 |
If it works u can just add another If/ThenDo/ElseDo(Actions) to where the Do nothing currently is and tell him as Condition SkillX=3(...). hope it works edit: Cronu that was my first edit ;)) edit: Don´t try it with Hero Ability Button clicked I edited right after I posted it it won´t work =) |
