HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to use "Custom Script"?

06-07-2004, 10:17 AM#1
ImperialNaga
Can any1 teach me? Or is there a tutorial here, if so, plz give me the link.
I dun understand about the "custom script", even if i open other maps to see and learn, but i still dun get it.
Do i need to know Custom text 1st b4 learning cusom script?
Man.. i feel like i'm a stupid person.

:(
When will i ever learn "custom" text or script...
Sigh...
06-07-2004, 10:41 AM#2
Aznwhore
its called Visual Basic <i think>
if you never heard of it, i think linkmaster has a class over at IRC...
06-07-2004, 02:54 PM#3
sweet5
It's JASS not Visual Basic.
06-07-2004, 05:27 PM#4
-={tWiStÄr}=-
Custom script basicly writes line of java or custom text. For the most part you dont ever need to use it.
06-07-2004, 06:12 PM#5
SektorGaza
it's kinda useful when you need to call a jass function inside gui trigger, but I would suggest using either only gui or only jass.


for example.

you have a useful jass function that for example multiplies 2 global numbers
(i know it's not useful, but its just example)
this function is written on top of all function (in WE, in Trigger editor, click on the root name of the map, you will see a big text field where all separate functions go to)

function Multiply takes integer one, integer two returns integer

return one * two

endfunction

Well ok, simple function, but it's of no use to you if you only use GUI triggers, you need to use custom script to call the function.. and you can plug in global integer variables.
so anywhere in your trigger you may opne up custom script action and write something like

set udg_product = Multiply(udg_intOne, udg_intTwo)

udg_ means that the number is global variable that you made inside the variables.
Well i know it's bad function example, but you can see that custom script is used precisely with jass