Unequip item by tag && area is clean
Sfera_Roja
Member Posts: 9
Hi.. , Could you help me about this?
i have a mod with a wolf as hechman, and i wish it unequip item when a playergame put it to the wolf, if item has NOT an especific TAG (premade item by me)
***
Thaaanks
And how do you do the tipycal mision..
Area A:
"clean this area (B) of monsters and returnt to me"?
Thaaanks
i have a mod with a wolf as hechman, and i wish it unequip item when a playergame put it to the wolf, if item has NOT an especific TAG (premade item by me)
***
Thaaanks
And how do you do the tipycal mision..
Area A:
"clean this area (B) of monsters and returnt to me"?
Thaaanks
0
Comments
For the item, it might be easiest to disable inventory access for the wolf entirely and have the player give the item to the wolf via dialogue.
In the wolf's dialogue, create an option [Give item]. Add a condition to it: (if the player speaker has an item tagged "TagOfTheItemHere", this dialogue option appears)
In the "Actions Taken When..." tab of the same node, add a script to give the item to the wolf, and to make the wolf equip it: (take the first found item tagged "TagOfTheItemHere" from the player, then equip it into the Neck slot)
The ActionEquipItem command needs to specify the correct inventory slot for the item type. Trying to equip an amulet into the chest slot would fail.
Assuming that you're using the x2_henchman scripts for the wolf - set the local int X2_JUST_A_DISABLEEQUIP to 1 on the wolf, and the player can no longer open their inventory.
If you want to instantaneously destroy all enemies in the area, you could cycle through them like this, for example: or like this:
If you want your wolf to autonomously go hunt down enemies and return to the player once all enemies in the area are dead, you could set off a recursive:
thaaanks, guy.. sorry if see it now, i forget it
GREAT JOB
In the fact, i asked about the tipycal mission of cleanimg am area of enemies and get reward in other ..., lool
Its in incleible the things a good writter screeps can do.. o_o