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 11:08 pm   

Gemstone III Mage Buff Duration
 
This is a little more complicated. This displays the duration of a buff when you cast it, for example:

You are filled with a sense of great confidence. Elemental Targeting +25 AS 27m30s

would be displayed if you cast 425 with 25 ranks of the minor elemental circle. This is only works when buffing yourself (if another casts on you it doesn't know their statistics).

unfortunatly blur is a little weird.. the first time you cast 503 it gives the same message as all the 911 casts give, but the second time you cast it, it gives a diffrent message. So my trigger assumes you've always got 503 before you get 911... So if you exeprience something weird with blur thats why. (I wrote this from the point of view of a wizard who self buffs) oh, also I didn't include the elemental focus spell because... I don't use it (swinging wizard) nor have I included Elemental barrier because I don't have it yet. I'll add them both soon.

Later I will post the guages that display all your buffs and how long you have remaining (so far its dead accurate, to the second) I've just got to find out what the cap is (does anyone know this? I hadn't known they had gotten rid of rollover.. so far I had a elemental defense I last 4 hours and 18mins... retesting it now.. just have to wait that long)

First you've got to add this trigger:

#TRIGGER {Major Elemental...&%nMajES} {}
#COND {Minor Elemental...&%nMinES} {}
#COND {Wizard Circle.....&%nWizCS} {}

Then in game type Spell and it'll save the proper variables for the following triggers:

#TRIGGER {You are filled with a sense of great confidence.} {#Sub {You are filled with a sense of great confidence. %ansi(high,blue) Elemental Targeting +%eval(25+((@MinES-25)/2)) AS %ansi(high,green)%eval((900+30*@MinES)/60)m%mod(900+30*@MinES,60)s};#var ElemTarg %eval( 900+(30*@MinES))}
#TRIGGER {You feel much stronger.} {#Sub {You feel much stronger. %ansi(high,blue) Strength +15 AS %ansi(high,green)%eval((600+30*@MajES)/60)m%mod(600+30*@MajES,60)s};#add strength %eval( 600+30*@MajES);#if (@strength > 14400) {#var strength 14400}}
#TRIGGER {Your form blurs more.} {#sub {Your form blurs more. %ansi(high,blue) Blur +10 DS %ansi(high,green)%eval((1200+60*@MajES)/60)m%mod(1200+60*@MajES,60)s};#add blur %eval( 1200+60*@MajES);#if (@blur > 14400) {#var blur 14400}}
#TRIGGER {A silvery luminescence surrounds you.} {#Sub {A silvery luminescence surrounds you. %ansi(high,blue) Elemental Defense I +5 DS %ansi(high,green)%eval((1200+60*@MinES)/60)m%mod(1200+60*@MinES,60)s};#add elemDefI %eval( 1200+60*@minES);#if (@elemDefI > 15480) {#var elemDefI 15480}}
#TRIGGER {A translucent sphere forms around you.} {#Sub {A translucent sphere forms around you. %ansi(high,blue) Wizard Shield +50 DS %ansi(high,green)%eval((1200+30*@WizCS)/60)m%mod(1200+30*@WizCS,60)s};#add wizShield %eval( 1200+30*@WizCS);#if (@WizShield > 14400) {#var wizShield 14400}}
#TRIGGER {You feel much more agile.} {#Sub {You feel much more agile. %ansi(high,blue) Elemental Deflection +20 DS %ansi(high,green)%eval((600+15*@MajES)/60)m%mod(600+15*@MajES,60)s};#add ElemDefl %eval( 600+15*@MajES);#if (@ElemDefl > 14400) {#var ElemDefl 14400}}
#TRIGGER {A bright luminescence surrounds you.} {#Sub {A bright luminescence surrounds you. %ansi(high,blue) Elemental Defense II +10 DS %ansi(high,green)%eval((1200+60*@MinES)/60)m%mod(1200+60*@MinES,60)s};#add elemDefII %eval( 1200+60*@minES);#if (@elemDefII > 14400) {#var elemDefII 14400}}
#TRIGGER {A brilliant luminescence surrounds you.} {#Sub {A brilliant luminescence surrounds you. %ansi(high,blue) Elemental Defense III +25 DS %ansi(high,green)%eval((1200+60*@MinES)/60)m%mod(1200+60*@MinES,60)s};#add elemDefIII %eval( 1200+60*@minES);#if (@elemDefIII > 14400) {#var elemDefIII 14400}}
#TRIGGER {You suddenly see a faint image of yourself at your side.} {#Sub {You suddenly see a faint image of yourself at your side. %ansi(high,blue) Elemental Refraction +20 DS %ansi(high,green)%eval((600+15*@WizCS)/60)m%mod(900+15*@WizCS,60)s};#add elemrefr %eval( 600+15*@WizCS);#if (@elemrefr > 14400) {#var elemrefr 14400}}
#TRIGGER {You feel more magically aware.} {#Sub {You feel more magically aware. %ansi(high,blue) Elemental Bias +20 TD %ansi(high,green)%eval((600+30*@MajES)/60)m%mod(600+30*@MajES,60)s};#add elemBias %eval( 600+30*@MajES);#if (@elemBias > 14400) {#var elemBias 14400}}
#TRIGGER {A luminescent aura begins to swirl around you.} {#Sub {A luminescent aura begins to swirl around you. %ansi(high,blue) Melgorehn's Aura +%eval(20+((@WizCS-13)/3)) DS %ansi(high,green)%eval((1200+60*@WizCS)/60)m%mod(1200+60*@WizCS,60)s};#add melgAura %eval( 1200+60*@WizCS);#if (@melgAura > 14400) {#var melgAura 14400}}
#TRIGGER {Your form blurs.} {#if (@isblurred = 0) {#sub {Your form blurs more. %ansi(high,blue) Blur +10 DS %ansi(high,green)%eval((1200+60*@MajES)/60)m%mod(1200+60*@MajES,60)s};#add blur %eval( 1200+60*@MajES);#if (@blur > 14400) {#var blur 14400};#var isblurred 1} {#Sub {Your form blurs. %ansi(high,blue) Mass Blurs +10 DS %ansi(high,green)%eval((900+30*@WizCS)/60)m%mod(900+30*@WizCS,60)s};#add massblur %eval( 900+30*@WizCS);#if (@massblur > 14400) {#var massblur 14400}}}
Reply with quote
GuinnessDNA
Beginner


Joined: 12 Feb 2003
Posts: 23

PostPosted: Tue Feb 25, 2003 11:12 pm   
 
You might notice theres a lot of code that isn't being used. where it adds the duration to a variable... Well if you don't want to wait till i post the guages... make your own. just make a trigger to go off once a second that subtracts one to each of the duration variables, and a button like this:

#BUTTON 61 {%if(%eval(@elemRefr/3600)>0,%eval(@elemRefr/3600):,)%if(%mod(%eval(@elemRefr/60),60)<10,0%mod(%eval(@elemRefr/60),60),%mod(%eval(@elemRefr/60),60)):%if(%mod(@elemRefr,60)<10,0%mod(@elemRefr,60),%mod(@elemRefr,60))} {} {} {} {@elemRefr} {} {} {Size} {40} {14} {Pos} {445} {24} {32800} {} {Gauge||3|14400|%eval( 14400 - (600+15*@WizCS))|7} {} "" {Explore|Inset} {} {} {4}

I'll post all of them when I finish my research... in the meantime those of you who know how to script can easily make your own from what i've given.
Reply with quote
Stregone
Wanderer


Joined: 07 Aug 2001
Posts: 53
Location: USA

PostPosted: Wed Feb 26, 2003 12:13 am   
 
I don't think there is a cap (if there is its very high). Its just that when you leave the game with more than 4 hours left on any spell, you will only have the amount over 4 hours that you had left. or something like that

-Stregone
Reply with quote
GuinnessDNA
Beginner


Joined: 12 Feb 2003
Posts: 23

PostPosted: Thu Feb 27, 2003 7:47 pm   
 
Okay, I did a little research... I cast Elemental Defense I until I had over 4 hours of it. Then I logged of. (I think I logged off with something like 4 hours and 18 minutes) When I logged back in, 8 minutes later it Fell off. I then repeated this and I had it lapse at 4 hours 13 minutes (the first time it lapsed at 4 hours 10 minutes) So as far as I can tell (i'm going to test this a few more times) The number isn't a set number. (although 255 minutes would make sense) I think the best way for me to deal with this is to just keep my guages the way they are (They let you know if the next cast will bring you over 4 hours) and if you happen to Roll your spell... then its going to act irratically. (when the spell fades it'll reset itself properly)
Reply with quote
shibbidy joe
Wanderer


Joined: 02 Nov 2002
Posts: 76
Location: Tuvalu

PostPosted: Thu Feb 27, 2003 11:22 pm   
 
Geez. I'm behind the times. I didn't even know they got rid of the cap.
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