SRL Archive - Research & Development Lounge

hmm some things that i might make into includes


Waddo

2008-05-13 06:10:44

omg ive just thought why does no one ever do this

i:=random(3);
case i of
0:begin
openbankfast('veb');
otherstuff;
end;
2:begin
findbank('veb');
otherstuff;
end;

etc
etc
etc
end;

completlty different everytime we bank
this could wokr v.well

and im sure theres other things to use it for

and how bout this

i dont know how to code this so this is wrong

begin
i:=getstatsmm('run');
if i>20+random(50) then setrun('true');
end;

PvH

2008-05-13 06:59:00

Those ideas seem to be cool..
I feel a bit dumb now, lol:p
That I never tought of that banking thing:duh:
Good ideas;)

Waddo

2008-05-13 07:42:42

tyvm

mixster

2008-05-13 11:24:22

Banking is a small part and I don't really see how you can randomize right-click -> deposit all…
About the second thing, a lot of more experienced scripters who use a lot of walking use that anyway…

Waddo

2008-05-13 11:39:55

yes i know but why not turn it into an include

BKNYKavkaz

2008-05-13 16:23:29

Haha. This is so simple but yet so effective. Thank you very much waddo for helping me open my eyes. + rep.

Also…what if one of the cases fails how can I make it switch to another for example;
if not blah blah then
Case(not current, random(3))

Waddo

2008-05-13 17:37:35

hmm im not sure you could always repeat a couple of times