Boxfiller (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>
start:
start:
MATCH coffer coffer,
MATCH coffer coffer
MATCH coffer coffer.
MATCH strongbox strongbox
MATCH strongbox strongbox,
MATCH trunk trunk
MATCH strongbox strongbox.
MATCH caddy caddy
MATCH trunk trunk,
MATCH casket casket
MATCH trunk trunk.
MATCH skippet skippet
MATCH caddy caddy,
MATCH box box
MATCH caddy caddy.
MATCH skippet skippet,
MATCH box box,
MATCH box box.
PUT look on table
PUT look on table
MATCHWAIT
MATCHWAIT




casket:
SETVARIABLE box casket
GOTO get
coffer:
coffer:
SETVARIABLE box coffer
SETVARIABLE box coffer
Line 58: Line 57:
<pre>
<pre>
start:
start:
MATCH coffer coffer,
MATCH coffer coffer
MATCH coffer coffer.
MATCH strongbox strongbox
MATCH strongbox strongbox,
MATCH trunk trunk
MATCH strongbox strongbox.
MATCH caddy caddy
MATCH trunk trunk,
MATCH skippet skippet
MATCH trunk trunk.
MATCH casket casket
MATCH caddy caddy,
MATCH box box
MATCH caddy caddy.
MATCH end There is nothing in there.
MATCH skippet skippet,
MATCH box box,
MATCH box box.
PUT look in my bag
PUT look in my bag
MATCHWAIT
MATCHWAIT
Line 75: Line 71:
coffer:
coffer:
SETVARIABLE box coffer
SETVARIABLE box coffer
GOTO get
casket:
SETVARIABLE box casket
GOTO get
GOTO get
box:
box:

Latest revision as of 19:44, 29 October 2014

For a special test for GM Lyneya.

Fill

start:
	MATCH coffer coffer
	MATCH	strongbox strongbox
	MATCH trunk trunk
	MATCH caddy caddy
	MATCH casket casket
	MATCH skippet skippet
	MATCH box box
	PUT look on table
	MATCHWAIT


casket:
SETVARIABLE box casket
GOTO get
coffer:
SETVARIABLE box coffer
GOTO get
box:
SETVARIABLE box box
GOTO get
strongbox:
SETVARIABLE box strongbox
GOTO get
trunk:
SETVARIABLE box trunk
GOTO get
caddy:
SETVARIABLE box caddy
GOTO get
skippet:
SETVARIABLE box skippet
GOTO get

get:
MATCH put You get
MATCH start what were you
put get %box on table
MATCHWAIT

put:
MATCH start You put
MATCH end You just can't get
put put my %box in my bag
MATCHWAIT

end:
ECHO END END END END END
EXIT

Unfill

start:
	MATCH coffer coffer
	MATCH strongbox strongbox
	MATCH trunk trunk
	MATCH caddy caddy
	MATCH skippet skippet
	MATCH casket casket
	MATCH box box
	MATCH end There is nothing in there.
	PUT look in my bag
	MATCHWAIT


coffer:
SETVARIABLE box coffer
GOTO get
casket:
SETVARIABLE box casket
GOTO get
box:
SETVARIABLE box box
GOTO get
strongbox:
SETVARIABLE box strongbox
GOTO get
trunk:
SETVARIABLE box trunk
GOTO get
caddy:
SETVARIABLE box caddy
GOTO get
skippet:
SETVARIABLE box skippet
GOTO get

get:
MATCH put You get
MATCH start what were you
put get %box in my bag
MATCHWAIT

put:
MATCH start You put
MATCH end You just can't get
put put my %box on box table
MATCHWAIT

end:
ECHO END END END END END
EXIT