Score and spell affects

Submit and discuss your ideas for the MUD.
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Score and spell affects

Postby Botef » Sat Jul 05, 2008 4:34 pm

It would be neat to have an alternate command besides score to see what spells and effects are up.
Would be nice to be able to see all this without the rest of your score.


Detecting: Invisible Evil Good Magic Life Heat
Protected from: Fire Cold Lightning Gas Acid
Enchantments: Displacement Fly Waterbreath
Active Spells:
--------------
vitality (fading)
true sight
mirror image
displacement
energy shield (fading)
fly
Sunamit group-says 'imrex west, tibek backstab touk i think his name is on entry'
// Post Count +1
Thilindel
Sojourner
Posts: 3173
Joined: Sun Aug 31, 2003 9:09 pm
Location: Indianapolis

Re: Score and spell affects

Postby Thilindel » Sat Jul 05, 2008 5:30 pm

or further it:

prots
----------
Goat humping
pfl
pfc
pfe

It is annoying sometimes with zone spam to try to find what prots you have up or missing
Grundar tells you 'I took on the entire football team once. The only reason my mom knew later was because I had a runny nose'
Lorsalian
Sojourner
Posts: 153
Joined: Sun Jan 19, 2003 6:01 am

Re: Score and spell affects

Postby Lorsalian » Sun Jul 06, 2008 2:58 pm

Or if you wanted to make the 'Protection from' line require a bit of explanation and require color, one could change

Code: Select all

Protected from:  Evil Fire Cold Lightning Acid


Into

Code: Select all

Protected from:  Evil Fire Cold Lightning Acid gas good


where the lower-case ones are either
*shown in non-color (where the Fire/Cold/Lightning ones are shown using color of some sort)
*Shown without a colored background (where the prots that ARE up are shown with a colored background)

The drawbacks, of course, being a requirement to explain this to anyone who wouldn't/didn't see the news item, and that this would no longer be compatible with a non-colored terminal (although the lower-case/caps method could be combined with the color scheme(s) to let those without color to play too)

Code: Select all

Protected from:  EVIL good FIRE COLD LIGHTNING ACID gas



*shrug* Just some contributions.

Myself, I'll just put up a couple of buttons and some booleans and key it into the existing line and the prot spellup-spellout messages.
spunionring
Sojourner
Posts: 173
Joined: Sat Jan 19, 2008 11:17 pm
Contact:

Re: Score and spell affects

Postby spunionring » Sun Jul 06, 2008 10:49 pm

Protected from: Charm, Summon, Sleep
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Re: Score and spell affects

Postby Disoputlip » Mon Jul 07, 2008 7:26 pm

I have made a very simple trigger that colorcode your protections when you type score.

It is not really what you wanted. But it does give a better overview.

Code: Select all

#TRIGGER {Protected from: (*)$} {#sub {Protected from: %replace(%replace(%replace(%replace(%replace(%1, Fire, %ansi(12)Fire%ansi(2)),Cold, %ansi(15)Cold%ansi(2)),Lightning, %ansi(9)Lightning%ansi(2)),Gas, %ansi(10)Gas%ansi(2)),Acid, %ansi(8)Acid%ansi(2))}}
Lorsalian
Sojourner
Posts: 153
Joined: Sun Jan 19, 2003 6:01 am

Re: Score and spell affects

Postby Lorsalian » Mon Jul 07, 2008 11:25 pm

spunionring wrote:Protected from: Charm, Summon, Sleep


Good idea. I'm unsure how else to know -- other than walking into the garden and seeing if you fall asleep.

<Disoputlip's trigger>

Nice. Incorporated that, switching around the colors a bit (#help %ansi)

So far as other trigger-sets, I'm pretty sure this can be optimized, but it does work with how the spells are listed currently (whether or not it would be good to list the stuff you don't have is still a question). I think I'll expand it to other spells on just the spell-up/out echoes.

Code: Select all

#CLASS {ProtStatus}
#VAR Prot_Fire {0}
#VAR Prot_Cold {0}
#VAR Prot_Lightning {0}
#VAR Prot_Acid {0}
#VAR Prot_Gas {0}

;Hit 'score' and this will load the variables that the buttons are linked to.
#TRIGGER {Protected from: (*)}
{
   #var Prot_Cold 0;
   #var Prot_Fire 0;
   #var Prot_Lightning 0;
   #var Prot_Acid 0;
   #var Prot_Gas 0;
   #var foo %replace( %1, " ", "|");
   #fora @foo
   {
      #if (%i == "Cold")
      {
         #var Prot_Cold 1
      } {
      #if (%i == "Fire")
      {
         #var Prot_Fire 1
      } {
      #if (%i == "Lightning")
      {
         #var Prot_Lightning 1
      } {
      #if (%i == "Gas")
      {
         #var Prot_Gas 1
      } {
      #if (%i == "Acid")
      {
         #var Prot_Acid 1
      } {}}}}}}}

;Spell-in Triggers
#TRIGGER {You feel protected from (*)!}
{
   #if (%1 == "poisonous gases")
   {
      #var Prot_Gas 1
   } {
      #if (%1 == "cold")
   {
      #var Prot_Cold 1
   } {
   #if (%1 == "fire")
   {
      #var Prot_Fire 1
   } {
   #if (%1 == "lightning")
   {
      #var Prot_Lightning 1
   } {
   #if (%1 == "acid")
   {
      #var Prot_Acid 1
   } {}}}}}}

;Spell-out Triggers
#TRIGGER {You feel less basic.}                 {#var Prot_Acid 0}
#TRIGGER {Static cling rears its ugly head again}    {#var Prot_Lightning 0}
#TRIGGER {What IS that smell?}                   {#var Prot_Gas 0}
#TRIGGER {You feel chilly.}                       {#var Prot_Fire 0}
#TRIGGER {Your surroundings warm up.}          {#var Prot_Cold 0}

;The Buttons
#BUTTON 8 {} {} { } {} {} {Prot_Fire} {prot graphics\icon_fire.bmp} {Size} {26} {30} {Pos} {300} {0} {112} {16} {} {0} "" {} {} {}
#BUTTON 9 {} {} { } {} {} {Prot_Lightning} {prot graphics\lightning.bmp} {Size} {26} {30} {Pos} {331} {27} {112} {16} {} {0} "" {} {} {}
#BUTTON 10 {} {} { } {} {} {Prot_Gas} {prot graphics\cloud.bmp} {Size} {29} {27} {Pos} {362} {11} {112} {16} {} {0} "" {} {} {}
#BUTTON 11 {} {} { } {} {} {Prot_Acid} {prot graphics\acid.bmp} {Size} {26} {30} {Pos} {331} {0} {112} {16} {} {0} "" {} {} {}
#BUTTON 12 {} {} { } {} {} {Prot_Cold} {prot graphics\snowflake.bmp} {Size} {26} {30} {Pos} {300} {27} {127} {16} {} {0} "" {Stack|Right} {} {}
#CLASS 0
sotana
Sojourner
Posts: 229
Joined: Wed Mar 31, 2004 8:11 am

Re: Score and spell affects

Postby sotana » Tue Jul 08, 2008 4:39 am

I capture all my active spells, protects, etc to my status bar every time I type score so I don't have to worry about losing stuff in spam (see the teeny writing along the bottom of my screen? Yes, I know I no longer need to track align but I haven't yet bothered to change the scripts for that :-P).

Image

You can easily expand it to log when you rem or wear eq that is flagged !sleep, !charm, !summon, etc although, being sadly lazy, I've never bothered. The triggers aren't hard to setup so if you're interested and don't know how to do it yourself, mmail me and I'll get them to you. The bar is already there along the bottom of your screen so you might as well fill it up with something useful!
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Re: Score and spell affects

Postby Disoputlip » Tue Jul 08, 2008 11:45 am

I just want to say why I choose the colors I did. I took the color the dragon have that have that damage. E.g. prot gas became green because a green dragon breaths gas.

Blue dragons are lightning, and black are acid.

Return to “T2 Ideas Archive”

Who is online

Users browsing this forum: No registered users and 2 guests