PenUltima Online

It is currently Sun Oct 12, 2008 4:31 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Packaged npcdesc.cfg issues...
PostPosted: Tue May 06, 2008 9:26 am 
Offline
User avatar

Joined: Fri Feb 10, 2006 8:08 am
Posts: 327
Location: Myrtle Beach, South Carolina
Why does it automatically append the package name to the npctemplate of an npc? Can this be removed?

Or is there a really good reason?


Code:
    npc := (Packaged npc.)
    var npcdesc_cfg := ReadConfigFile(":*:npcdesc");
    var npc_entry := npcdesc_cfg[npc.NPCTemplate];


I rest my case, lol.

And yes, I've tried adding the package brackets :pkgname: to the npcdesc entry for the npc and POL still appends the brackets so it winds up double.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 8:41 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
In the WoD scripts there was a function just for stripping the package name from the template name.

I suppose one reason for appending the pkg name might be if several NPCs in different pkgs shared a script with a common name and you wanted to fire that script for any given NPC all you'd have to do is grab the pkg name from the template to fire the appropriate script.

It's annoying when you first start using packaged NPCs. Used to drive me crazy when I started messing with WoD but I kind of like it being that way.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl