Status Window in zMud Questions

Scripts and support for your favorite MUD client.
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Status Window in zMud Questions

Postby Botef » Mon Aug 23, 2004 4:59 am

I'm trying to program the Status window, and Line, to reflect some
information for me and cannot seem to figure it out 100%.

I know how to program my window to reflect variables. I also know
how to set variable using #VAR x x. What I'm unable to do is create
a trigger that updates my status window every time A: Something dies (i.e. R.I.P goes by) B: loot a corpse.

My window currently has the following things.
Experience:
P. G. S. C
HP: MV:

Eventually I'd like to add some things, like currently wielded weapon and active spells, but I think once I understand how to get the above to work I can add new stuff myself. I'm using the free 98 and below zMud.

Perhaps my logic on this next part is not very efficent, if so please guide me. What I want to have happen is a trigger that runs the command 'score' every time something dies, or every time I loot a corpse. This much I can do. I than want it to extract my experience %, P, G, S, C and HP and Move P. from score and commit them to the proper variables.

I can't seem to figure out how to make a trigger that does this. Anyone out there use the status window for a similar setup? If you could post the triggers you use to make them update variables I would greatly appreciate it.

Thanks.
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Postby Botef » Mon Aug 23, 2004 3:57 pm

As an alternative I was thinking a button could be programmed to call score, leech the info an update the variables.
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Postby Botef » Wed Aug 25, 2004 3:48 am

I've since gotten some things to work...

However I still cannot get zMud to capture my exp % to a var.
I looked back at other threads, perhaps some of you have not responded because old threads exists.

however, I believe the old triggers in existence are designed for Sojourn 3 when ">>>>>>" symbols were used. All the triggers I can find seem to convert those to a % using a math function.

Anyone have a working trigger for capturing exp % to a variable for Toril?
Come on, this should be an easy one.
Duna
Sojourner
Posts: 450
Joined: Sun Mar 28, 2004 1:40 am
Contact:

Postby Duna » Wed Aug 25, 2004 4:28 am

actually it's just a reworking of the old ones on here ;)
pattern : Experience Progress: (%d)

variable: #var exp_pct %1
that's it.
Nekelet
Sojourner
Posts: 413
Joined: Mon Aug 04, 2003 8:54 pm

Postby Nekelet » Thu Aug 26, 2004 12:21 am

Taking it a step farther... a trailing var to show current and prior xp progress.

Pattern:

Code: Select all

Experience Progress: (%1)~%


Value:

Code: Select all

#var exp_tmp @exp_pct
#var exp_pct %1
#if (@exp_pct=@exp_tmp) {} {
  #var last_exp_pct @exp_tmp
  #SAY NOTCH: XP!
  }


and on your status bar/window place the following:

Code: Select all

Exp: @exp_pct%  Last: @last_exp_pct%
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Postby Botef » Fri Aug 27, 2004 7:17 pm

Thanks, the first reply alone was enough to get things rolling.

Now my status window shows My XP, HP, Move points, Position (i.e. sitting, standing, etc)

All my active spells (Invis, Lev, Armor, etc)

My plats and the time of day (Day or night)

Now what about words? How do I capture those?
Sonon
Sojourner
Posts: 162
Joined: Sun Sep 12, 2004 8:33 pm
Location: San Antonio,Texas
Contact:

Postby Sonon » Sun Sep 19, 2004 8:59 pm

i am not really good at making anything in zmud can you tell me how you made your bar becuase i would like to have the same thing on mine? please
Tasan
Sojourner
Posts: 1710
Joined: Fri Mar 30, 2001 6:01 am
Location: Fridley, Mn USA
Contact:

Postby Tasan » Wed Sep 22, 2004 12:55 am

Botef wrote:Thanks, the first reply alone was enough to get things rolling.

Now my status window shows My XP, HP, Move points, Position (i.e. sitting, standing, etc)

All my active spells (Invis, Lev, Armor, etc)

My plats and the time of day (Day or night)

Now what about words? How do I capture those?


Depends on what words you are attempting to capture.

%w will pickup a single word... elaborate?

!!x
Danahg tells you 'yeah, luckily i kept most of it in my mouth and nasal membranes, ugh'

Dlur group-says 'I have a dead horse that I'm dragging down the shaft with my 4 corpses. Anyone want to help me beat it?'

Calladuran: There are other games to play if you want to play with yourself.
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Postby Botef » Wed Sep 22, 2004 3:22 pm

I figured %w was for a single word. Now how do I call it.

%d - %1

%w - % ???
Wulv
Sojourner
Posts: 44
Joined: Wed Jul 28, 2004 12:40 am
Location: Michigan

Postby Wulv » Wed Sep 22, 2004 5:37 pm

The same...

%1 / %2.....%99

They all represent the first captured word / 2nd captured word...

for example:
This (is) a (test). This (%w) a (%w).

%1 would get "is" and %2 would get "test"
Botef
Sojourner
Posts: 1056
Joined: Fri May 10, 2002 5:01 am
Location: Eastern Washington
Contact:

Postby Botef » Wed Sep 22, 2004 6:13 pm

I must not have tried this, but I thought I did. Oh well, thanks - now I can finish some side projects.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 18 guests