|
Pedrinho_o Newbie
Joined: 20 Jun 2005 Posts: 7
|
Posted: 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 |
|
|
|
demoneyoungblood Apprentice
Joined: 16 Dec 2002 Posts: 114 Location: USA
|
Posted: 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 |
|
|
|
Pedrinho_o Newbie
Joined: 20 Jun 2005 Posts: 7
|
Posted: 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
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
|
Pedrinho_o Newbie
Joined: 20 Jun 2005 Posts: 7
|
Posted: Mon Jun 20, 2005 10:14 pm |
i tested the trigger didn't fire ... more sugestions? :/
#TRIGGER {@song} {playing} playing is a alias .. :/ |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
|
Pedrinho_o Newbie
Joined: 20 Jun 2005 Posts: 7
|
Posted: Mon Jun 20, 2005 11:18 pm |
ur test script didnt work :(( i really want this trigger
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Jun 21, 2005 2:53 am |
#TRIGGER (@song) {playing}
|
|
|
|
Pedrinho_o Newbie
Joined: 20 Jun 2005 Posts: 7
|
Posted: Tue Jun 21, 2005 5:01 am |
nexela wrote: |
#TRIGGER (@song) {playing} |
i already tried ... and dont works =(( |
|
|
|
|
|