Search found 3 matches

by RexInvictus
Thu Apr 16, 2015 7:29 am
Forum: Help Forum
Topic: Script Help - Busy Wait and If Statements
Replies: 7
Views: 9346

Re: Script Help - Busy Wait and If Statements

Here's the proper way to set up a for loop. -- this will send go west 7 times for i=1, 7 do send("go west") end And here is a tempTimer, equivalent to the wait command. -- this will send go west after a 7 second delay tempTimer( 7, [[send("go west")]]) It was pseudocode. :p I di...
by RexInvictus
Tue Apr 14, 2015 6:41 am
Forum: Help Forum
Topic: Script Help - Busy Wait and If Statements
Replies: 7
Views: 9346

Re: Script Help - Busy Wait and If Statements

Vadi wrote:while always will run forever and you don't seem to have any start conditions... so as soon as you start it, it runs, and nothing else gets done at all.
I mean, while (always) was an example. :p

How would you recommend I do the rest?
by RexInvictus
Sun Apr 12, 2015 8:56 am
Forum: Help Forum
Topic: Script Help - Busy Wait and If Statements
Replies: 7
Views: 9346

Script Help - Busy Wait and If Statements

Never done Lua scripting before and I've tried with two separate MUD clients now to get this working. Essentially, what I want to do is go through a 6 x 7 grid, do a command on each point on this grid, delay, do another command and then move. For the life of me, I cannot seem to do this. Every time ...