SphereCommunity
BODY and ID - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: BODY and ID (/Thread-BODY-and-ID)



BODY and ID - Staff_Stanic - 05-16-2013 03:48 AM

Why when I change the BODY of a NPC to c_woman/c_man your BASEID/ID change too?
Example:
1)I create a c_man_x
Code:
[CHARDEF c_man_x]
ID=c_man
If I use '.xshow ID' it will return 'c_man_x' (like I want)

2) After I change her body to c_woman and use '.xshow ID' and now returns c_woman (not c_man_x)

So... I can't change the sex/body of a NPC without change the BASEID/ID?
I want to do this because is more useful a FORINSTANCES c_man_x than a FORCHARS 9999

#Sorry for my english :/


RE: BODY and ID - Wap - 05-16-2013 09:17 PM

Yes, changing BODY really change BASEID. I know no way to change DISPID of monster dinamically.
http://forum.spherecommunity.net/Thread-Changing-DISPID-of-NPC


RE: BODY and ID - darksun84 - 05-16-2013 11:40 PM

what about obody ? if the change is just on body, obody will still hold the original body(and so the id)


RE: BODY and ID - Staff_Stanic - 05-17-2013 01:37 AM

(05-16-2013 11:40 PM)darksun84 Wrote:  what about obody ? if the change is just on body, obody will still hold the original body(and so the id)

But changing the OBODY the real BODY don't change Confused
If change the BODY, the ID changes too.


RE: BODY and ID - RanXerox - 05-17-2013 11:33 AM

Body is ID. If you change one, you change the other. The body (or ID if you prefer) defines what animations are possible...


RE: BODY and ID - Staff_Stanic - 05-17-2013 11:59 AM

(05-17-2013 11:33 AM)RanXerox Wrote:  Body is ID. If you change one, you change the other. The body (or ID if you prefer) defines what animations are possible...

So... isn't possible change the sex of a NPC without change the ID? SadSadSad


RE: BODY and ID - RanXerox - 05-17-2013 12:48 PM

Correct... the built-in concept of gender is actually a "CAN" flag:

[DEFNAME can_flags]
// monster "can" type flags.
mt_male 00000
mt_nonmover 00000
mt_ghost 00001 // Moves through doors
mt_swim 00002 // Moves on water
mt_walk 00004 // Can walk on land
mt_passwalls 00008 // Walk through walls
mt_fly 00010
mt_fire_immune 00020
mt_indoors 00040 // Can go under roof
mt_hover 00080 // Hovers (can follow gargoyle flight paths)
mt_equip 00100
mt_usehands 00200
mt_mount 00400 // can ride mountables
mt_female 00800
mt_nonhum 01000 // Body type for combat messages
mt_run 02000
mt_nodclicklos 04000 // when dclicking sth., ignore LOS checks
mt_nodclickdist 08000 // when dclicking sth., ignore distance checks

Notice that "male" is a flag of zero (which everything has)... so technically all monsters are male, including the females lol.


RE: BODY and ID - Staff_Stanic - 05-17-2013 02:03 PM

(05-17-2013 12:48 PM)RanXerox Wrote:  Notice that "male" is a flag of zero (which everything has)... so technically all monsters are male, including the females lol.

Oh shit!
hahauhauahua Lol
Thanks RanXerox!