tintin++ rescue script

Scripts and support for your favorite MUD client.
Kindi
Sojourner
Posts: 405
Joined: Mon Nov 09, 2009 12:42 am

tintin++ rescue script

Postby Kindi » Thu Jun 10, 2010 9:46 pm

compatible with tintin++ 2.00.1. there's a slight bug after getting blinded.. use 'ron' to start rescuing again.

Code: Select all

/*
   The below are my rescue trigsets, primarily using radd and rl commands.
   radd people to add them to rescue list, and type 'rl' a lot to look at room
   to find people to rescue.
   
   It uses the looking and rescuing environmental vars to prevent spamming of
   commands. If looking or rescuing is true, it shouldn't allow any further
   looks or rescues until the previous command has gone through. Other than rl,
   just sit back and watch the scrolling text.
   
   Bashing and shieldpunching tend to interfere somewhat, but thanks to the
   command stacking prevention, they can be interwoven 'ok'. If bashes are
   essential to success, might want to turn rescues off with 'roff'.
*/
#list RescueList clear
#alias {radd}
{
   #list {RescueList} {find} {%1} {tempresc};
   #if {$tempresc > 0}
   {
      #show You're already rescuing %1.;
   }
   {
      #list RescueList insert -1 %1;
      #show Now rescuing: %1;
   };
}
#alias {rdel}
{
   #list {RescueList} {find} {%1} {tempresc};
   #if {$tempresc > 0}
   {
      #show No longer rescuing: %1;
      #list RescueList delete $tempresc;
   }
   {
      #show %1 isn't on the rescue list.;
   };
}
#alias {rclear}
{
   #list RescueList clear;
   #show Rescue list cleared.;
}
#alias {rlist} {#show You're rescuing: $RescueList}


#var looking false
#alias {rl}
{
   #if {"$looking" == "false"}
   {
      look;
      #var looking true;
   };
}
#act {^Exits:} {#var looking false}
#act {^You can't see a damn thing, you're blinded!} {#var looking false}
#act {You can't!  You're paralyzed to the bone.} {#var rescuing false}
#act {You can't get past %1 to rescue %2!} {#var rescuing false}


#var rescuing false
#alias {r} {rescue %1;#var rescuing %1}
#alias {rresc}
{
   #list {RescueList} {find} {%1} {tempresc};
   #if {$tempresc > 0 && "$rescuing" == "false"}
   {
      r %1;
   };
}


#nop Triggers that use events from the environment to try and rescue people
#act {, fighting %1.$} {rresc %1}
#act {, fighting %1.(Gold Aura)$} {rresc %1}
#act {, fighting %1.(Red Aura)$} {rresc %1}
#act {^< T: %1 TC:} {rresc %1}
#act {%2 places %3 in the back of %1, resulting in some strange noises and some blood.} {rresc %1}
#act {%2 tried to backstab %1, but nearly cuts %3 own finger.} {rresc %1}
#act {^Upon being struck, a mirror image of %1 shatters into a million particles of light!} {rresc %1}
#act {%2 futilely tries to rescue %1!} {rresc %1}
#act {%2 {barely|slightly|badly|severely|brutally} wounds %1 with %3.} {rresc %1}
#act {%2 wounds %1 harshly with %3.} {rresc %1}
#act {%2 critically wounds %1 with %3!} {rresc %1}
#act {%1 staggers from %2's %3!} {rresc %1}
#act {%2 enshrouds %1 in a mist of blood with %3!} {rresc %1}
#act {%1 is nearly slain by the force of %2's %3!} {rresc %1}
#act {%2 recognizes %1, and charges to attack} {rresc %1}


#nop Triggers to use rl and the rescuing variable to try and rescue people
#alias {roff} {#var rescuing true}
#alias {ron} {#var rescuing false;rl}
#act {%1 switches targets..} {rl}
#nop act {%1 {enters|flies in} from the %2.} {#if {"$RescueList" != "%*{%1}%*"} {rl}}
#act {^With an arcane motion of %1 hand, %2 gates in %3!} {rl}
#act {^A dark shape springs out of the darkness at you!} {rl}
#act {Banzai! To the rescue...} {ron}
#act {But nobody is fighting %1?} {ron}
#act {Who do you want to rescue?} {ron}
#act {You fail the rescue.} {r $rescuing}


#alias {stresc} {#if {"$rescuing" != "false"} {wake;st;alert;rescue $rescuing}}
#act {^Maybe you should get on your feet first?} {stresc}
#act {^Maybe you should get up off your knees first?} {stresc}
#act {^Nah... You feel too relaxed to do that...} {stresc}
#act {^Sorry, you can't do that while laying around.} {stresc}
#act {^In your dreams, or what?} {stresc}

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 4 guests