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


Joined: 12 Feb 2003
Posts: 23

PostPosted: Tue Feb 25, 2003 10:49 pm   

Gemstone III Hit advantage
 
This is a very simple trigger that displays your advantage to hit a critter or them to hit you. For example:

AS: +15 vs DS: +501 with AvD: +27 + d100 roll: +11 = -448 Advantage -459

It adds the "advantage" part, and colors it red if its negative or 0, it sticks out like a sore thumb and you can instantly know the probability of getting hit/hitting

works for CS, haven't adapted for MD but thats easy enough to do if you want to do it. Also doesn't trigger if there is a minus after the roll (like bard songs)


#CLASS {Gemstone|Info}
#TRIGGER {AS: &%nAS vs DS: &%nDS with AvD: &%nAvD + d100 roll: &%nRoll = &%nTotal} {#sub {AS: @AS vs DS: @DS with AvD: @AvD + d100 roll: @Roll = @Total %ansi(high, %if(%eval( @AS - @DS + @AvD) > 0,green,red)) Advantage %eval( @AS - @DS + @AvD)}}
#TRIGGER {CS:%s&%nCS%s-%sTD:%s&%nTD%s+%sCvA:%s&%nCvA%s+%sd100:%s&%nRoll%s==%s&%nTotal} {#sub {CS: @CS - TD: @TD + CvA: @CvA + d100 roll: @Roll == @Total %ansi(high, %if(%eval( @CS - @TD + @CvA) > 0,green,red)) Advantage %eval( @CS - @TD + @CvA)}}
#CLASS 0
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