weaselforce
2006-05-20 01:09:37
ok heres the procedure im trying to get working. Im basically trying to get the "case" to click on text from the included string to correspond to whatever the const is. The problem is i dont know if it should be written like this:
case BowType of
Shaft: ClickText2(Shaft;SmallChars, 18, 455,489,360;false);
Long: ClickText2(Long;SmallChars, 20, 452, 483, 359;false);
Short: ClickText2(Short;SmallChars, 20, 452, 483, 359;false);
end;
—————————————————
case BowType of
' Shaft': ClickText2('Shaft';SmallChars, 18, 455,489,360;false);
'Long': ClickText2('Long';SmallChars, 20, 452, 483, 359;false);
'Short': ClickText2('Short';SmallChars, 20, 452, 483, 359;false);
end;
—————————————————
or defined as a variable like i have it below. can anyone shed some light?
case BowType of
Shaft: ClickText2(Shaft;SmallChars, 18, 455,489,360;false);
Long: ClickText2(Long;SmallChars, 20, 452, 483, 359;false);
Short: ClickText2(Short;SmallChars, 20, 452, 483, 359;false);
end;
—————————————————
case BowType of
' Shaft': ClickText2('Shaft';SmallChars, 18, 455,489,360;false);
'Long': ClickText2('Long';SmallChars, 20, 452, 483, 359;false);
'Short': ClickText2('Short';SmallChars, 20, 452, 483, 359;false);
end;
—————————————————
or defined as a variable like i have it below. can anyone shed some light?
begin
Shaft :='Arrow Shaft';
Long := 'Long Bow';
Short:= 'Short Bow';
if(ToFletch >= 27) then
begin
lollerskates := 34
end else
begin
lollerskates := ToFletch
end
begin
UseItem(1);
UseItem(2);
wait(400+random(200));
case BowType of
Shaft: ClickText2(Shaft;SmallChars, 18, 455,489,360;false);
Long: ClickText2(Long;SmallChars, 20, 452, 483, 359;false);
Short: ClickText2(Short;SmallChars, 20, 452, 483, 359;false);
end;
PopUp(4);
SendText(IntToStr(lollerskates)''+chr(13));
RandomEvents;
Wait(12000+random(2000));
RandomEvents;
Wait(25000+random(4000));
RandomEvents;
if(lollerskates = 34) then
ToFletch := ToFletch - 27;
Fletched := Fletched + 27;
end else
ToFletch := ToFletch - lollerskates
Fletched := Fletched + lollerskates
end;
end;
end;