Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Sat Jun 25, 2005 6:04 am   

variable question
 
ok i kinda understand what i want to do, but not shure HOW to do it so..i wanna set a tigger to where a sound plays everytime i get a tell i know how to set up the sound, but i dont know how to get it to work the text that gets sent to me is "name tells you" i think i would have to set a variable for name i am assuming, but i am not shure how to do that..hopefully after this i will understand how zmud reconizes variables.
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
demoneyoungblood
Apprentice


Joined: 16 Dec 2002
Posts: 114
Location: USA

PostPosted: Sat Jun 25, 2005 12:43 pm   
 
#trigger {(%w) tells you} {action to execute}
_________________
-Demone YoungBlood
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Sat Jun 25, 2005 3:56 pm   
 
I am sorry it dosent seem to be working this is what i have #trigger {(%w) tells you} {#Play kefka} so when i get a tell zmud should play the flie i assume, but it's not working could i be doing somthing wrong? {(%w) is supposed to be the variable for a persons name right?
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
demoneyoungblood
Apprentice


Joined: 16 Dec 2002
Posts: 114
Location: USA

PostPosted: Sat Jun 25, 2005 9:08 pm   
 
ok, let me see output from your mud to help you with this trigger. Also, i just went and looked up #play to see the syntax and such..
Quote:

Syntax: #PL filename

Related: #MEDIA

Plays the specified multimedia file. The file type is determined from the file extension of the filename. Tested formats are WAV, MID, AVI. If filename refers to a drive (as in Dicon_smile.gif, the drive is assumed to point to a CDROM with a musical CD in it.

Note that zMUD does not pause while the media is playing. Also, only one media can be playing at any given time.

#1.. Is that "kefka" a .wav file, or are you trying to make zmud "say" kefka to you?
#2.. which version of zmud are you using?

as it stands right now, your trigger would be
Code:

#trigger {(%w) tells you} {#play kefka.wav}

assuming that kefka.wav is the filename, and it is in the zmud directory.
_________________
-Demone YoungBlood
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Jun 25, 2005 9:30 pm   
 
If I remember correctly zmud first looks into the

zmud/mudname/sounds/ folder if it cant find it there it looks in zmud/mudname/ and if not there then in the zmud/ directory

you can also play MP3 files
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
demoneyoungblood
Apprentice


Joined: 16 Dec 2002
Posts: 114
Location: USA

PostPosted: Sat Jun 25, 2005 10:59 pm   
 
ty for that info nex, i just went by what i saw and assumed, didnt think about the sounds dir. :-D
_________________
-Demone YoungBlood
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Sun Jun 26, 2005 4:46 am   
 
interesting...it worked after i added the .wav however i dident have to do that with the other ones i set based off room headers..thanks demoneyoungblood sorry to be a pain =p
if it makes ya feel better i learned how to make submenus for hotkeying stuff today =p
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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