For example, if I made an edit box called "Attack Interval" and it determined the time between attacking a mob, how would I link it to my script? I don't know how to make an edit box (or any other form element for that matter) into a variable.
For example, if I made an edit box called "Attack Interval" and it determined the time between attacking a mob, how would I link it to my script? I don't know how to make an edit box (or any other form element for that matter) into a variable.
SCAR Code:var MonstersToAttack: Integer;
Procedure Convert;
begin
if EditBox.Text <> '' then //instead of EditBox.Text you would have NameOfYourEditBox.Text
MonstersToAttack := StrToInt(EditBox.Text) else // Sets whats been entered into the editbox to the variable "MonstersToAttack"
MonstersToAttack := 1000; // Default Number
end;
if you need further explaination let me know.
“Ignorance, the root and the stem of every evil.”
Ahhh! Thank you![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)