Alright, well, I had an idea. I was recently going through creating new rooms, in this case vnums 9400 - 9599. I figured I'd write a script to automatically goto each one individually for me, and was activated by a trigger, such as:
You say 'make rooms * *'
So in this example:
You say 'make rooms 9400 9599'
Then the trigger would read 9400 and 9599, then go through a loop and return the vnum that needed to be created. Next, I wanted some kind of trigger or something to goto the vnum, thus, leaving me absolutly no work in creating any of the rooms, and finally go all the way back to 9400.
Now, I am familair with Perl and have used it a few times for things on my web site, but I haven't the faintest clue on how to do this. The script from trigger seams simple enough, but then what about the goto part of it? Is there a way to send mud commands from a script? Or do I need a seperate trigger for it?
Any example I could build off of for this (or working example) would be much appreciated!
Thanks in advance!
You say 'make rooms * *'
So in this example:
You say 'make rooms 9400 9599'
Then the trigger would read 9400 and 9599, then go through a loop and return the vnum that needed to be created. Next, I wanted some kind of trigger or something to goto the vnum, thus, leaving me absolutly no work in creating any of the rooms, and finally go all the way back to 9400.
Now, I am familair with Perl and have used it a few times for things on my web site, but I haven't the faintest clue on how to do this. The script from trigger seams simple enough, but then what about the goto part of it? Is there a way to send mud commands from a script? Or do I need a seperate trigger for it?
Any example I could build off of for this (or working example) would be much appreciated!
Thanks in advance!