SRL Archive - OSR Help

Anyone give me a example of a script telling its self to bank?


Olly

2011-12-25 18:33:13

Right, I'm making a swamp toad picker, but could someone please give me a example of a part in a script when it tells it to bank like when it has fullinvent it knows to walk to the bank?

Thanks!

Griff

2011-12-25 18:34:44

Just like a
repeat
blahblah
until (InvFull);

Would that work for what you're doing?

Olly

2011-12-25 18:56:15

I assume so and then il just loop the whole processes together collecting, walking, banking, walking back etc?

Griff

2011-12-25 19:06:13

Yeah like for example your main loop could look like this:

begin
WalkToSpot;
repeat
Collect;
until (InvFull)
WalkToBank;
end.


Or you could put the repeat in the procedure itself.

Olly

2011-12-25 19:16:16

Alright Griff I think I got it now, Thanks for your help :)