im making a willow chopper and i got the colours but i want it to see the word willow tree (or somthing) then click instead of it just clicking on the colour i want this i dont know if the other trees might have same colours in them thanks![]()
im making a willow chopper and i got the colours but i want it to see the word willow tree (or somthing) then click instead of it just clicking on the colour i want this i dont know if the other trees might have same colours in them thanks![]()



SCAR Code:IsUpText('hop'); //chop
or you can use istextupmulti and use parts of the word willow too.. look in SRL/Core/Text.scar for how to use it
Yeah, but he's doing that so you could customize what tree you wanted to chop.
--------------------------------------------------------- ![]()
Pm me if you need any math functions made. Me = l0ving t3h mathz
--------------------------------------------------------- ![]()
SCAR Code:Procedure ClickTreeName;
var
TreeName : String
begin
TreeName := Players[CurrentPlayer].String1//String1 = tree name
If IsUpText('hop') and IsUpText(TreeName) then
begin
//Code
end;
end;
SCAR Code:Procedure ClickTreeName(TreeName : string);
begin
If IsUpText('hop') and IsUpText(TreeName) then
begin
//Code
end;
end;
two very simple procedures. You can get more advanced with it with cases and such if you like.
There are currently 1 users browsing this thread. (0 members and 1 guests)