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;