You are here

Creating an item from other created items.

2 posts / 0 new
Last post
Alplimis
Creating an item from other created items.

Hello, everyone. I was wondering if there is a way to create an item, that in some way, will spawn another item. For example, I want to have a pair of gloves that create arrows to add to my inventory with a usage limit.

  • up
    50%
  • down
    50%
TheBarbarian

Sure. You'll want to give the gloves a Cast Spell -> Unique Power Self Only item property.

When the player uses this "spell", the module's OnActivateItem event runs. If tagbased scripts are turned on (they are, by default, these days) the module now tries to execute a script named to match the activated item's tag, and signals the matching event.

See Grimlar's Introduction To Tag-Based Scripting for a template script that checks which event was signalled.

You can use CreateItemOnObject to spawn your arrows on the player that activated the gloves.

  • up
    100%
  • down
    0%