There are many properties that a character has that a NPC doesn't have and I think everyone knows them... Why have POLCLASS_NPC when you have object.npctemplate ? Haha.
Author
Message
MontuZ Distro Developer
Joined: 10 Feb 2006 Posts: 293 Location: Myrtle Beach, South Carolina
Posted: Sun May 14, 2006 2:52 pm Post subject:
tekproxy wrote:
There are many properties that a character has that a NPC doesn't have and I think everyone knows them... Why have POLCLASS_NPC when you have object.npctemplate ? Haha.
My point exactly. But you never know, there could be a valid reason why it was never added. When a dev gets a chance they'll give us an answer, maybe.
I thought the answer was already posted above: There are already lots of ways to tell... npctemplate, which no PC has, or ip or acctname, which no NPC has. Or just test for ISA(POLCLASS_MOBILE) && (!ISA(POLCLASS_NPC))
Author
Message
Danielle
Joined: 07 Feb 2006 Posts: 97 Location: Pittsburgh, Pennsylvania
Posted: Sun May 14, 2006 10:40 pm Post subject:
I think this is one of those requests where, "Yes, there are ways to do it, but why not simplify it by adding this flag?"
Kinda like how you could use pc.ip to test for connection, but we got pc.connected anyway.
These kind of features are really useful to those new to escript (and especially programming in general) and do not know all the work-around methods posted here.
Author
Message
Austin POL Developer
Joined: 30 Jan 2006 Posts: 354 Location: San Diego, California
Posted: Sun May 14, 2006 11:01 pm Post subject:
Think of the class heirarchy.. then look at the POLCLASS_* flags