PDA

View Full Version : about script language


saveus
04-14-2005, 11:40 AM
hi it's me and my questions again ;-)

i read the doc about script language but only have sample for make item.

it is possible with script language to make some "macro" ?
like a script who put 1000 random object tree on a zone
or another who , for each objet name like "corridor" , put an mech object torch and a light source at each "corridor"+10 loc

Cisyouc
04-14-2005, 02:24 PM
I'm sorry..I dont understand your question(s).

What scripting language are you referring to and what are you trying to do?

Belfedia
04-14-2005, 08:39 PM
Mhhh, we are on openzone section.
Saveus speak about object scripted language in OZ :)

smogo
05-06-2005, 08:36 PM
hi,

iirc, OZ script language is not intended for complex scripting, and does not allow 'macros'.
You can however conditionally (if / else, while, ...) call sub-scripts. This may be a fair way for a start ;)

i hope this helps.

KhaN
05-10-2005, 02:02 AM
Cannot really help here, never used OZ scripts myself, sorry.

Windcatcher
05-10-2005, 01:39 PM
The scripting language is really meant for customizing how a single object appears (e.g. a staircase, torch, chair, or any single object you can think of), not for creating more than one object at a time. As such it can't place objects from the mesh library and it doesn't have a random() function. Writing a script can be really hard for beginners, but the nice thing is that you only have to do it once and then everyone can benefit.