grenades

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tdragon
    Rookie
    • Sep 2025
    • 1

    grenades

    been messing around with the gamedata files trying to work out how to make a grenade object. tried making a flask that explodes and does a fireball style effect however i cant seem to figure out how to get the effect to trigger. i tried changing its type to shot thinking maybe it would trigger on doing damage if that is what the object normally does but that also did not work. Wonder if any one can point me in the right direction on how to make this work:

    name:& Boom Jug~
    type:shot
    graphics:!:r
    level:1
    cost:10
    pile:75:1d10
    weight:20
    attack:1d4:10:0
    armor:0:0
    pval:7500
    alloc:50:1 to 100
    effect:BALL:FIRE:2
    dice:5
    flags:EXPLODE | THROWING | SHOW_DICE
    desc: A small explosive attached to some white lightning
    desc: which is sure to make somebodies day alot worse.
    desc: When thrown, it is considered lit, and when it hits its
    desc: target explodes in a glorious ball of fire.
  • backwardsEric
    Knight
    • Aug 2019
    • 556

    #2
    With Angband 4.*, you will need to modify the source code to do what you want. player-attack.c currently does not trigger an effect when a thrown object hits something so changes to object.txt are not sufficient. You could look at NarSil, https://github.com/NickMcConnell/NarSil , which started with Angband 4.2's code and did add the capability to trigger effects when a thrown object hits. NarSil's rules for combat, however, are substantially different than Angband's.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎