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
fadedparadox
Beginner


Joined: 11 Jan 2007
Posts: 10

PostPosted: Thu Mar 15, 2007 10:42 am   

Achaea: Tattoo Display Script
 
Trevize from Achaea here. I maintain and update a website with scripts for Achaea that I wrote.

I figured I might as well post some of my scripts here. As always, the newest versions of my scripts are at achaea.fadedparadox.com.

Quoted from my website:

Quote:
This script was written to make viewing tattoos easier, and pinpointing empty slots faster. Simply do TATTOOS and this script will display your tattoos. The tattoos script installs into the Shadow|Tattoos directory.

Code:
#CLASS {Shadow}
#CLASS 0
#DELC  {Shadow|Tattoos}
#CLASS {Shadow|Tattoos}
#VAR tattooversion {2.1}
#CLASS 0
#CLASS {Shadow|Tattoos|tattooscript}
#ALIAS tattooblank {#addkey tattoos {head|torso|left arm|right arm|left leg|right leg} {};#addkey tattoos {head uses|torso uses|left arm uses|right arm uses|left leg uses|right leg uses} {};#addkey tattoos {head ss|torso ss|left arm ss|right arm ss|left leg ss|right leg ss} {};#addkey tattoos {head ss uses|torso ss uses|left arm ss uses|right arm ss uses|left leg ss uses|right leg ss uses} {}}
#ALIAS tattoofinish {#say {%ansi( 7)"Bodypart   Tattoos"};#say {%ansi( 7)"--------   -------"};tattoodisplay Head;tattoodisplay Torso;tattoodisplay Left Arm;tattoodisplay Right Arm;tattoodisplay Left Leg;tattoodisplay Right Leg;#send "";tattooblank}
#ALIAS tattoodisplay {#sayp {%ansi( 7)%-1};#sayp %repeat( " ", 11 - %len( %-1));#sayp {%ansi( 7)%db( @tattoos, %lower( %-1))};#if (%db( @tattoos, %lower( %-1) uses)="") {#sayp {%ansi( 7)}} {#sayp {%ansi( 7)" ~("};#sayp {%ansi( 7)%db( @tattoos, %lower( %-1) uses)};#sayp {%ansi( 7)"~)"}};#if (%db( @tattoos, %lower( %-1) ss)="") {#say {%ansi( 7)}} {#if (%db( @tattoos, %lower( %-1) uses)="") {#sayp %repeat( " ", 16 - %len( %db( @tattoos, %lower( %-1))))} {#sayp %repeat( " ", 13 - %len( %db( @tattoos, %lower( %-1))) - %len( %db( @tattoos, %lower( %-1) uses)))};#sayp {%ansi( 7)%db( @tattoos, %lower( %-1) ss)};#if (%db( @tattoos, %lower( %-1) ss uses)="") {#say {%ansi( 7)}} {#sayp {%ansi( 7)" ~("};#sayp {%ansi( 7)%db( @tattoos, %lower( %-1) ss uses)};#say {%ansi( 7)"~)"}}}}
#VAR tattoos {} {}
#ADDKEY tattoos {head|torso|left arm|right arm|left leg|right leg} {}
#ADDKEY tattoos {head uses|torso uses|left arm uses|right arm uses|left leg uses|right leg uses} {}
#ADDKEY tattoos {head ss|torso ss|left arm ss|right arm ss|left leg ss|right leg ss} {}
#ADDKEY tattoos {head ss uses|torso ss uses|left arm ss uses|right arm ss uses|left leg ss uses|right leg ss uses} {}
#REGEX {^You have the following tattoos\:$} {#t+ tattoomatch;tattooblank;#gag}
#REGEX {^On .* you see\:$} {#t+ tattoomatch;tattooblank;#say ""}
#CLASS 0
#CLASS {Shadow|Tattoos|tattoomatch}
#REGEX {^A(?:n|) (\w+) tattoo on the (left leg|right leg|left arm|right arm|head|torso)\.(?: \((\d+) use(?:s|) left\)|)$} {#if (%db( @tattoos, %2)="") {#addkey tattoos {%2} {%1};#addkey tattoos {%2 uses} {%3}} {#addkey tattoos {%2 ss} {%1};#addkey tattoos {%2 ss uses} {%3}};#gag}
#REGEX {^\d+h, \d+(?:m|e).*} {tattoofinish;#t- tattoomatch;#sub {""}} "" {nocr|prompt}
#CLASS 0
#T- tattoomatch
#SAY [Shadow] Tattoo display script 2.1 installed.


Enjoy.
Reply with quote
fadedparadox
Beginner


Joined: 11 Jan 2007
Posts: 10

PostPosted: Thu Mar 15, 2007 10:49 am   
 
This script changes:

Code:
You have the following tattoos:
A cloak tattoo on the torso. (31 uses left)
A mindseye tattoo on the head. (40 uses left)
A prism tattoo on the left arm. (41 uses left)
A boar tattoo on the right leg.
A moss tattoo on the left leg.
A moon tattoo on the right arm.


Into:

Code:

Bodypart   Tattoos
--------   -------
Head       mindseye (40)
Torso      cloak (31)
Left Arm   prism (41)
Right Arm  moon
Left Leg   moss
Right Leg  boar
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