kilopi_3142
Apprentice
Posts: 32
Likes Given: 16
Likes Received: 3 in 3 posts
Joined: Feb 2015
Reputation: 1
|
NPC skin color problem
Code:
[CHARDEF c_fisher]
ID=c_man
NAME=fisherman
DESIRES=i_gold
AVERSIONS=t_trap
TSPEECH=spk_human_prime
TSPEECH=spk_human_default
TSPEECH=spk_shopkeep
//TSPEECH=spk_rehello
//TSPEECH=spk_needs
//TSPEECH=jobFisher
TEVENTS=e_Human_HearUnk
TEVENTS=e_Human_ConvInit
TEVENTS=e_Human_Needs
TEVENTS=e_Human_Greet
TEVENTS=e_Human_Space
TEVENTS=e_Human_Refuse
TEVENTS=e_Human_Environ
TEVENTS=e_npc_vendor
TEVENTS=e_trainer
CATEGORY=Civilized
SUBSECTION=Tradesmen
DESCRIPTION=Fisherman (human male)
ON=@Create
NAME=#NAMES_HUMANMALE
TITLE=fisherman
COLOR=colors_skin
NPC=brain_vendor
NEED=i_gold
STR={45 55}
DEX={45 55}
INT={45 55}
ANATOMY={20.0 30.0}
ANIMALLORE={20.0 30.0}
CAMPING={20.0 30.0}
CARPENTRY={20.0 30.0}
FENCING={20.0 30.0}
FISHING={50.0 75.0}
MAGICRESISTANCE={20.0 30.0}
MEDITATION={20.0 30.0}
TACTICS={20.0 30.0}
WRESTLING={20.0 30.0}
ITEMNEWBIE=random_light
ITEMNEWBIE=random_male_hair
COLOR=colors_hair
ITEM=random_shirts_human
COLOR=colors_all
ITEM=random_pants_human
COLOR=colors_all
ITEM=random_footwear_human
COLOR=colors_neutral
ITEM=random_hats,1,R5
COLOR=colors_all
ON=@NPCRestock
ITEM=random_coin_purse
ITEM=i_fishing_pole
SELL=VENDOR_S_FISHER
BUY=VENDOR_B_FISHER
Hi all,
I was working on sphere yesterday and have encountered with a problem. Let me try to explain this in English
As you can see, character definiton script of "C_fisher" is above. At the "Create" trigger of this script, there is an item called " ITEM=random_hats,1,R5". and its color called "COLOR=colors_all".
The problem is;
If sphere doesnt create the hat because of the randomize of the script, then npc's skin is getting the color code from the hat's color code "COLOR=colors_all".
Sorry but, I've searched about this problem but couldnt find anything I've removed the randomize from the script and the skin color problem is gone but i'm curious about any other solution.
|
|
02-09-2015 07:40 PM |
|
|