the characters in the conversation to change their clothes during the
conversation. The script looks fine to me, but it doesn't seem to want
to run during the conversation.
I'm not sure what it is I'm doing
wrong, but I haven't found much information on running scripts during
conversations, so it might be something extremely simple. Any help is
appreciated!
#include "plt_rivian"
#include "wrappers_h"
#include "utility_h"
void main()
{
//gets Rivian and thugs
object oRivian = GetObjectByTag("rivian_battle_2");
object oThug1 = GetObjectByTag("rivian_thug_1_2");
object oThug2 = GetObjectByTag("rivian_thug_2_2");
//gets all their equipped items
object oRivianArmour = GetItemInEquipSlot(INVENTORY_SLOT_CHEST, oRivian);
object oRivianWeapon = GetItemInEquipSlot(INVENTORY_SLOT_MAIN, oRivian);
object oRivianShield = GetItemInEquipSlot(INVENTORY_SLOT_OFFHAND, oRivian);
object oRivianBoots = GetItemInEquipSlot(INVENTORY_SLOT_BOOTS, oRivian);
object oRivianGloves = GetItemInEquipSlot(INVENTORY_SLOT_GLOVES, oRivian);
object oThug1Armour = GetItemInEquipSlot(INVENTORY_SLOT_CHEST, oThug1);
object oThug1Weapon = GetItemInEquipSlot(INVENTORY_SLOT_MAIN, oThug1);
object oThug1Shield = GetItemInEquipSlot(INVENTORY_SLOT_OFFHAND, oThug1);
object oThug1Boots = GetItemInEquipSlot(INVENTORY_SLOT_BOOTS, oThug1);
object oThug1Gloves = GetItemInEquipSlot(INVENTORY_SLOT_GLOVES, oThug1);
object oThug2Armour = GetItemInEquipSlot(INVENTORY_SLOT_CHEST, oThug2);
object oThug2Weapon = GetItemInEquipSlot(INVENTORY_SLOT_MAIN, oThug2);
object oThug2Boots = GetItemInEquipSlot(INVENTORY_SLOT_BOOTS, oThug2);
object oThug2Gloves = GetItemInEquipSlot(INVENTORY_SLOT_GLOVES, oThug2);
//gets Rivian & co.'s clothes
object oRivianClothes = GetObjectByTag("gen_im_cth_com_c03");
object oThug1Clothes = GetObjectByTag("gen_im_cth_com_a01");
object oThug2Clothes = GetObjectByTag("gen_im_cth_com_b02");
//Unequips all items from Rivian and friends
UnequipItem(oRivian, oRivianArmour);
UnequipItem(oRivian, oRivianWeapon);
UnequipItem(oRivian, oRivianShield);
UnequipItem(oRivian, oRivianBoots);
UnequipItem(oRivian, oRivianGloves);
UnequipItem(oThug1, oThug1Armour);
UnequipItem(oThug1, oThug1Weapon);
UnequipItem(oThug1, oThug1Shield);
UnequipItem(oThug1, oThug1Boots);
UnequipItem(oThug1, oThug1Gloves);
UnequipItem(oThug2, oThug2Armour);
UnequipItem(oThug2, oThug2Weapon);
UnequipItem(oThug2, oThug2Boots);
UnequipItem(oThug2, oThug2Gloves);
//equips their clothes because I don't like shame
EquipItem(oRivian, oRivianClothes);
EquipItem(oThug1, oThug1Clothes);
EquipItem(oThug2, oThug2Clothes);
}
Modifié par sea-, 08 avril 2011 - 04:39 .





Retour en haut







