• 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 can I make one custom script?

Status
Not open for further replies.
Level 11
Joined
Dec 31, 2007
Messages
780
plz make your question deeper... dont know which custom script are you talking about...

if you dont find the option in the editor... go to search (in actions) and type "custom" there without the ""... then write your custom text there
 
Level 12
Joined
Aug 22, 2008
Messages
911
Raziel_br, it's very simple.

-If you want only one line of custom script, simply open a new action and select the option 'Custon Script'. There you will be able to enter one line of custom script.

-If you want your entire trigger scripted- open a new trigger, select it and go to the 'Edit' menu. There select the option 'Convert to Custom Text'- note that you cannot reverse this action- and there you have it.

Hope I have helped you.
 
Level 11
Joined
Dec 31, 2007
Messages
780
ok

call RemoveLocation(udg_Location)

ill explain this by pieces

"call" this calls a function, it is a word reserved to make something execute (functions already existent in WE)

"RemoveLocation" this is a function that you execute to remove a information from memory when not needed... in this case this function remove POINT info

"(udg_Location)" udg_ is a prefix that always goes before the name of a variable in jass (lets call this the way the game detects when something is a variable or not... an example 2 is not the same as udg_2... 2 is an integer number, udg_2 is a variable that can be anything)

Location is a point type of variable (that you used in a trigger before this function is called and as you dont need anymore the point you stored... you are now removing it)

when you insert a variable inside this () it means that you are telling the function (in this case RemoveLocation) which variable you want the info to be removed from memory

Most of the functions are self explained and the are a lot and i only know the ones that removes leaks like DestroyGroup and the other that you can find in here
 
Level 12
Joined
Aug 22, 2008
Messages
911
Moving Units

Okay.

If you want to order the unit to move, you don't need JASS but can do it with GUI, like this:
Unit- Order (Your Unit) to (Move to) center of (Wherever You Want).

If you want to move your unit Instantly, meaning blink-like, you can also use GUI for it. It will look like this:

Unit- Move (Your Unit) instantly to (Wherever You Want)
(Also, you can choose to make them move there facing a certain angle or region, but that's up to you. Just so you know, it's a completely different action.)

(That's how it should look like. Note that These spaces are replaceable by your choice.)

I hope that answered your question.
BTW, next time- try exploring the Editor for your needs, and when you're completely clueless come ask us. Then we'll be happy to answer you.
May the Force be with you!
 
Last edited:
Status
Not open for further replies.
Top