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 14:51] spankitty |
features:sinfar_supporter_housing:npc_appearance [2019/07/22 07:07] (current) spankitty |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== NPC Appearance ====== | ====== NPC Appearance ====== | ||
- | ==== Resources : ==== | + | If you know how to put an npc in your house , it may be time to dress them up ! |
+ | |||
+ | ==== 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 9: | Line 11: | ||
- | 1: A NPC. | + | 1: A NPC. (female in this case) |
Line 40: | 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 61: | Line 63: | ||
{{:features:sinfar_supporter_housing:npc_playerhouse_spawn_variables.jpg}} | {{:features:sinfar_supporter_housing:npc_playerhouse_spawn_variables.jpg}} | ||
+ | |||
+ | Var Values come from : | ||
+ | |||
+ | ARMOR = Tailor dummy change armor appearance menu.\\ | ||
+ | BODY = Body dummy front 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. | ||