Disable Autoequip
Submitted by Lukawh on Fri, 2013-12-27 16:03 | ||
Hi guys,I'm creating playable hassat,zaurask and more races and since they can't equip armor(unless I learn how to work with SiegeMax) I balance their stats using spells. The issue is that when they pick up some piece of armor,the game tries to equip it because they don't have any armor equiped. But the armor disappears as soon as it is picked up. Is there a way to force the armor to be stored in inventory instead of being equiped? forums: |
||
» |
Hey Lukawh, do you understand the skrit language? If so, check out job_equip.skrit in logic.dsres/world/ai/jobs/common. I think this has the code that forces the character to try to equip something if their respective equipment slot is available.
are you even serious? There are plenty of mods adding playable monsters, they always equip pieces of equipment without visual effects, sometimes showing shields/weapons at some spots of their models. And you pretend you are 1st in the world.. oh god..
I never even whispered I think I am the first or I intend to release it. I am trying to make a mod,to learn how to mod DS and improve my skills. Besides,I have never seen mod with playable chitterskrag (or how the hell it is named) or spiders and so on.
Thank you very much,I'll check it out and see if I can undestand that
I made a playable monster pack a long time ago. Sadly the mod is no longer available anywhere to my knowledge and I've lost the source to it. You can read the thread devoted to it here, it may give you some clues;
http://www.siegenetwork.com/forums/viewtopic.php?t=6921&sid=487b978e819de20838804c732751ff36
Check out Dungeon Siege Revived too as it had some playable monsters, including a dragon. I believe I used some of their techniques in my mod. It basically uses a player_custom block in the character's template to set disable_armor = true and disable_weapons = true. It also has a special ai setting called jat_get which helps manage the armor and weapons.
http://siegetheday.org/?q=node/1381
So I would start off by untanking DS revived and cloning the dragon's template for the monsters you want to enable as playable. DS revived allows reuse of custom code as long as due credit is given to the authors, Jason 'Ikkyo' Gripp and Francisco 'Omniscient_Colossus' Athens.
Even this site keeps playable monsters rofl
Also, http://vk.com/dungeonsiegerpg?z=photo-2355279_317191529%2Fwall-2355279_2526
By Mikle-works (aka mikle009)
It worked perfectly,thank you
I have never seen this site and the link provided allows that in DS2 while I'm learning about DS1. By the way,having it done myself makes me feel much more satisfied,I wanted to see how such thing is done.
sorry, i've missread the topic and went cocky.. gl with your efforts
Oh, Iryan, that's it... it's in the AI skrit job_get.skrit. That's the one that is causing your character to equip the item instead of just placing it in their inventory...