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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon May 26, 2008 6:57 am   

[2.25] Please wait box?
 
Ok. To make it simple - here is the MUD output.

Code:

                Str    Int    Wis    Dex    Con    Luck   Total
-------------  -----  -----  -----  -----  -----  ------  -----
Natural       :   47     47     47     47     42      42    272
Class Bonus   :    5      5      5      5      0       0     20
Equip Bonus   :   13     16     37     31     18      32    147
Spells Bonus  :   13      4     13     15     19       8     72
-------------  -----  -----  -----  -----  -----  ------  -----
Totals        :   78     72     94     94     79      82    499
              :   78     72    102     98     79      82    511

This is the script:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<window name="AardCharn" usesession="false">
  <uid>{97CFBD00-0C53-433C-A849-FA9FAD39EE2A}</uid>
  <packages>English Keypad|English Directions|AardCharn</packages>
  <class name="stats_">
    <alias name="stats_check">
      <value>#T+ stats_/check_
#ADDKEY stats_check lev_adjust {%if( @character.level<25, -25, %if( @character.level>200, -200, %eval( 0-@level)))}
#FORALL {str|int|wis|dex|con|luck} {#ADDKEY stats_check %I {@stats_check.lev_adjust}}
~stats</value>
    </alias>
    <alias name="stats">
      <value>stats_check</value>
    </alias>
    <alias name="stat">
      <value>~stats</value>
    </alias>
    <var name="stats_check" type="Record" usedef="true">wis=50|int=20|con=37|dex=46|luck=40|lev_adjust=0|str=26</var>
    <class name="check_" initdisable="true" enabled="false">
      <trigger priority="99630">
        <pattern>^Totals</pattern>
        <value><![CDATA[#t- stats_/check_
#SAY StatAboveMax%ansi( white)%format( "&3s", ":") %if( @stats_check.str>0, %ansi( yellow)%format( "&4.0n", @stats_check.str)%ansi( white), %format( "&4.0n", @stats_check.str)) %if( @stats_check.int>0, %ansi( yellow)%format( "&6.0n", @stats_check.int)%ansi( white), %format( "&6.0n", @stats_check.int)) %if( @stats_check.wis>0, %ansi( yellow)%format( "&6.0n", @stats_check.wis)%ansi( white), %format( "&6.0n", @stats_check.wis)) %if( @stats_check.dex>0, %ansi( yellow)%format( "&6.0n", @stats_check.dex)%ansi( white), %format( "&6.0n", @stats_check.dex)) %if( @stats_check.con>0, %ansi( yellow)%format( "&6.0n", @stats_check.con)%ansi( white), %format( "&6.0n", @stats_check.con)) %if( @stats_check.luck>0, %ansi( yellow)%format( "&7.0n", @stats_check.luck)%ansi( white), %format( "&7.0n", @stats_check.luck))%format( "&7.0n", %eval( @stats_check.str+@stats_check.int+@stats_check.wis+@stats_check.dex+@stats_check.con+@stats_check.luck))]]></value>
      </trigger>
      <trigger priority="99640">
        <pattern>^{Equip|Spells} Bonus%s:%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)</pattern>
        <value>#addkey stats_check str {%eval( @stats_check.str+%1)}
#addkey stats_check int {%eval( @stats_check.int+%2)}
#addkey stats_check wis {%eval( @stats_check.wis+%3)}
#addkey stats_check dex {%eval( @stats_check.dex+%4)}
#addkey stats_check con {%eval( @stats_check.con+%5)}
#addkey stats_check luck {%eval( @stats_check.luck+%6)}</value>
      </trigger>
    </class>
  </class>
</window>


This is the output after the script:
Code:

                Str    Int    Wis    Dex    Con    Luck   Total
-------------  -----  -----  -----  -----  -----  ------  -----
Natural       :   47     47     47     47     42      42    272
Class Bonus   :    5      5      5      5      0       0     20
Equip Bonus   :   13     16     37     31     18      32    147
Spells Bonus  :   14      4     14     15     19       9     75
-------------  -----  -----  -----  -----  -----  ------  -----
Totals        :   79     72     94     94     79      83    501
StatAboveMax  :   27     20     51     46     37      41    222
              :   79     72    103     98     79      83    514


Works great. Not a problem. However, whenever I run the script, I get this message saying "Please wait a moment" and it takes a second or two to run the command. Any idea what that is about?

Charneus

EDIT: This appears to be happening on a couple of other scripts, too. No clue what's going on, though.

EDIT 2: Apparently, I had a thread running (even though I've never created one and don't use them), and that's what was causing the problem. *sigh*
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed May 28, 2008 7:56 pm   
 
The "Please wait a moment" box is displayed by the crash dump system when it is trying to display some sort of crash error. Not sure what error it is trying to report though.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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