
05-07-2002, 09:52 PM
|
|
Registered User
|
Join Date: Nov 2001
Location: California
Posts: 297
|
|
|
predifined object is a faster way for people to create npcs they use a lot. they were in newfeatures2001.txt.
- in the editor there is a new option 'Predefined npcs';
there are all scripts (text files) listed where the
filename starts with 'defnpc' and ends with '.txt';
you can select the npc, then drag&drop it onto the level
by clicking on the npc outline icon left of the choice
box and moving it onto the level;
in the script file you can insert lines like
#COMMENTS This is a door
for changing the comments that are displayed under the
choice box, and
#EDIT redvalue 1
to let the user change a value in the script:
when you add the npc to the level then
all occurances of the variable ('redvalue') will
be replaced by the entered text (in this case '1'
if you don't change the text)
that is the section from newfeatures2001.txt. hopes this helps |
|
|
|