What about making a MOH scripting dictionary???

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

What about making a MOH scripting dictionary???

Post 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>
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post 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
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post by Yarik »

Umm i will try to check that out. Thanks for pinting it out for me. :wink:
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Eek your script misses one 'end' :?.
Image
Post Reply