Odamex Message Boards

Welcome, Guest. Please login or register.  Did you miss your activation email?
September 09, 2010, 06:26:35
Pages: [1] Print
Author Thread: Mapscript examples?  (Read 1790 times)
killingblair
Odamechs
Posts: 11

February 14, 2007, 10:16:06
There was fairly limited information in the OdaWiki, so I'll ask here.

May I see an example of how to use a startmapscript/endmapscript with if commands to see how to correctly cycle wads and maps?
Logged View Profile
Manc
Fist to the face!
Posts: 68
Administrator

February 16, 2007, 15:24:11
I have yet to use it myself, but denis (voxel) would be the best person to provide more info.  He is gone for another week, but I will point him to this thread and let him to he should provide a bit more documentation and example.

In the meantime, I would suggest taking what info is there and experimenting.  I highly recommend you run your server through a debugger and report any crashes that may occur to a new bug on the bug tracker.  And of course report any useful findings here as well as updating the wiki if possible.
Odamex Web Administrator
Logged View Profile | WWW
Marcus Koller
Posts: 15

March 19, 2007, 12:46:05
So, it will contain some ZDoom scripting or is this its own script language?
Logged View Profile
deathz0r
kick it oldskewl
Posts: 62
Administrator

March 19, 2007, 19:57:56
This is its own language. It's entirely server-side, not client-side.
[ deathz0r || unidoom ]
Logged View Profile | WWW
Voxel
Posts: 22
Developer

March 23, 2007, 07:04:19
The syntax for starmapscript is very simple:

Code:
if CVAR1 eq VALUE1 CVAR2 VALUE2

CVAR2 will be set to VALUE2 if CVAR1 is currently set to VALUE1. 'curmap' is a read-only cvar that tracks the current map, so it is a useful condition:

Code:
if curmap eq MAP01 skill 5
if curmap eq MAP02 skill 4
if curmap eq MAP30 hostname "join if you dare"

This code can be placed directly into starmapscript, or it can be put in a script, and starmapscript can be set to "exec script.cfg".

While bug 112 is still open, these scripts are SUBJECT TO CHANGE. Suggestions for improvement/replacement are welcome.
Logged View Profile | WWW
killingblair
Odamechs
Posts: 11

March 25, 2007, 01:32:59
Sheds a lot of light on the subject, many thanks!
Logged View Profile
Russell
MUTT DAYMONG
Posts: 63
Developer

March 26, 2007, 17:23:47
I made an article for it on the wiki, it probably needs some work, but its a start.

http://odamex.net/wiki/Map_scripts
-=[]=-Russells software site-=[]=-
Logged View Profile | WWW
Pages: [1] Print
 
Jump to:

Page created in 0.053 seconds with 18 queries.