Quantcast
Channel: Modding — Beamdog Forums
Viewing all articles
Browse latest Browse all 11774

A trick to undress people

$
0
0
I've asked a lot of questions, well, here is a contribution from my end: if you want a character to take off some of his items without having to know a specific RESREF of an item, you can order him to take his own equipment. From an invisible summoned minion:

ActionOverride(LastSummonerOf(Myself),TakeCreatureItems(Myself,3))

In TAKEITEM.IDS "3" is for weapons, so this command causes the character to put his weapon and shield in his inventory, in the first empty slots. Later you can use FillSlot(SLOT_WEAPON) and FillSlot(SLOT_SHIELD) to rather reliably put them back in his hands, unless he is carrying an assortment of weapons and shields in the backpack. The FillSlot() commands can be a standard list - if the character has nothing for a slot, he will just move on to the next order. The IDS file gives you a few more options:

IDS V1.0
0 ALL
1 BACKPACK
2 EQUIPPED
3 WEAPONS
4 QUICKITEMS

I haven't tested, but you should be able to strip people completely with these. Also, in the case of weapons, a command like the above in a fight would effectively disarm an enemy, though he might just put on the stuff again if scripted with EquipMostDamagingMelee() and such. Still, it should cause an one-round loss of attacks, at least, or potions for "0" or "4." If armor also gets taken off with "0" and "2," then it may not, possibly, be reequipped in the same fight.

Viewing all articles
Browse latest Browse all 11774

Latest Images

Trending Articles



Latest Images