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


Joined: 20 Jun 2005
Posts: 7

PostPosted: Mon Jun 20, 2005 1:39 am   

a Simples Question... i think
 
hi everyone ... its possible to make a script like this ...

When the value of a variable alphanumeric is changed will execute a command ... its possible?
THx
Reply with quote
demoneyoungblood
Apprentice


Joined: 16 Dec 2002
Posts: 114
Location: USA

PostPosted: Mon Jun 20, 2005 9:51 am   
 
Ok, alphanumeric can be either alphabet letters or numbers, but yes its possible.

I have a script that keeps track of how many questlike points i have, and each time i get a new one, it adds to the variable and sets my title to the corresponding data. :)

Give us some more detail, Im sure one of us here can help you out with what you are trying to do.
_________________
-Demone YoungBlood
Reply with quote
Pedrinho_o
Newbie


Joined: 20 Jun 2005
Posts: 7

PostPosted: Mon Jun 20, 2005 8:04 pm   
 
i am using the zmudamp (plugin to interact zmud with winamp ) ... the plugin create a variable called "song" where the value is "Artist - Track" ... i want a script when the variable @song changed will execute a command =D
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Mon Jun 20, 2005 8:51 pm   
 
#TRIGGER {@song} {whatever}
Then change the trigger type to Expression (within the options section of the trigger)

Whenever @song changes the trigger should fire
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Pedrinho_o
Newbie


Joined: 20 Jun 2005
Posts: 7

PostPosted: Mon Jun 20, 2005 10:14 pm   
 
i tested the trigger didn't fire ... more sugestions? :/

#TRIGGER {@song} {playing} playing is a alias .. :/
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Mon Jun 20, 2005 10:25 pm   
 
Hmm, that should work.
What happens if you create another variable and edit it manually from the command line?

#TRIGGER {@songtest} {#say asd123}
(then make sure you change it to an expression trigger)

then if you type
songtest=123
songtest=abc
songtest=blahblah

you don't get anything showing at all?

If that works then it'd sound like the variable is being changed in an odd way by the plugin... not having used the plugin I'd be stumped at that point though ;)
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Pedrinho_o
Newbie


Joined: 20 Jun 2005
Posts: 7

PostPosted: Mon Jun 20, 2005 11:18 pm   
 
ur test script didnt work :(( i really want this trigger Neutral
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Jun 21, 2005 2:53 am   
 
#TRIGGER (@song) {playing}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Pedrinho_o
Newbie


Joined: 20 Jun 2005
Posts: 7

PostPosted: Tue Jun 21, 2005 5:01 am   
 
nexela wrote:
#TRIGGER (@song) {playing}

i already tried ... and dont works =((
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