User Tools

Site Tools


building:creatures:appearance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
building:creatures:appearance [2019/03/30 16:46]
murdrkitten
building:creatures:appearance [2022/12/20 10:03] (current)
spankitty [Using SinfarX Features]
Line 1: Line 1:
 ====== Creatures Appearance ====== ====== Creatures Appearance ======
  
-===== Adding Visual Effects ===== 
  
  
Line 9: Line 8:
 See: See:
 https://​nwn.sinfar.net/​res_nss_edit.php?​name=inc_appr https://​nwn.sinfar.net/​res_nss_edit.php?​name=inc_appr
 +(Get/​SetEntireCreatureAppearance is being replaced by Get/​SetEntireCreatureAppearance2)
  
-In order to assign an XDATA appearance to a creature, you must have an Entire Appearance variable. This will assign Cloak, Helmet, Armor, Body, and Head V2 appearances to an NPC all in one go. + 
 +In order to assign an appearance to a creature, you must have an Entire Appearance variable. This will assign Cloak, Helmet, Armor, Body, Head V2 and VFX appearances to an NPC all in one go. 
  
 Traditionally,​ the easiest way to get this string is as follows:\\ Traditionally,​ the easiest way to get this string is as follows:\\
Line 16: Line 17:
 2. Go in game to a place that has both a Tailoring Model and Body Model.\\ 2. Go in game to a place that has both a Tailoring Model and Body Model.\\
 3. Set up the Body Appearance first. Once complete, copy it to yourself.\\ 3. Set up the Body Appearance first. Once complete, copy it to yourself.\\
-4. Copy your body appearance to a Tailoring Model.\\ +4. Add head & body VFX if any.\\ 
-5. Set up the Clothing/​Armor/​Helmet/​Cloak appearances.\\ +5. Copy your appearance to a Tailoring Model.\\ 
-6. Once finished, go back to the first menu while interacting with the Tailoring Model and have it "Speak the complete ​body appearance code":+6. Set up the Clothing/​Armor/​Helmet/​Cloak appearances.\\ 
 +7. Once finished, go back to the first menu while interacting with the Tailoring Model and have it "Speak the complete appearance code":
  
-{{:​building:​creatures:​nwmain_2019-03-30_09-40-33.png?400|}}+{{:​building:​creatures:​appcode.jpg?400|}}
  
-Now that you have a code, you can assign it to an NPC that has the appropriate Sinfar AI Scripts ​by using the String Variable "ENTIRE_APPEARANCE" on the creature. When the creature is created, it should have the correct appearances.+It will print the appropriate String into your Web Client for easy copying. ​Now that you have a code, you can assign it to an NPC by using the String Variable "ENTIRE_APPEARANCE2" on the creature. When the creature is created, it should have the correct appearances. ​
  
 If you want to use your own custom spawn script, make sure you include the file "​inc_appr"​ and add the following: If you want to use your own custom spawn script, make sure you include the file "​inc_appr"​ and add the following:
  
-<​code>​string sEntireAppearance = GetLocalString(oCreature,​ "ENTIRE_APPEARANCE");+<​code>​ 
 +    ​string sEntireAppearance = GetLocalString(oCreature,​ "YOUR_VARIABLE_NAME");
     if (sEntireAppearance != ""​)     if (sEntireAppearance != ""​)
     {     {
-        ​SetEntireCreatureAppearance(oCreature, sEntireAppearance);​+        ​SetEntireCreatureAppearance2(oCreature, sEntireAppearance);​
     }</​code>​     }</​code>​
  
- ​--- ​//[[zoeyalex94@gmail.com|murdrkitten]] 2019/03/30 12:37//+Note : "Speak the complete appearance code" is to be used with the variable ENTIRE_APPEARANCE2,​ this string {a lot of code} exceeds (often) the toolset'​s string variable length limit(1024). You thus have to apply this string via the web development'​s page of your erf [[https://nwn.sinfar.net/​erf/​list]].  
 + 
 +For the NPC in player houses see the instructions for the hs_spawn_animnpc function here : [[https://nwn.sinfar.net/​houses_scriptlist.php]] 
 +// 
 +// 
 +===Note ​Default NPC script nw_c2_default9 uses the variables ENTIRE_APPEARANCE2 , AI_VFX(n) and XSCALE already.=== ​   
 +// 
 +// 
 + 
 +===== Adding Visual Effects ===== 
 + 
 +To add other visual effects (ex : glow) to your NPC, add integer variable AI_VFX (or AI_VFX1, AI_VFX2, AI_VFX3, etc) with the index number(s) of the desired visual effect index # from visualeffects.2da or from the ooc area's visual effect browser. 
 + 
 +===== Resizing NPC ===== 
 + 
 +To increase/​decrease the NPC size you can use the variable XSCALE(float).  
 + 
 +===== Legacy SinfarX Individual Features ​ ===== 
 + 
 +Set the event_ai_spawn (see : [[building:​creatures:​events|https://​sinfar.net/​building/​creatures/​events]]) script to amb_npc_spawn (or any other custom appearance script). 
 + 
 +Use a body model to design your NPC's head, body, and a tailor model to design your  NPC's armor, helm and cloak. 
 + 
 +Open web client, have the model "speak the (component) appearance code" to make it whisper the xdata for each component you wish to customize on your NPC, and paste the XDATA string to the following variables:​ 
 + 
 +  * HEAD_APPEARANCE  
 +  * BODY_APPEARANCE  
 +  * ARMOR_APPEARANCE  
 +  * HELM_APPEARANCE  
 +  * CLOAK_APPEARANCE 
building/creatures/appearance.1553964376.txt.gz · Last modified: 2019/03/30 16:46 by murdrkitten

phpBB Appliance - Powered by TurnKey Linux