Hello, I'm trying to write a script for my Mud.. Pretty much, I've an alias that calls my script, to add a wildcard to an Array called MilkVialList(). Here's what I've got so far..
That's my alias.. I'm unsure of where to start with the Subroutine..
here's what my code was in ZMud:
Pretty much.. not sure how much you guys know about ZMud, but in zmud there's not arrays.. there's strings, which you can have multiple items in the string. #additem would add %1 to the end of the string, but I'm not sure how to add items to new dimensions in an array, (sorry if I didn't use the correct lingo)
Any help on this would be heavily appreciated, thanks
Quote:
<Aliases>
<alias
script="milking_vialadd"
match="mvialadd *"
enabled="y"
group="milking"
sequence="100"
>
</alias>
</aliases>That's my alias.. I'm unsure of where to start with the Subroutine..
here's what my code was in ZMud:
Quote:
#ALIAS milkvialadd {#ADDITEM milkingviallist %1;#ECHO {New vial added - %1}}Pretty much.. not sure how much you guys know about ZMud, but in zmud there's not arrays.. there's strings, which you can have multiple items in the string. #additem would add %1 to the end of the string, but I'm not sure how to add items to new dimensions in an array, (sorry if I didn't use the correct lingo)
Any help on this would be heavily appreciated, thanks