SRL Archive - Help and Support

I need a little enlightenment


weaselforce

2006-03-26 21:29:58

// ***walkin twords fountain***
procedure walktofountain(watericon:string);
begin
watericon:='water source';
repeat
RoadWalk(Rcolor,'NW');
until (FindSymbol(watericon));
begin

function FindSymbol(Name: String): Boolean;

k i'm trying to get "FindSymbol" to work. first i plugged in "water source" but then it said that there was supposed to be a variable there. so i tried adding a variable "water source:string" but of course that space screwed it up. then i tried " 'water source':string" but that didnt work either. can someone shed some light on what i'm doing wrong? and also how would i tell the script to click on the symbol afterward… just something like

 MMouse ('water source',5,5);
?

o and one more thing, how would i tell it after finding the color of findsymbol, to assign it to a variable. like "result = ****" or somin

masquerader

2006-03-26 21:55:42

ahh, stupid made some weird function documentation

the same thing with chooseoption, you need an x and y variable

function FindSymbol(var rx,ry:integer; Name : String) : Boolean;

so do
findsymbol(waterx,watery,'water');
mouse(waterx,watery,3,3,true);

weaselforce

2006-03-26 22:29:09

ooo yea i saw that, i guess i should have trusted scar over the manual :)