clearscreen

Posted by Scotty on Sun 12 Mar 2006 12:18 PM — 5 posts, 19,488 views.

Australia #0
I recently had cause to change one of my worlds scripting from vb to python, which I'm not terribly familiar with.

I've reworked all my triggers and much to my suprise got them working <g>

Oddly enough I'm having trouble with an alias. This particular alias provides clearscreen functionality by sending a bunch of newlines via send to output. I've pasted it at the end of this post.

For some reason what I get now is a Huh?

Clearly now that I've moved to python it's NOT sending the \n's in the same way it did when I was using vb ... but I can't for the life of me figure out what it SHOULD be sending to achieve my goal?

Any pointers?

<aliases>
<alias
match="clearscreen"
enabled="y"
omit_from_log="y"
send_to="2"
sequence="80"
>
<send>






































</send>
</alias>
</aliases>


USA #1
Maybe you want to do world.note, not world.send? What you're doing now is sending newlines to the MUD, not to the display. I'm not sure how to fix that in Python, though...
Australia Forum Administrator #2
He is doing send to output, the alias look OK, and in fact works for me.

Is it actually firing? Edit the alias and see if the match count is greater than zero.

Maybe you are mis-typing "clearscreen" - seemed to work perfectly on my copy.
Australia #3
Well spotted Nick - it's not firing.

Although aliases were enabled, a little exploration revealed that none of them were firing.

Unable to figure out why, I opted for the quick fix and recreated that world from scratch, as I only had a few triggers and aliases running.


Thanks for that
Australia Forum Administrator #4
There is a global "enable aliases" checkbox - perhaps that was unchecked? You shouldn't need to recreate the entire world to get an alias to work.