HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Spell Tutorial

01-26-2004, 09:28 PM#1
FallenDarkness
I am looking at CoFFeiN's tutorial on making Trigger Enhanced Spells and in this code :



--------------------------------------------------------------------------------


Spell Target
Events
Unit - A unit Is issued an order targeting an object (Generic Unit Event)
Conditions
(Unit-type of (Ordered unit)) Equal to Your_Caster_Type) (To make sure its the correct caster)
(Issued order) Equal to Human Mountain King - Storm Bolt (Choose the order your spell is based on)
Actions
Set spell_target = (Target unit of issued order) (Unit variable)


--------------------------------------------------------------------------------


(Link to the tutorial : http://www.wc3campaigns.com/forums/a...ticle&artid=13 )

I am looking at this and in the second condition, "(Issued Order) Equal to Human Mountain King - Storm Bolt," I can find the order comparison though when I set it up with Issue Order Equal to etc etc I can choose units though I can't chose spells... How do I do this?
01-26-2004, 09:31 PM#2
Narwanza
It is a string that you need to put in. Go to your ability and see what the ordercode is, then put Issued order equal to (order(Ordercode of the ability))
01-26-2004, 09:35 PM#3
FallenDarkness
Another thing in that :

In the actions for that, it says target unit of issued order. If I am doing something like Avatar isnt that a one shot spell that doesnt target anyone?


Coffein says to do this for the actions though it makes no sense for a unit with no target... Is this right?

One shot Spell:

Actions

Unit Group - Pick every unit in (Units within 512.00 of (Position of
spell_caster) matching (((Owner of (Matching unit)) is an enemy of (Owner of
spell_caster)) Equal to True)) and do (Actions)

Loop - Actions
01-26-2004, 09:36 PM#4
Narwanza
Just use a different event, Unit is issued order w/no target.
01-26-2004, 10:04 PM#5
FallenDarkness
Quote:
Originally posted by Narwanza
It is a string that you need to put in. Go to your ability and see what the ordercode is, then put Issued order equal to (order(Ordercode of the ability))



One last thing... Did you mean by that "Ordercode of the Ability" does that mean my A00B code?


----------------



Spell Target
Events
Unit - A unit Is issued an order with no target
Conditions
(Unit-type of (Ordered unit)) Equal to Mountain King
(Issued order) Equal to (Order((Name of Midgetize )))
Actions


Does this work? Instead of that ordercode? Is the ordercode that A00B code? The name of the dummy spell is Midgetize so?
01-26-2004, 10:07 PM#6
Narwanza
No, it is the Text - Order string - Use/Turn on
01-26-2004, 10:13 PM#7
FallenDarkness
Ok I am complete lost, I am sorry Narwanna this is my first time doing trigger spells. Can you tell me exactly what trigger condition I would use and what I put in it. Please.
01-26-2004, 10:14 PM#8
The_Inquisitor3
wait a minute... u dont need that code to do that... cuz in TFT now u can choose the Custom skills too... dont neet to use "Blizzard" or "stormbolt" just put ur skill in there and thats all...
01-26-2004, 10:21 PM#9
FallenDarkness
Spell Target
Events
Unit - A unit Is issued an order with no target
Conditions
(Unit-type of (Ordered unit)) Equal to Mountain King
(Issued order) Equal to (Order((Name of Midgetize )))
Actions

The spell name is Midgetize.
So will this Work!? Inquis?
01-26-2004, 10:32 PM#10
The_Inquisitor3
nonono u dont understand.... in the TFT u can SELECT custom skills... as u can seleect "BLIZZARD" or "Strombolt" u can also sleect ur custom skills...


The custom skills are now avaliable to be choosen from the list....

so u dont have to use text triggers in that part...

works for u what i said?
01-26-2004, 10:32 PM#11
Narwanza
I don't know what you are smoking inquisitor, but you can't use custom skills when replying to a unit is issued order command. Look at the Text - Order String - Use/Turn On and see what it says after that, then put that in the order. I will post a pic.
01-26-2004, 10:38 PM#12
The_Inquisitor3
OH SORRY!! eerr i was trying to do something else... why dont u use...

Event
a unit begins casting an ability

Condition
Ability being casting is equal to "UR CUSTOM SPELL"

Action

What ever u want...

(this was what i was tryng to explain in the first place) sorry for the confussion... :ggani:
01-26-2004, 10:38 PM#13
Narwanza
Here is pic
01-26-2004, 10:42 PM#14
FallenDarkness
Thanks Nar and Inquis. I think I got it, I just need the question answered in the thread "Action Triggers." now and I think the spell will work.
01-26-2004, 10:46 PM#15
The_Inquisitor3
yes yes i know.. (read above) well to find the code u can make another trigger using just the action

learned ability is ecual to "blizzard" or ur spell... then transform to text and u will se something like this in a part of the text

function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
call SelectHeroSkill( GetTriggerUnit(), 'AHbz' ) <--- AHbz Its the CODE!!!


OR just go to the Object Editor in the section of abilitys press Control + D and the codes will show in the name fields of the skill

Like this: