Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Mon Nov 24, 2003 5:42 pm   

ZMaverick Backstab Reporter for Med
 
Fixed the fireshield and twist bugs, doesn't do weapon procs,ice shield atm, or room name going to add them to the next version which will be a full rewrite since theres a weird bug I cant find:p

This is based on the maverick script for MM, I borrowed the display , theme idea, and a few themes.

Commands:
zmlisttheme - lists all themes you have installed
zmstatus - shows if your reporting to show or to chat
zmtheme - alone shows current theme , or you can send in the name of theme to switch
to that theme
zmshow - toggles between reporting to show and chat

I never finished writing the rest of the theme manager, since thats getting updated too so if you want to add your own theme make a list variable containing 7 colors then add the name of that variable to the zmthemelist list

Theres also a weird bug, which i cant reproduce to fix because it seems to happen only when theres lag during a backstab, it doesnt reset the previous backstab im guessing so it looks like you just landed a double Triple, not so bad though impresses people on chat :)

Code:
#CLASS {ZMaverick|User Commands}
    #VARIABLE zmShow   {0}
    #ALIAS    zmHelp   {zmtitlehelp;zmstatushelp;zmtoghelp;zmthemehelp;zmaddthemehelp;zmlistthemehelp}
    #ALIAS    zmShow   {#IF (@zmShow) {zmshow = 0;zmMessage ZMaverick ShowMe Enabled} {zmshow = 1;zmMessage ZMaverick ShowChat Enabled}}
    #ALIAS    zmStatus {#IF (@zmShow) {zmMessage Currently Reporting to Chat} {zmMessage Currently Reporting to Show}}
#CLASS 0

#CLASS {ZMaverick|General Functions}
#ALIAS zmMessage {#SHOW @CaebColor(bold,blue)~(@CaebColor(bold,white)ZMaverick@CaebColor(bold,blue)~) @CaebColor(bold,white) %1}
#ALIAS zmProcsOn {#T+ {ZMaverick|Shields|FireShield}}
#ALIAS zmProcsOff {#T- {ZMaverick|Shields|FireShield}}
#CLASS 0

#CLASS {ZMaverick|Main Trigger}
    #VARIABLE zmoldhps {0} {0}
    #VARIABLE zmnewhps {0} {0}
    #TRIGGER {(%n)hp *} {zmoldhps = @zmnewhps;zmnewhps = %1;#IF {@zmbuserstab} {zmShowDisplay};#IF {@zmbenemystab} {zmShowEnemyDisplay}} "" {nocr|prompt}
#CLASS 0

#CLASS {ZMaverick|Help}
    #ALIAS zmtitlehelp     {zmmessage Help File}
    #ALIAS zmstatushelp    {#SHOW @CaebColor(bold,green)zmstatus%repeat(" ",4)- @CaebColor(bold,white)Will show you if you are currently reporting to show or to chat.}
    #ALIAS zmtoghelp       {#SHOW @CaebColor(bold,green)zmshow%repeat(" ",6)- @CaebColor(bold,white)Will toggle reporting to show or chat.}
    #ALIAS zmthemehelp     {#SHOW @CaebColor(bold,green)zmtheme%repeat(" ",5)- @CaebColor(bold,white)By itself, shows current theme or if used with a theme will switch to that theme.}
    #ALIAS zmaddthemehelp  {#SHOW @CaebColor(bold,green)zmaddtheme%repeat(" ",2)- @CaebColor(bold,white)Will install a new theme, theme must be a variable list with 7 colors.(NOT IMPLEMENTED YET)}
    #ALIAS zmlistthemehelp {#SHOW @CaebColor(bold,green)zmlisttheme -@CaebColor(bold,white) Will list all installed themes for use with @CaebColor(bold,green)zmtheme@CaebColor(bold,white).}
#CLASS 0

#CLASS {ZMaverick|Target Condition}
#VARIABLE zmtargcond = {""} {""}
#VARIABLE zmdeathmsg {FUBARED|ICED|GOONIFIED|SLAIN|PURIFIED|OBLITERATED|DEAD|ASSIMILATED|ASSASSINATED}
#TRIGGER {barely clings to life.}             {zmtargcond = "Barely Clinging"}
#TRIGGER {grimaces with pain.}                {zmtargcond = "Grimacing"}
#TRIGGER {has a few scratches.}               {zmtargcond = "Scratched"}
#TRIGGER {looking welt on the forehead.}      {zmtargcond = "Nasty Welt"}
#TRIGGER {has many grievous wounds.}          {zmtargcond = "Grievous Wounds"}
#TRIGGER {has quite a few wounds.}            {zmtargcond = "Quite A Few Wounds"}
#TRIGGER {has some large, gaping wounds.}     {zmtargcond = "Gaping"}
#TRIGGER {has some minor wounds.}             {zmtargcond = "Minor Wounds"}
#TRIGGER {nasty wounds and bleeding cuts.}    {zmtargcond = "Nasty Wounds"}
#TRIGGER {has some small wounds and bruises.} {zmtargcond = "Small Wounds"}
#TRIGGER {with blood from oozing wounds.}     {zmtargcond = "Oozing"}
#TRIGGER {is in excellent condition.}         {zmtargcond = "Excellent"}
#TRIGGER {and will die soon, if not aided.}   {zmtargcond = "Mortally Wounded"}
#TRIGGER {looks pretty awful.}                {zmtargcond = "Pretty Awful"}
#TRIGGER {pales visibly as death nears.}      {zmtargcond = "Paling Visibly"}
#TRIGGER {winces in pain.}                    {zmtargcond = "Wincing"}
#TRIGGER {is DEAD}                            {zmtargcond = %item(@zmdeathmsg,%random(1,%numitems(@zmdeathmsg))}
#CLASS 0

#CLASS {ZMaverick|Backstab Types}
    #VARIABLE zmattempts {0} {0}
    #VARIABLE zmlanded   {0} {0}
    #VARIABLE zmbackstablist {} {}
#CLASS 0

#CLASS {ZMaverick|Backstab Types|User}
#VARIABLE zmbuserstab {0} {0}
#VARIABLE zmtargetname {""} {""}

#ALIAS zmAddBackstab {zmProcsOn;zmbuserstab = 1;zmtargetname = %1;zmbackstablist = %additem(%2,@zmbackstablist);#ADD zmattempts {1};#IF {%2 != 0.0} {#ADD zmlanded {1}}}
#TRIGGER {(*) makes a strange sound but is suddenly very silent, as you place * in * back.} {zmAddBackstab "%1" 6.0}
#TRIGGER {(*) turns * head, noticing you.} {zmAddBackstab "%1" 0.0}
#TRIGGER {You lunge at (*) with * but miss.} {zmAddBackstab "%1" 0.0}
#TRIGGER {You plunge * into the back of (*).} {zmAddBackstab "%1" 3.5}
#TRIGGER {(*) convulses in pain as you land a powerful backstab.} {zmAddBackstab "%1" 4.0}               
#TRIGGER {* finds a chink in (*)'s defenses and slides in for a direct hit!} {zmAddBackstab "%1" 5.0}
#TRIGGER {* finds its true mark as you stab at (*)'s back, as} {zmAddBackstab "%1" 5.5}
#TRIGGER {A flash of metal interrupts your concentration and your pierce lands slightly off-target as you stab at (*)'s back.} {zmAddBackstab "%1" 3.0}
#TRIGGER {Before * can react, * tears through (*)'s defenses and plunges into %w back.} {zmAddBackstab "%1" 4.5}
#TRIGGER {With unbelievable luck, (*) moves away just as you slash at %w back.} {zmAddBackstab "%1" 0.0}
#TRIGGER {You attempt to stab (*) in the back, but your thrust is partially deflected before penetrating %w defenses.} {zmAddBackstab "%1" 2.5}
#TRIGGER {Your clumsy attempt at a backstab barely hurts (*) at all.} {zmAddBackstab "%1" 1.5}
#TRIGGER {Your grip on * slips, and its tip only finds (*)'s shoulder blades.} {zmAddBackstab "%1" 2.0}
#CLASS 0

#CLASS {ZMaverick|Backstab Types|Enemy}
#VARIABLE zmbenemystab {0} {0}
#VARIABLE zmenemystab {""} {""}
#VARIABLE zmenemystabs {""} {""}
#VARIABLE zmmydeath {0} {0}
#VARIABLE zmenemyname {""} {""}

#ALIAS zmAddEnemyBs {zmProcsOn;zmbenemystab = 1;zmenemyname = %1;zmbackstablist = %additem(%2,@zmbackstablist);#ADD zmattempts {1};#if {%2 != 0.0} {#ADD zmlanded {1}}}

#TRIGGER {(*) slashes at you with * and misses.} {zmAddEnemyBs "%1" 0.0}                                                                                                                   
#TRIGGER {A vicious backstab from (*) causes you to choke on your own blood.}  {zmAddEnemyBs "%1" 3.5}                                       
#TRIGGER {Suddenly (*) stabs you in the back, RIP...} {zmmydeath = 1;zmAddEnemyBs "%1" 6.0}                                                                 
#TRIGGER {You hear footfalls behind, turning your head, you notice (*).}  {zmAddEnemyBs "%1" 0.0}                                             
#TRIGGER {(*) skillfully stabs at your back with * and tears through your armor, landing a devastating backstab.} {zmAddEnemyBs "%1" 4.5}     
#TRIGGER {Instinctively, you jump to the side and avoid (*) as he lunges at your back.} {zmAddEnemyBs "%1" 0.0}                             
#TRIGGER {(*) critically stabs you in the back with * and your body is wracked with excruciating pain.} {zmAddEnemyBs "%1" 5.5}           
#TRIGGER {(*) skillfully stabs at your back with * and tears through your defenses, landing a devastating backstab.} {zmAddEnemyBs "%1" 4.5}   
#TRIGGER {(*) stabs you in the back critically with * and your body is wracked with excruciating pain.} {zmAddEnemyBs "%1" 5.5}               
#TRIGGER {Pain shoots through your back as (*) stabs at you with * and slides it through your defenses.} {zmAddEnemyBs "%1" 5.0}             
#TRIGGER {Tendrils of pain shoot through your back as (*) stabs at your back with * and lands an off-center blow} {zmAddEnemyBs "%1" 3.0}   
#TRIGGER {You convulse in pain as (*) powerfully stabs you in the back with} {zmAddEnemyBs "%1" 4.0}                                         
#TRIGGER {You feel a sharp, stinging pain as (*) stabs at your shoulder blades with} {zmAddEnemyBs "%1" 2.0}                               
#TRIGGER {You reel in pain as (*) lunges at your back and lazily penetrates your defenses with the} {zmAddEnemyBs "%1" 2.5}                   
#TRIGGER {You wince in pain as (*) clumsily stabs at your back.} {zmAddEnemyBs "%1" 1.5}                                                     
#CLASS 0

#CLASS {ZMaverick|Shields|FireShield} {disable}
#VARIABLE zmFshield {0} {0}
#TRIGGER {^Energy rebounds from *'s fireshield hitting you.$} {zmFshield = 1}
#CLASS 0

#CLASS {ZMaverick|Twists}
#VARIABLE zmTwists {""} {""}
#TRIGGER {You twist * as you remove it from (*)'s back.} {#ADDITEM zmTwists @zmattempts}
#TRIGGER {(*) twists * as * removes it from your back.} {#ADDITEM zmTwists @zmattempts}
#CLASS 0

#CLASS {ZMaverick|Theme Manager}

;;1: Attempts Landed Ratio, Numbers and the words targname and condition and hp #
;;2: will be the / and the multiplier #s the x and the condition percentage
;;3: will be average #
;;4: will be the hyphens around singled doubled...
;;5: will be the singled
;;6: will be the skeleton color You just * (*!/*) [*] on * to * it was Fireshielded (Damage:*hps) (*hps)
;;7: will be the Twist (T) id suggest leaving this red

#ALIAS zmlisttheme {zmMessage Currently Installed Themes;#FORALL @zmthemelist {#SHOW %i}}
#VARIABLE zmthemelist {white|peace|slime|saiyan}
#VARIABLE zmbackuptheme {""} {""}
#ALIAS zmtheme {#IF {%1} {zmswitchtheme %1} {#SHOW @CaebColor(cyan)~[@CaebColor(bold,cyan)ZMaverick@CaebColor(cyan)~]Current Theme~:;themeexample}}
#ALIAS zmswitchtheme {#IF {%ismember(%1,@zmthemelist)} {#SHOW @CaebColor(cyan)~[@CaebColor(bold,cyan)ZMaverick@CaebColor(cyan)~]Switching To Theme~: %1 - @CaebColor(BOLD,RED)EXAMPLE:;zmcurtheme = @%1;themeexample} {#SHOW @CaebColor(cyan)~[@CaebColor(bold,cyan)ZMaverick@CaebColor(cyan)~]@CaebColor(bold,white) Error, does not appear to be a valid theme}}
#ALIAS themeexample {zmsetfakebackstab;zmCreateDisplay;zmShowMeDisplay;zmClearData}
#VARIABLE zmcurtheme {@CaebColor(bold,white)|@CaebColor(bold,cyan)|@CaebColor(cyan)|@CaebColor(bold,white)|@CaebColor(bold,green)|@CaebColor(bold,blue)|@CaebColor(bold,red)}

#ALIAS zmCreateDisplay {zmCreateFireShield;zmCreateType;zmCreateOutof;zmCreateMults;zmCreateAvg;zmCreateTarget;zmCreateCondition;zmCreateHps}

#VARIABLE slime {@CaebColor(bold,green)|@CaebColor(green)|@CaebColor(blue)|@CaebColor(green)|@CaebColor(bold,green)|@CaebColor(blue)|@CaebColor(bold,red)}
#VARIABLE saiyan {@CaebColor(bold,blue)|@CaebColor(bold,yellow)|@CaebColor(bold,white)|@CaebColor(bold,magenta)|@CaebColor(bold,green)|@CaebColor(bold,cyan)|@CaebColor(bold,red)}
#VARIABLE white {@CaebColor(bold,white)|@CaebColor(bold,white)|@CaebColor(bold,white)|@CaebColor(bold,white)|@CaebColor(bold,white)|@CaebColor(bold,white)|@CaebColor(bold,red)}
#VARIABLE peace {@CaebColor(bold,white)|@CaebColor(bold,cyan)|@CaebColor(cyan)|@CaebColor(bold,white)|@CaebColor(bold,green)|@CaebColor(bold,blue)|@CaebColor(bold,red)}
#CLASS 0

#CLASS {ZMaverick|Display Creator}
#VARIABLE zmBsDisplayTypes {WhIfFeD|SiNgLeD|DoUbLeD|TrIpLeD!}
#VARIABLE zmFireShield {@CaebColor(red)F@CaebColor(bold,red)i@CaebColor(red)R@CaebColor(bold,red)e@CaebColor(red)S@CaebColor(bold,red)h@CaebColor(red)I@CaebColor(bold,red)e@CaebColor(red)L@CaebColor(bold,red)d@CaebColor(red)E@CaebColor(bold,red)d}


#VARIABLE zmTempAvg {0} {0}
#VARIABLE zmDisplay {""} {""}
#VARIABLE zmDType {""} {""}
#VARIABLE zmDOutof {""} {""}
#VARIABLE zmDMults {""} {""}
#VARIABLE zmDAvg {""} {""}
#VARIABLE zmDTarget {""} {""}
#VARIABLE zmDCondition {""} {""}
#VARIABLE zmDHps {""} {""}
#VARIABLE zmDamage {0} {0}
#VARIABLE zmDFire {""} {""}
#VARIABLE zmbsaverage {0} {0}

#ALIAS zmSetFakeBackstab {zmtwists = "1|2";zmFshield=1;zmoldhps = 1110;zmnewhps = 1000;zmtargcond = "NUKED!";zmtargetname = "Kathy Lee Gifford";zmbackstablist = "5.5|5.5|6.0";zmattempts = 3;zmlanded = 3}
#ALIAS zmMakeAverage {zmTempavg = 0;#FORALL @zmbackstablist {#MATH {zmTempAvg} {@zmTempAvg + %i};#MATH zmbsaverage {@zmTempAvg / %float(%numitems(@zmbackstablist))}}}
#ALIAS zmMakeDamage {zmDamage = %eval(@zmoldhps - @zmnewhps)}
#ALIAS zmCreateFireShield {zmMakeDamage;#IF {zmFshield} {zmDFire = {%concat(@zmFireShield,@zmcurtheme.6,~(,@zmcurtheme.1,@zmdamage,@zmcurtheme.2,dmg,@zmcurtheme.6~))}}}
#ALIAS zmCreateType {zmDType = %concat(@zmcurtheme.4,-,@zmcurtheme.5,%item(@zmBsDisplayTypes,@zmlanded + 1),@zmcurtheme.4,-)}
#ALIAS zmCreateOutof {zmDOutof = %concat(@zmcurtheme.6,~(,@zmcurtheme.1,@zmlanded,@zmcurtheme.6,/,@zmcurtheme.1,@zmattempts,@zmcurtheme.6,~))}
#ALIAS zmCreateMults {zmDMults = %concat(" ",@zmcurtheme.6,~[,@zmcurtheme.2);#LOOP %numitems(@zmbackstablist) {zmDMults = %concat(@zmcurtheme.2,@zmDMults,@zmbackstablist.%i,%if(%ismember(%i,@zmtwists),%item(@zmcurtheme,7)T@zmcurtheme.2));#IF {%i < %numitems(@zmbackstablist)} {zmDMults = %concat(@zmDMults," ")}};#variable zmDMults {@zmDMults~%literal(@zmcurtheme.6]~)}}
#ALIAS zmCreateAvg {zmMakeAverage;zmDAvg = %concat(" ",@zmcurtheme.6,~[,@zmcurtheme.3,%format(1,@zmbsaverage),@zmcurtheme.2,x,@zmcurtheme.1," ",Average);#VARIABLE zmDAvg {@zmDAvg~%literal(@zmcurtheme.6]~)}}
#ALIAS zmCreateTarget {zmDTarget = %concat(" ",@zmcurtheme.1,@zmtargetname)}
#ALIAS zmCreateCondition {zmDCondition = %concat(" ",@zmcurtheme.1,@zmtargcond)}
#ALIAS zmCreateHps {zmDHps = %concat(" ",@zmcurtheme.6,~(,@zmcurtheme.1,@zmnewhps,@zmcurtheme.2,hps,@zmcurtheme.6,~)}

#ALIAS zmShowDisplay {zmCreateDisplay;#IF {@zmShow} {zmChatDisplay} {zmShowMeDisplay};zmClearData}
#ALIAS zmShowMeDisplay {#SHOW @zmcurtheme.6 You just @zmDtype@zmDOutof@zmDMults@zmDAvg@zmcurtheme.6 on@zmDTarget@zmcurtheme.6 %if(@zmlanded,to@zmDCondition)@zmcurtheme.6%if(@zmFShield, " it was "@zmDFire)@zmDHps}
#ALIAS zmChatDisplay {#EMOTEALL @zmcurtheme.6 just @zmDtype@zmDOutof@zmDMults@zmDAvg@zmcurtheme.6 on@zmDTarget@zmcurtheme.6 %if(@zmlanded,to@zmDCondition)@zmcurtheme.6%if(@zmFShield," it was "@zmDFire)@zmDHps}
#ALIAS zmCreateDisplay {zmCreateFireShield;zmCreateType;zmCreateOutof;zmCreateMults;zmCreateAvg;zmCreateTarget;zmCreateCondition;zmCreateHps}

#ALIAS zmShowEnemyDisplay {zmCreateEnemyDisplay;#IF {@zmShow} {zmChatEnemyDisplay} {zmShowMeEnemyDisplay};zmClearData}
#ALIAS zmCreateEnemyDisplay {zmCreateHps;zmMakeDamage;zmCreateType;zmCreateOutof;zmCreateMults;zmCreateAvg}
#ALIAS zmShowMeEnemyDisplay {#SHOW @zmcurtheme.2~:~: @zmcurtheme.1 @zmenemyname@zmcurtheme.6 just @zmDtype@zmDOutof@zmDMults@zmDAvg@zmcurtheme.6 on me for @zmcurtheme.1@zmDamage@zmcurtheme.6 damage!%if(@zmmydeath,@zmcurtheme.1 @zmenemyname@zmcurtheme.6 has just@zmcurtheme.1 Obliterated@zmcurtheme.6 me!,@zmDhps)}
#ALIAS zmChatEnemyDisplay {#EMOTEALL @zmcurtheme.2~:~: @zmcurtheme.1 @zmenemyname@zmcurtheme.6 just @zmDtype@zmDOutof@zmDMults@zmDAvg@zmcurtheme.6 on me for @zmcurtheme.1@zmDamage@zmcurtheme.6 damage!%if(@zmmydeath,@zmcurtheme.1 @zmenemyname@zmcurtheme.6 has just@zmcurtheme.1 Obliterated@zmcurtheme.6 me!,@zmDhps)}   

#ALIAS zmClearData {zmTwists = 0;zmbenemystab = 0;zmenemystab = "";zmenemystabs = "";zmmydeath = 0;zmFshield = 0;zmtargcond = "";zmbuserstab = 0;zmbackstablist = "";zmattempts = 0;zmlanded = 0;zmtargetname = "";zmProcsOff}
#CLASS 0




Requires CaebColor script.

Cheers Caebryn of Medievia(35) KotBC
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Mon Nov 24, 2003 8:49 pm   
 
Forgot to Mention script is dependant on your prompt, it needs to be able to capture you hps
Code:

    #TRIGGER {(%n)hp *} {zmoldhps = @zmnewhps;zmnewhps = %1;#IF {@zmbuserstab} {zmShowDisplay};#IF {@zmbenemystab} {zmShowEnemyDisplay}} "" {nocr|prompt}


I put in a generic one that should work if you didnt change your prompt from the default one too much
Reply with quote
Voltan
Wanderer


Joined: 17 Dec 2000
Posts: 65
Location: USA

PostPosted: Tue Dec 09, 2003 9:19 pm   
 
Nice script, one problem however. When using the showme mode it outputs fine, but when using the chat mode it outputs the actual script, IE:
just @zmDtype@zmDOutof@zmDMults@zmDAvg@zmcurtheme.6 on@zmDTarget@zmcurtheme.6 %if(@zmlanded,to@zmDCondition)@zmcurtheme.6%if(@zmFShield," it was "@zmDFire)@zmDHps

No idea why it's doing this, otherwise it works fine.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Wed Dec 10, 2003 3:03 am   
 
quote:
Originally posted by Voltan

Nice script, one problem however. When using the showme mode it outputs fine, but when using the chat mode it outputs the actual script, IE:
just @zmDtype@zmDOutof@zmDMults@zmDAvg@zmcurtheme.6 on@zmDTarget@zmcurtheme.6 %if(@zmlanded,to@zmDCondition)@zmcurtheme.6%if(@zmFShield," it was "@zmDFire)@zmDHps

No idea why it's doing this, otherwise it works fine.



Weird , i have a few other people using script and no ones had this problem. Cant really look into it atm, having e-license problems but as soon as they get back to me and fix whatevers wrong ill take a look. Cheers, Caebryn
Reply with quote
Maverick
Newbie


Joined: 24 May 2006
Posts: 1

PostPosted: Wed May 24, 2006 12:51 am   MaverickScript author
 
Any idea who wrote the original MaverickScript?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net