This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
features:sinfar_supporter_housing:npc_appearance [2019/07/20 15:07] spankitty |
features:sinfar_supporter_housing:npc_appearance [2019/07/22 07:07] (current) spankitty |
||
---|---|---|---|
Line 3: | Line 3: | ||
If you know how to put an npc in your house , it may be time to dress them up ! | If you know how to put an npc in your house , it may be time to dress them up ! | ||
- | ==== Resources to be created in your webclient resource page : ==== | + | ==== Resources to use or that need to be created (similar) in your webclient resource page : ==== |
{{:features:sinfar_supporter_housing:npc_playerhouse_resources.jpg}} | {{:features:sinfar_supporter_housing:npc_playerhouse_resources.jpg}} | ||
Line 11: | Line 11: | ||
- | 1: A NPC. | + | 1: A NPC. (female in this case) |
Line 42: | Line 42: | ||
SetEntireCreatureAppearance(OBJECT_SELF, sBodyAppearance); | SetEntireCreatureAppearance(OBJECT_SELF, sBodyAppearance); | ||
} | } | ||
- | if(sArmorAppearance!=""&&GetIsObjectValid(oArmor)) | + | if(sArmorAppearance != "" && GetIsObjectValid(oArmor)) |
{ | { | ||
RestoreItemAppearance(oArmor, sArmorAppearance); | RestoreItemAppearance(oArmor, sArmorAppearance); | ||
object oNewArmor = UpdateItemAppr(oArmor); | object oNewArmor = UpdateItemAppr(oArmor); | ||
- | if(GetItemAC(oNewArmor)!=iOrginalAC) | + | if(GetItemAC(oNewArmor) != iOrginalAC) |
{ | { | ||
SetItemAC(oNewArmor, iOrginalAC); | SetItemAC(oNewArmor, iOrginalAC); | ||
} | } | ||
} | } | ||
- | if(sHeadAppearance!="") | + | if(sHeadAppearance != "") |
{ | { | ||
SetHeadItemOverrideString(OBJECT_SELF,sHeadAppearance); | SetHeadItemOverrideString(OBJECT_SELF,sHeadAppearance); | ||
Line 66: | Line 66: | ||
Var Values come from : | Var Values come from : | ||
- | ARMOR = Tailor dummy change armor appearance menu. | + | ARMOR = Tailor dummy change armor appearance menu.\\ |
- | BODY = Body dummy front menu. | + | BODY = Body dummy front menu.\\ |
- | HEAD = Body dummy change Body Parts Head menu. | + | HEAD = Body dummy change Body Parts Head menu.\\ |
Notes : | Notes : | ||
- | The Body appearance is somewhat optional as that would only show if the NPC gets undressed. | + | The Body appearance is somewhat optional as that would only show if the NPC gets undressed.\\ |
- | The Head appearance is optional in case you use a V2 head (a head you cannot set with the toolset). | + | The Head appearance is optional in case you use a V2 head (a head you cannot set with the toolset).\\ |
The Generic_Master on the picture makes the NPC wander about and has nothing to do with the appearance. | The Generic_Master on the picture makes the NPC wander about and has nothing to do with the appearance. | ||