Viewing paste HORUSMOVE
made on Mon, 28 Oct 2013 18:56:27 -0400
Sane-itized version, click to copy:
&MOVE #7709=@if [eq(%1,[u(me/current_floor)])]={@pemit %0=The elevator is already on that floor, so the doors open, and you step out of the elevator.;@tel %0=[u(me/floor_%1)]},{@until [eq(%1,[u(me/current_floor)])]={th [if([gte([sub([u(me/current_floor)],%1)],0)],[set(me,current_floor:[dec([u(me/current_floor)])])],[set(me,current_floor:[inc([u(me/current_floor)])])])]},{@tel %0=[u(me/floor_%1)]}}

Enter a target attribute, object reference and the mushcode.


@if [eq(%1,[u(me/current_floor)])]={@pemit %0=The elevator is already on that floor, so the doors open, and you step out of the elevator.;@tel %0=[u(me/floor_%1)]},{@until [eq(%1,[u(me/current_floor)])]={th [if([gte([sub([u(me/current_floor)],%1)],0)],[set(me,current_floor:[dec([u(me/current_floor)])])],[set(me,current_floor:[inc([u(me/current_floor)])])])]},{@tel %0=[u(me/floor_%1)]}}

save as: imprettify (attempt to format for readibility):
Found this useful? Try MUSHcode Repeater
written by orcs.biz