|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Wed Dec 02, 2009 8:50 pm
simple script |
per matt... im reposting this in its own :P
hadar wrote: |
a simply script like
Code: |
#pr newrepopmessage "Enter the message EXACTLY as it appears"
#pr repopareaname "Enter the name of the area"
#action {^@newrepopmessage$} {repshow @repopareaname} {RepopMessages} |
wont work in the beta but worked before the beta, is this susposta be correct (sorry for the piggie back did not feel like opening a new topic) |
... ok he said it looks ok, but before it would append @newrepopmessage with the string in the var, now it just makes a trigger with that so i end up getting a trigger with those patterns in it, that changes if i update the vars |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Dec 02, 2009 9:20 pm |
What exactly are you trying to do? If you are trying to update one trigger, make the trigger externally to the alias or whatever. As soon as the variable is updated, the trigger will start matching the new message without having to further mess with that trigger.
If you want to create a new trigger every time you run that script (so that eventually, having visited all the different areas in your game you'll have thousands of triggers), your script is working as it was designed to do and has been doing so since the early days of ZMud. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Wed Dec 02, 2009 10:13 pm |
the thing is it does not create new triggers, no matter what i put in there, it will not create the trigger, it stopped working when i updated to the beta
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Dec 02, 2009 10:16 pm |
You have to do:
Code: |
#EXEC %concat("#TRIGGER {^",@newrepopmessage,"$} {repshow ",@repopareaname,"} {RepopMessages}") |
in order for it to work.
Charneus |
|
|
|
|
|