Custom script

war444

New Member
Reaction score
2
Is this custom script valid or .....is there somthing wrong with it?:confused:
call IssueOrderunit( gg_unit_ukil_0209 A00D gg_unit_hpri_0014 )
 
Reaction score
341
call IssueTargetOrder(gg_unit_ukil_0209, "attack", gg_unit_hpri_0014 )

Better yet, tell us what your trying to do.
 

Exide

I am amazingly focused right now!
Reaction score
448
Change "attack" to the orderstring of the spell you want to cast.

For example: Storm bolt = "stormbolt"
 

war444

New Member
Reaction score
2
What if you changed the name of a spell? Would the spell still use its original spell name or would you use the new spell name? And the spell is custom
 

Romek

Super Moderator
Reaction score
964
Same order string.
You can change the order string if you base the spell on "Channel".
Otherwise, it's the same.
 

Azlier

Old World Ghost
Reaction score
461
The order string is usually the name of the spell you based your custom spell off of.

Ex: Invisibility = "invisibility"

You can find order strings in the Text - Order String section of the object editor, with your ability open.

Some abilities are weird. Storm bolt = "thunderbolt"
 

war444

New Member
Reaction score
2
But what if the original spell was berserk but i named it pentagram of hell. Would i use berserk or Pentagramofhell, If i use berserk, since theres a regular and a custom, im afraid they might get that mixed up
 

the_ideal

user title
Reaction score
61
Use berserk. Just don't give the unit another ability that using berserk as its order string.
 

_whelp

New Member
Reaction score
54
They won't get messed up, unless you have both the regular and the custom on one unit.
 

GooS

Azrael
Reaction score
154
Use berserk. Just don't give the unit another ability that using berserk as its order string.

That is the reason why not to give one hero two spells based of the same original spell.
Orderstrings are hardcoded, you cannot create your own (afaik) but must make do with the ones blizzard has given us!
 

war444

New Member
Reaction score
2
It keeps saying this code is wrong -
call IssueTargetOrder(gg_unit_ukil_0209, "Berserk", gg_unit_hpri_0014 )
It says it expected a name
 

Sevion

The DIY Ninja
Reaction score
413
"Berserk" should be "berserk", I believe.

Expected a name is an error meaning you tried calling something that doesn't exist. Usually.

What's the line above it? The Syntax Checker likes to highlight the line below for whatever reason.
 

war444

New Member
Reaction score
2
Still says its wrong. The line above it is
(I dont know how to put GUI's on here plz tell me >.>"
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Go to your trigger.
Above "Events" is your trigger name.
Right click and go to "Copy as text".
Come back here and put the code between [noparse]
Trigger:
[/noparse]
tags.
 

Exide

I am amazingly focused right now!
Reaction score
448
Also make sure that these units actually exist:
gg_unit_ukil_0209 and gg_unit_hpri_0014.
-It's probably better to use variables for these units.

Why are you doing this in JASS anyway?
 

war444

New Member
Reaction score
2
The trigger above it is
Trigger:
  • Cinematic - Send transmission to (All players) from Satan 0209 <gen> named Satan: Play No sound and display Are you torturing a.... Modify duration: Add 0.00 seconds and Wait

Im using jass because i dont know how to make a unit cast a spell in GUI
 

Exide

I am amazingly focused right now!
Reaction score
448
I don't believe there is a Berserk order string in GUI. I may be wrong. (Or perhaps there's a text field? I dunno)

Yes, you can use GUI to order Berserk.

However, Berserk can't target another unit.
-Maybe war444 wants to cast bloodlust?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top