I will straight from the beginning. I have no idea what I'm doing. I have part of a script written for an alias but I can't get the alias to work and I'm not sure how I'm suppose to add it to MUSH.
This is what I have so far.
sub nap (thename, theoutput, thewildcards)
world.SetVariable "napb", %2 - %1
world.SetVariable "napc", CInt (GetVariable ("napb")) / 6
world.SetVariable "naptime", CInt (GetVariable ("napc")) * 20
world.note "Wait" & world.getvariable ("naptime") & "seconds"
world.doafter world.getvariable("naptime")
world.note "Wake time"
end sub
Pretty much, I want an alias that I can hit just before I hit a command in the game that is used to speed up healing. So I can hit the alias "nap" plus two numbers. The first being how much hp I have now and the second being how much my max hp is. So I would type "nap * *" Where "*" is two different numbers. Any and all help would be most appreciated.
This is what I have so far.
sub nap (thename, theoutput, thewildcards)
world.SetVariable "napb", %2 - %1
world.SetVariable "napc", CInt (GetVariable ("napb")) / 6
world.SetVariable "naptime", CInt (GetVariable ("napc")) * 20
world.note "Wait" & world.getvariable ("naptime") & "seconds"
world.doafter world.getvariable("naptime")
world.note "Wake time"
end sub
Pretty much, I want an alias that I can hit just before I hit a command in the game that is used to speed up healing. So I can hit the alias "nap" plus two numbers. The first being how much hp I have now and the second being how much my max hp is. So I would type "nap * *" Where "*" is two different numbers. Any and all help would be most appreciated.