Attack Item Help

● ARCHIVED · READ-ONLY
Started by jerdooski 4 posts View original ↗
  1. Hey all,

    I'm sure there's an easy way to do this but I just can't think of anything at the moment...

    I want one of my characters to be able to use throwing knives as an attack, but only that character.

    Also the knives come in sets and your inventory decreases with each time you use them.

    (pretty much an item only usable in battle by one player but you don't need to go to the item tab to use it)

    I've tried to use it as a skill but it is constant and doesn't turn off when the knives are depleted.

    I want to know what I should look into in order to create this kind of weapon as I've messed around

    with variables and whatnot and can't find a way to do this.

    Again I'm sure its an easy task but it's stumping me right now.

    Any help is appreciated :)
  2. 1) you give the weapon the feature "skill - throwing", then the skill only exists if the weapon is equipped. You have to make sure that only the correct actors can equip those weapons, but if you select the skill type correctly then only the actor who are supposed to be able to throw them can use the skill, for other actors it would be the weapon without the ability to use the skill.


    2) in addition to the regular damage, you add a common event to the throwing skill. That event does nothing but remove one knife from the inventory (remember to allow removing of equipped weapons, or the last knife could be thrown indefinitely.


    One possible problem with this is if several actors can use those knifes - in that case it might happen that actor 3 throws but the knife is removed from actor 1 or so.


    If you want to prevent that mixup you'll have no choice but to use one of the skill cost scripts, and set the knife as the cost of the skill.
  3. Thanks a bunch!!
  4. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.