|
zema Wanderer
Joined: 22 Jun 2005 Posts: 79
|
Posted: 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.. |
|
|
|
demoneyoungblood Apprentice
Joined: 16 Dec 2002 Posts: 114 Location: USA
|
Posted: Sat Jun 25, 2005 12:43 pm |
#trigger {(%w) tells you} {action to execute}
|
|
_________________ -Demone YoungBlood |
|
|
|
zema Wanderer
Joined: 22 Jun 2005 Posts: 79
|
Posted: 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.. |
|
|
|
demoneyoungblood Apprentice
Joined: 16 Dec 2002 Posts: 114 Location: USA
|
Posted: 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 |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
|
demoneyoungblood Apprentice
Joined: 16 Dec 2002 Posts: 114 Location: USA
|
Posted: 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 |
|
|
|
zema Wanderer
Joined: 22 Jun 2005 Posts: 79
|
Posted: 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.. |
|
|
|
|
|