Thread: Version 2.1
View Single Post
  #5  
Old 09-22-2001, 08:22 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: Version 2.1

Quote:
Originally posted by AlexH
Ok i know its beta but i noticed a thing in 2.1 in the lvl maker there are default NPCs. It is only a door and a light but i was wondering if there is a way to put your own NPCs into that so that hey can be used easier
yes you can

goto your

\levels\npcs (in your graal folder)...

and then you add a txt file there (read the other txt files to see how you kinda do it...)

example the light script...

NPC Code:

// NPC made by Stefan Knorr
//#COMMENTS The standard light, all values between 0 and 1
//#EDIT Red 1
//#EDIT Green 1
//#EDIT Blue 1
//#EDIT Alpha 0.99
if (created) {
setimg light2.png;
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect Red,Green,Blue,Alpha;
drawaslight;
}



you add
//#COMMENTS Thanks KJL for helping me on this
//#EDIT string number

then you can go like

setplayerprop #c,string;
__________________
Thanks,
-KJL
Reply With Quote