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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: 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
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: 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
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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