Jump to content

AI script command for items with multiple abilities (Ring of Gaxx, etc)


misterslack

Recommended Posts

How do I select an item's particular ability for use in an AI script? For example, the Ring of Gaxx can cast both Improved Haste and Improved Invisibility, however UseItem("RING39", Myself) only uses the invisibility. I don't see any command in the IESDP and I cannot find an example script that does what I'm talking about. I tried SelectWeaponAbility and that didn't work. Any help would be greatly appreciated.

Link to comment
How do I select an item's particular ability for use in an AI script? For example, the Ring of Gaxx can cast both Improved Haste and Improved Invisibility, however UseItem("RING39", Myself) only uses the invisibility. I don't see any command in the IESDP and I cannot find an example script that does what I'm talking about. I tried SelectWeaponAbility and that didn't work. Any help would be greatly appreciated.

 

I don't believe you can do it through scripting. At least, I've never been able to get it to work. Kensai Ryu had a lich script that supposedly did some fancy stuff with a staff of the magi, but I never saw it in action.

Link to comment

Huh, i thought i had the bright idea to actually implement this in gemrb.

I didn't know the original engine does it too :)

 

On the other hand, UseItemSlot and UseItem share the SAME opcode.

So, if the analogy works completely, then you could use this too

34 UseItem(S:Object*,O:Target*,I:Ability)

 

See

97 UseItemPoint(S:Item,P:Target*,I:Ability*)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...