Current / Max HP MA MV Prompt

Scripts for zMUD and CMUD

Current / Max HP MA MV Prompt

Postby Strago » Wed Dec 08, 2004 9:16 pm

Thanks go out to Nascosto for giving me the basic script, I just added the color.

This script will give you a prompt in the format

<[color=darkred:3ul6lou1]20[/color:3ul6lou1]/[color=darkred:3ul6lou1]100[/color:3ul6lou1]hp [color=olive:3ul6lou1]50[/color:3ul6lou1]/[color=olive:3ul6lou1]100[/color:3ul6lou1]ma [color=green:3ul6lou1]80[/color:3ul6lou1]/[color=green:3ul6lou1]80[/color:3ul6lou1]mv>

I found it very useful.

[code:3ul6lou1]
-- Trigger 1
Pattern: <&%d{hp}hp &%d{ma}ma &%d{mv}mv>
Value:
@dhp = 4
#if (@hp > @maxhp*25/100) {@dhp = 6}
#if (@hp > @maxhp*90/100) {@dhp = 2}
@dma = 4
#if (@ma > @maxma*25/100) {@dma = 6}
#if (@ma > @maxma*90/100) {@dma = 2}
@dmv = 4
#if (@mv > @maxmv*25/100) {@dmv = 6}
#if (@mv > @maxmv*90/100) {@dmv = 2}
#sub {%ansi(7)<%ansi(@dhp)[@hp]%ansi(7)/%ansi(@dhp)[@maxhp]%ansi(7)hp %ansi(@dma)[@ma]%ansi(7)/%ansi(@dma)[@maxma]%ansi(7)ma %ansi(@dmv)[@mv]%ansi(7)/%ansi(@dmv)[@maxmv]%ansi(7)mv>}

--Trigger 2
Pattern: ^You have %d~(&%d{maxhp}~) hit, %d~(&%d{maxma}~) mana and %d~(&%d{maxmv}~) movement points.
Value: Leave Blank[/code:3ul6lou1]

With these triggers everytime you check your score the max values get updated. The values for color changing is:

Less than 25% is Red
Less than 90% is Olive
Greater than 90% is Green

Good luck with the script.
Strago
 
Posts: 26
Joined: Sun Nov 07, 2004 10:32 am
Status: Offline

Return to zMUD/CMUD Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron