100% newbie mistake there, my bad. Thanks a million for the reply!
Ok, what I'm noticing is I guess I'm inheriting some properties of how the spell Polymorph works, which is preventing me from a couple of things:
1. Once I put the mask on, I'd like to still be able to have all my gear on, so that I can fight like normal.
2. I'd like to be able to take the mask off and go back into c_man form, which is impossible with my current script because it takes the mask off when it casts Poly.
I studied how Polymorph worked for like 3 hours last night, and I never saw any code in the scripts that disarm all your stuff, so I'm assuming its in the source.
That being said, is there just a command other than SRC.POLY c_dire_wolf that would change what character model my SRC player would look like?
Current code for reference:
Code:
[itemdef i_mask_dire_wolf_form}
DEFNAME=i_mask_dire_wolf_form
ID=i_mask_tribal_red
NAME=mask of dire wolf form
on=@create
color=044a
hitpoints={10 50}
on=@equip
SRC.POLY c_wolf_dire
src.message=You feel the power of the <name>.
I really appreciate the help, always wanted to make items like this and never reached out to ask about it.
Murmur
Just tried SRC.BODY and I'm getting closer to what I want, but I still can't equip items, going to keep trying stuff.
Code:
[itemdef i_mask_dire_wolf_form}
DEFNAME=i_mask_dire_wolf_form
ID=i_mask_tribal_red
NAME=mask of dire wolf form
on=@create
color=044a
hitpoints={10 50}
on=@equip
SRC.BODY c_wolf_dire
src.message=You feel the power of the <name>.
//on=@unequip
//SRC.POLY c_man
Ok...
so I removed MT-NONHUM, and added MT_USEHANDS|MT_EQUIP to the CAN of c_dire_wolf.
This works great! So I was like "I don't want normal dire wolves to be able to equip stuff, just in case.
So I created a new chardef, that is basically exactly like a direwolf, but with CAN=MT_WALK|MT_RUN|MT_USEHANDS|MT_EQUIP.
Now for whatever reason, this doesn't work... Going to play with it some more and
see if I can figure out why it didn't like the new CHARDEF
Thanks for the help again darksun84, I appreciate it.
Update: So I looked at my CHARDEF that I made, and I forgot to put in ID=c_direwolf... so I added that and it worked!!! Only one time though... So I equip it, it turns BODY into a dire wolf, then I unequip and it turns me back into man, then I equip it again, and the client does something weird and freezes like there was something on the cursor.
Here are the exact scripts:
Code:
[CHARDEF c_wolf_dire_mask]
DEFNAME=c_wolf_dire_mask
ID=c_wolf_dire
NAME=dire wolf
ICON=i_pet_wolf_dire
SOUND=snd_animals_wolf1
CAN=MT_WALK|MT_RUN|MT_USEHANDS|MT_EQUIP
//CAN=MT_WALK|MT_RUN|MT_NONHUM
DAM=20,32
ARMOR=20
DESIRES=r_jungle,r_forests
AVERSIONS=r_civilization
FOODTYPE=t_meat_raw
MAXFOOD=15
RESOURCES=1 i_ribs_raw,7 i_hide_spined
BLOODCOLOR=colors_blood
MOVERATE=100
TAG.Barding.Diff=50.3
FollowerSlots=1
TAG.SlayerGroup=WOLF
TEVENTS=e_carnivores
CATEGORY=Animals
SUBSECTION=Wild
DESCRIPTION=Wolf (dire)
ON=@Create
NPC=brain_animal
FAME={1000 1499}
KARMA={-1000 -1499}
STR={96 120}
MAXHITS={58 72}
DEX={81 105}
MAXSTAM={81 105}
INT={36 60}
MAXMANA={36 60}
MAGICRESISTANCE={57.0 75.0}
TACTICS={50.0 70.0}
TAMING={80.0 85.0}
WRESTLING={60.0 80.0}
MODAR={0 5}
RESCOLD={5 10}
RESENERGY={10 15}
RESFIRE={10 20}
RESPOISON={5 10}
[itemdef i_mask_dire_wolf_form}
DEFNAME=i_mask_dire_wolf_form
ID=i_mask_tribal_red
NAME=mask of dire wolf form
on=@create
color=044a
hitpoints={10 50}
on=@equip
SRC.BODY c_wolf_dire_mask
src.message=You feel the power of the <name>.
on=@unequip
SRC.BODY c_man
I appreciate any insight you could provide, its probably something stupid that Im not aware of. Heading to work, be back on tonight.
Thanks,
Murmur