Josan12
There is nothing complicated.
Make a window through the say function. The response "remove the weapons."
When you click to install set_global_var (GVAR_REMOVE_WEAPON, 1);
In the scripts to parties, to add to critter_p_proc.
if global_var (GVAR_REMOVE_WEAPON) == 1 then remove the weapons in the inventory.
[/quote]
There is nothing complicated.
Make a window through the say function. The response "remove the weapons."
When you click to install set_global_var (GVAR_REMOVE_WEAPON, 1);
In the scripts to parties, to add to critter_p_proc.
if global_var (GVAR_REMOVE_WEAPON) == 1 then remove the weapons in the inventory.
Code:
When you click to remove weapons
//remember the PID object of his right hand
set_local_var (LVAR_GET_CURRENT_WEAPON_1, critter_inven_obj (self_obj, INVEN_TYPE_RIGHT_HAND));
//remember the PID object left hand
set_local_var (LVAR_GET_CURRENT_WEAPON_2, critter_inven_obj (self_obj, INVEN_TYPE_LEFT_HAND));
//remove weapons
inven_unwield (self_obj);
When you click "take arms"
//give weapons to the right hand
wield_obj_critter (self_obj, LVAR_GET_CURRENT_WEAPON_1);
//give weapons to the left hand
wield_obj_critter (self_obj, LVAR_GET_CURRENT_WEAPON_2);
There is a chance that this code will work. :D