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!
Hello!
You can convert the whole trigger into a custom script through the Edit menu: View attachment 451555
But if you want to use just one command of custom script, you need to add the action Custom Script from the regular actions menu and write the action. View attachment 451556
I guess that's what I said but what I meant is this:
create a unit and set a variable to it without setting it to last created unit. i know its only possible with custom scripts or jass so thats how i found the answer
// var used for the first time
unit myCustomVar = CreateUnit(Player(0), 'hfoo', -30, 0, 90)
// var is reused
set myCustomVar = CreateUnit(Player(0), 'hfoo', -30, 0, 90)
If you want to use a var in GUI triggers, create a variable in GUI and then reuse it with udg_ prefix in custom Jass code. like udg_myGuiVar
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.