DarkArts

I deleted my post about food pickup (multiline trigger example), and just made this post as a catchall sandbox for mudlet banter.
I've worked out some protocols for automated route finding and I've found it's kind of a fun hobby to print out slothmaps and see how much of the map you can route in as few statements as possible.
For example if you wanted to explore every room in Ice City minus the ups on a circular route the algorithm would be a timer (seconds, timername)
if roomNumber=startRoomNumber then heading="North"
if canRight() Right() else if canForward() Forward() else if canLeft() Left() else if canBack Back() else disableTimer("Ice City") end
That's it. The thing would wander around thru every room one by one forever and never get lost. Then you can put in your various triggers for exceptions to the rule. You trace out the route with your finger and find where the pattern breaks down or falls into a circular loop. Then you add a trigger to say:
if roomNumber==8000 and heading="West" then E(). For example this would keep you from heading west from bal harbor west gate. Room numbers are available from MSDPROOM_NUMBER.
The fun part I think would be sharing the algorithms themselves, like saying hey I figured out how to patrol the entirety of the demonweb in a hundred words or less..etc.."
Let me know if you're interested in creating / sharing zone algorithms. Pls don't ask for my definitions/functions for the above related material. I figure if you want to use it, u should have to want to know how it works. Lets do this thing. It's fun!
I've worked out some protocols for automated route finding and I've found it's kind of a fun hobby to print out slothmaps and see how much of the map you can route in as few statements as possible.
For example if you wanted to explore every room in Ice City minus the ups on a circular route the algorithm would be a timer (seconds, timername)
if roomNumber=startRoomNumber then heading="North"
if canRight() Right() else if canForward() Forward() else if canLeft() Left() else if canBack Back() else disableTimer("Ice City") end
That's it. The thing would wander around thru every room one by one forever and never get lost. Then you can put in your various triggers for exceptions to the rule. You trace out the route with your finger and find where the pattern breaks down or falls into a circular loop. Then you add a trigger to say:
if roomNumber==8000 and heading="West" then E(). For example this would keep you from heading west from bal harbor west gate. Room numbers are available from MSDPROOM_NUMBER.
The fun part I think would be sharing the algorithms themselves, like saying hey I figured out how to patrol the entirety of the demonweb in a hundred words or less..etc.."
Let me know if you're interested in creating / sharing zone algorithms. Pls don't ask for my definitions/functions for the above related material. I figure if you want to use it, u should have to want to know how it works. Lets do this thing. It's fun!