Syntax
2012-06-12 09:33:38
Hi guys I I tried to do this in the main loop ina script and put //infront of the one the user will want to use, although it does work, I want something betterthan this. Does anybody know how to make say in the Const that the user can declare what rock they want to be mined or such?
Thanks.
Const
Rock:= 'iron'; //input the rock u want to mine
//then in the procedure....
Case Rock of
'iron': blabla
'gold':blabla
end;
You can take a look at
http://villavu.com/forum/showthread.php?t=83612 to see how i deal with them (eg. the special attack)
Sirenia
2012-06-12 09:48:20
Const
Method := 'Iron';
Case Lowercase(Method) of
'iron':
begin
Blablabla;
end;
'coal':
begin
Blablabla;
end;
Much neater :)
Syntax
2012-06-12 10:04:05
Thanks to Riwu and Sirenia, Riwu been answering a lot of my questions lately :) Thanks mate.