Thread: Easier editNPC
View Single Post
  #4  
Old 11-11-2005, 09:52 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Excaliber's post made me giggle.

Spanky, there's a predefined NPC function in the editor. It pastes in an already made NPC and uses the variables you type in.

You just add a .txt file to levels/npcs/, like this one:
PHP Code:
//#COMMENTS Changes the tileset of the level
//#EDIT Tileset pics1.png
//#CLIENTSIDE
function onPlayerEnters() {
  
addtiledef(Tilesetlevel0);

You can then go to 'Predefined NPCs' in the level editor, select this one, type in the tileset image, and place it in the level.
Reply With Quote