SphereCommunity
Changing DISPID of NPC - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Changing DISPID of NPC (/Thread-Changing-DISPID-of-NPC)



Changing DISPID of NPC - Wap - 04-29-2013 08:43 AM

Is in Sphere any way to change dinamically DISPID of monster?
ID / DISPID are not writable, but changing BODY changes BASEID and all parameters of the NPC.

I wanted to make random male / female NPCs without duping the CHARDEF block...


RE: Changing DISPID of NPC - Alaric - 05-16-2013 09:33 PM

Since I still don't know how ID, BASEID, DISPID works, I made a trap this way. (because I wanted only the graphics, not inherited attributes, types, etc.)

[itemdef i_doom_trap1]
type=t_normal
on=@create
dispid=i_trap_fire_stone_2
attr=attr_can_decay|attr_static

=> try changing dispid in that trigger... { id1 id2 }


RE: Changing DISPID of NPC - Wap - 05-16-2013 10:42 PM

(05-16-2013 09:33 PM)Alaric Wrote:  Since I still don't know how ID, BASEID, DISPID works, I made a trap this way. (because I wanted only the graphics, not inherited attributes, types, etc.)

[itemdef i_doom_trap1]
type=t_normal
on=@create
dispid=i_trap_fire_stone_2
attr=attr_can_decay|attr_static

=> try changing dispid in that trigger... { id1 id2 }
Where I'm talking about the items? For items DISPID is writable, for chars - not.