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

how to order a unit to use customs spells?????

Status
Not open for further replies.
Level 2
Joined
Oct 5, 2004
Messages
14
how do you order a unit to use customs spells trageted at another unit. the issue order targering a unit does not work becuz it only has presets and my custom spells arent in the prsets. grrr this is geting on my nerves.
 
Level 3
Joined
Aug 29, 2004
Messages
57
Simple. Just create a custom spell based on one of the preset spells in the list in the trigger. Then when you want the a to use that custom spell just have him cast the spell your custom spell was based off of.

Of course if your unit has multiple spells based off the same spell you may have a problem as he will try to cast them all at the same time which won't work.
 
Level 4
Joined
Aug 31, 2004
Messages
106
If you have the problem Nogusta stated, you will have to use Jass. I suggest you get Vexorian's Caster System (found in the "system" category of the spell section. Once you learn how to use it you will have no problem.
 
Level 8
Joined
Apr 3, 2004
Messages
507
If you use the preset that your spell was based off of, it will order the unit to cast any spell that it has that uses that order string. So, if you based a spell off of "Ensnare" that's called "Petrifying Linguine", when you order the unit to "ensnare" an enemy, it will use "Petrifying Linguine" to "ensnare" it instead.
 
Level 16
Joined
Sep 3, 2004
Messages
2,086
Isn't it the orderID?

Yea so if you base it off something like storm bolt and leave the order ID, you can let them storm bolt the enemy. However, any spell that is cast is in the Order with no Target. Anything that can target a unit as well as plain ground, or unable to target units at all is Issue Order Targeting a Point. This could be hassling being that someone could make them storm bolt plain ground, and might cr ash the game
 
Level 2
Joined
Oct 5, 2004
Messages
14
tried it and it failed. did not even cast the spell. id made it so when hex was casted it would aslo cast a custom banish and it failed. you sure the spell its based off works.
 
Level 8
Joined
Apr 3, 2004
Messages
507
Eh, I've done it before.

You can't change the orderid of a spell. When you make a custom spell, it gets a new four-letter code, like A001 instead of AOfs, but that's not the orderid, and that's not what the order functions use.

And the spells that can target units are the only ones available to select in the Targeting a Unit order list, spells that can target a point are the only ones available in Targeting a Point, and spells with no target are the only ones available in the No Target order list. So there shouldn't ever be any illegal spells being ordered.

evilprotoss, use "copy as text" on your complete trigger and paste it here. There could be any of a billion things wrong with it.
 
Level 2
Joined
Oct 5, 2004
Messages
14
ok

events
Unit - admins wraith 0076 <gen> Finishes casting an ability

conditions
(Ability being cast) Equal to major smite(hex)


Unit - Order admins wraith 0076 <gen> to Human Blood Mage - Banish (Targeted unit)

maybe its becuz i have 3 banish based speels on this unit or maybe becuz the banish on this unit is no longer hero based. all i know is that it casts hex but not banish oh and here my jail command i cant get to work.

event
player - Player 1 (Red) types a chat message containing -jail as An exact match

condition
-jail Equal to -jail


Unit - Move (Targeted unit) instantly to (Center of Jail <gen>)

i have absolutly no idea why this one doesnt work any help would be nice.
 
Level 8
Joined
Apr 3, 2004
Messages
507
maybe its becuz i have 3 banish based speels on this unit
If you have more than one spell with the same base spell on a unit, it will have lots of problems. Don't ever use the same root spell more than once on a unit.

(Picked Unit) does not take the unit that's selected. To do that, you'll want to something along the lines of:
Code:
Pick Every Unit in (Units Selected by (Player 1)) and do
Move (Picked Unit) instantly to (Center of (Region Pants))
 
Level 2
Joined
Oct 5, 2004
Messages
14
grr ill nvr get the hang of this now i cant find the right trigger for the move to jail command panto reffered to. grrrr

hey panto if you want a small project ill email you the map and you can fix these screwed up triggers and then maybe i can lean when you send it back???
 
Level 2
Joined
Oct 5, 2004
Messages
14
grr ill nvr get the hang of this now i cant find the right trigger for the move to jail command panto reffered to. grrrr
hey panto if you want a small project ill email you the map and you can fix these screwed up triggers and then maybe i can lean when you send it back???
 
Level 2
Joined
Oct 5, 2004
Messages
14
wow im sry the web site was acting wierd when i posted that. but i have no idea how it got up ther 6 times lol. im really sry im not a spammer really.
 
Status
Not open for further replies.
Top