Modding Help Items with charges

Discussion in 'Starbound Modding' started by leigh_t, Dec 18, 2013.

  1. leigh_t

    leigh_t Space Hobo

    Hi all,

    I've been trying to make an item with an amount of charges where one charge is consumed on each use, and the item can be replenished by dropping another item on it, much like you would use ore to repair a pickaxe or drill.

    Imagine large pieces of food that you can use multiple times, multi-use stimpacks, etc.

    Originally I thought I might be able to use durability for this, but for all of the item types I tried, it seems that only miningtools support durability. Miningtools only activate when pointed at a block, and do not support effects or scripts, so this is not helpful.

    None of the item types that I've tried seem to support scripts either (is it limited to objects and npc behaviours?)

    Does anyone know how this multi-use can be achieved?

    Cheers!
     

Share This Page