SRL Archive - OSR Help

Mouse question


catanado15

2012-06-22 17:29:33

Hey guys ! so, i just made a working cave nightshade collector for me to train herby, but i got one question… is there a possibility to change randomly between left click and rifht click + choose option ?


Thanks :P

CephaXz

2012-06-22 17:37:28

case statement, random between 2 of them.

catanado15

2012-06-22 17:41:03

From: CephaXz
case statement, random between 2 of them.


tell me more detailed plz :P

Btw, i'm using a procedure

CephaXz

2012-06-22 17:46:13

  
case Random(2) of
0 : mouse(x, y, 5, 5, mouse_left);

1 :
begin
mouse(x, y, 5, 5, mouse_right);
waitoption('blabla', 2000);
end;
end;


Something like this. Try looking for a case statement tutorial at the beginner tutorial section :)

catanado15

2012-06-22 17:52:35

ty, rlly helpfull