oudshoorn
2012-07-20 17:12:47
Helloo everyone!
I am quite new here and recently started to get interested in scripting.
Now I've encountered my first problem which I can't manage to solve on my own, so that's why I came here.
Here is the code:
Playing the script will result in the script writing down that it is cutting willow logs but not that is gaining 20 experience.
Is there any way to fix this?
If you have any suggestions of doing something different I would love to hear it!
I hope my problem can be solved.
Thanks in advance,
Oudshoorn
I am quite new here and recently started to get interested in scripting.
Now I've encountered my first problem which I can't manage to solve on my own, so that's why I came here.
Here is the code:
program Problem;
var
Logs: string;
Experience: extended;
procedure HereItComes;
begin
Logs:= 'Willow';
if Lowercase(Logs) = 'Willow' then
Experience:= 20;
if Lowercase(Logs) = 'Yew' then
Experience:= 30;
writeln('We are cutting ' + Logs + ' logs and we are gaining ' + FloatToStr(Experience) + ' experience.');
end;
begin
HereItComes;
end.
Playing the script will result in the script writing down that it is cutting willow logs but not that is gaining 20 experience.
Is there any way to fix this?
If you have any suggestions of doing something different I would love to hear it!
I hope my problem can be solved.
Thanks in advance,
Oudshoorn