FORUM ARCHIVED

Dear Modding Wizards: Help me make disarmable explosives?

Discussion in 'Modding' started by TSED, Jul 7, 2012.

  1. TSED

    TSED Member

    What I want to do for "Pizza Delivery Specialist" is have it be a special-ops demolitions type of thing. In particular, I want to have two different skills that count down and explode everything around them indiscriminantly, UNLESS they are stepped on (by anything) which 'disarms' them. I have no idea how to do this.

    I'm pretty sure this isn't code in the game, but a pseudo-code example of how I would do it in an idealized setting:
    Code:
    <spell="Special Delivery" type="target floor">
      <effect type="trigger" spell="Special Delivery r3" amount="1">
      <effect type="trigger" spell="Special Delivery Cancel Mine">
    <sound and anim info here>
    </spell>
     
    <spell="Special Delivery r3" type="targetfloor">
      <effect type="trigger" spell="Special Delivery R2"
      [blah blah blah, etc., until "Special Delivery Explosion"]
    </spell>
     
    <spell="Special Delivery Cancel Mine" type="mine">
      <blah blah blah mine info here.  minePermanent="0">
      <effect type="dispel" dispel="Special Delivery R3">
      <effect type="dispel" dispel="Special Delivery R2">
      <effect type="dispel" dispel="Special Delivery R1">
    </spell>
    Of course, that's definitely not possible. I don't think that spells on a delay are actual objects that can be interacted with code-wise. The other idea would be to have the mine act as a timer itself, and have the 'mine triggered' effect be nothing. Then, the mine would have an unrelated-to-being-stepped-upon delayed creation of the next mine in line (or the end explosion, as it were), but of course mines don't fire off their effects if no one's standing on them... Right?

    I have talked about this with a few people, but everyone was always like "huh I don't know if that's possible" or giving off some theoretical pieces of the puzzle (like Fax's effect type="create" object="clock" or something to that effect).
     
  2. Ruigi

    Ruigi Will Mod for Digglebucks

    easy

    spawn a hostile entity that leaves a corpse, apply a "bomb explosion" delayed trigger effect to the corpse.

    if the corpse is removed by a targetcorpse spell effect, the "bomb" will disarmed.
     
    Kazeto likes this.
  3. Essence

    Essence Will Mod for Digglebucks

    What you want to do there is create a custom monster that looks like a mine. Summonhostile it, kill it, and put a delayed trigger on the corpse. Then, have stepping on the spell mine trigger a spell that eats the corpse (which will keep the trigger from going off.) For details, look up J-Factor's Chronomancy's Grandfather Clock Paradox.

    Bah, ninja'd. :p
     
    Kazeto likes this.
  4. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    Tangentially on topic: "Pizza Delivery Specialist" is so passe. Try "The Deliverator".
     
  5. Aegho

    Aegho Member