Page 1 of 1

What about making a MOH scripting dictionary???

Posted: Tue Feb 11, 2003 5:49 pm
by Yarik
Here is what i am thinking. for those of us who dont know how to script and have hard time understanding what everything means. I think we need to make a dictionary of the scripting words. And add on as we go when we find out something new. Like maybe starting a new page in the tutorial section?

ex. (note: doesnt have to be in alphabetical order)

Word/Definition
Level: your level
Waittill: Wait for something to happen
Prespawn: this starts anything before you spawn
exec: Execute something (followed by what you need to be executed)
global/: Wehre the file is located (folder name)
ambient.scThe file name(in this case ambient. Which is a sound fle)

Code: Select all


So what do you think>

Posted: Tue Feb 11, 2003 5:53 pm
by jv_map
Well that would turn out to be an endless list with little useful information. Fortunately, all available script commands are documented. Just check the radiant/docs folder for script files.txt and g_allclasses.html.

Posted: Tue Feb 11, 2003 6:01 pm
by Yarik
And i mean not just stoping at telling the definition of the words but tell them also how they are able to use these words like so:

ex

HOW TO USE THE CODE
level waittill prespawn /////Waits till before you spawn//////

///////////////////////////
exec global/ambient.scr m5l1b //////executes ambient.scr file located in Global folder--Level music----///////
exec global/weather.scr ///////////executes. weather.scr located in Global floder--this is done for rain sound------///////////
/////////////////

/////////////////
level waittill spawn /////////Waits till you spawn.///////
thread puddle /////////this starts a puddle on your water. Wonr work without the code below////////////
/////////////////

////How the puddle works////////
puddle: ///////Executes the code below in compliance with the code above.///////
wait 120 //// wait 2 minutes before starting or waits 120 seconds (samething)///
$rainpuddle moveup 24 // elevate the script object 24 units
$rainpuddle time 600 // take 10 minutes to do it or takes 600 seconds (samthing)////
$rainpuddle waitmove //moves the rain puddle
end

Posted: Tue Feb 11, 2003 6:02 pm
by Yarik
Umm i will try to check that out. Thanks for pinting it out for me. :wink:

Posted: Tue Feb 11, 2003 6:45 pm
by jv_map
Eek your script misses one 'end' :?.