HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell with Trigger need help

10-22-2003, 12:15 AM#1
hamuhamu
Hi , im new to the spell triggers, so my question is:
what condition do i put down to make the outcome/action different

ie)
LEVEL 1
event - unit casts (dummy skill)
condition - Ability being cast equal to dummy skill
condition - need to find out what to put here)
action - set unit life to 50%

LEVEL 2
event - unit casts (dummy skill) <----same dummy skill
condition - Ability being cast equal to dummy skill
condition - (need to find out what to put here)
action - set unit life to 100%

ETC......

right now i put in:
condition - (learned skill level) equal to 1 <--- i change it for the different levels

but it still doesnt work
plz help
10-22-2003, 12:23 AM#2
Supra God CrK
you need to make 2 seperate triggers. i posted somewhere how to do this a while back. do this...

make an interger variable called dummylvl

event-
--a unit learns a skill
condition-
--learned hero abilty equal to dummy skill
action-
set dummylvl = dummylvl + 1

another for doing damage

event-
--unit begins casting an abilty
condition-
--dummylvl = 1
action-
--set unit's life to 50%

than do it for each lvl.
10-22-2003, 01:03 AM#3
Supra God CrK
no problem. happy to help. let me know if you need any other trigger help. i own triggers ;)
10-22-2003, 01:08 AM#4
hamuhamu
i cant get it to work. plz help


Trigger 1
EVENT - Unit learns a skill
CONDITION - Learned hero skill = (cant find my dummy skill)<----- thing that is messing it up i think
ACTION - Set dummyskill = (dummyskill + 1)

Trigger 2
EVENT - Unit begins to cast ability
CONDTION - dummylvl = 1
ACTION - Unit - set life to 50%


EDIT : still doesnt work, thanks for the help tho
10-22-2003, 01:14 AM#5
Eriond
I think you just set the skill to the skill you based it on. Since it has the same spell Code, it should work. Say you based dummy on serpent ward. Make it so

Trigger 1
EVENT - Unit learns a skill
CONDITION - Learned hero skill = Serpent Ward
ACTION - Set dummyskill = (dummyskill + 1)

Trigger 2
EVENT - Unit begins to cast ability
CONDTION - dummylvl = 1
ACTION - Unit - set life to 50%
10-22-2003, 03:02 AM#6
Supra God CrK
actually it does not have the same code. you would have to do some very complicated stuff. hope your ready here it goes.

first create your triggers. ok that is done now instead of learning the dummy spell pick the spell blizzard. good now here is the hard part.

open up your object editor. select any hero you would like and remove all of his skills. hero skills that is. now add only your custom spell to him. make sure to keep the hero abilty field highlighted. now go to the file menu in the object editor(not the map editor the object) and select the view column. now go to the very bottom and select view as raw data. everything will look all wierd but its ok. look at the spot you have highlighted. it will have 4 letters there. write them down and be cap sensitive. if it says aBBt do not write AbbT make sure yours is exact. now repeat the process for the spell blizzard. the letters for blizzard should be AHbz. ok now uncheck the view as raw data part and everything will be normal again. now open up your trigger editor. go to the trigger that sets the level. make sure it says when unit learns hero skill blizzard under the conditions part. now select that trigger and go to the file menu for the trigger editor(no not world editor still) now select edit from the drop down menu and find convert to custom text. it's about to transform your trigger into jass. only that one trigger tho. ok do it. it will ask you if your sure. say yes. now search for a part that says 'AHbz'. find it? good. change that to the 4 letters you had for your custom spell and your all set. should work now.
10-22-2003, 03:47 AM#7
hamuhamu
thanks so much, again.:D
10-22-2003, 03:56 AM#8
Supra God CrK
hah no problem again. need help again feel free to post it up. i will fix it for you. ;)