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
i982
Newbie


Joined: 20 Oct 2017
Posts: 4

PostPosted: Fri Oct 20, 2017 5:06 am   

Star Roller Problem
 
ok my stat roller works great but im trying to attach a sound file to it when i get desired stats so i know to look at other monitor.

#if (@myavg >= 96) {
#if (@count >=4) {#echo "GOT DEM STATS!"} {#send y}
} {#send y}


this is what i have. id like my sound file to trigger off of the echo or be able to add it in the variable i have is:

name: statalarm
value: {C:\Windows\Media\Alarm01.wav}

so i thought this is would work

#if (@myavg >= 96) {
#if (@count >=4) {#echo "GOT DEM STATS!"} {#send y}
} {#send y}

#then (@statalarm) {
}

but it doesnt work with the added alarm variable. the variable works but it just spams it every time it rerolls

any suggestion on a better way to add the sound file?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Fri Oct 20, 2017 7:51 am   
 
Not sure why you are bothering with the count when you are only looking at numbers bigger than 4.... i would ditch that and just use:


#if (@myavg >= 96) {
#echo "GOT DEM STATS!"
#PLAY "C:\Windows\Media\Alarm01.wav"
}
_________________
Discord: Shalimarwildcat
Reply with quote
i982
Newbie


Joined: 20 Oct 2017
Posts: 4

PostPosted: Wed Nov 01, 2017 6:40 am   stat roller
 
the reason for the count for 4 is because im trying to get 4 different stats that are 96 or better
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