Results 1 to 3 of 3

Thread: How can I link my form to my script?

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How can I link my form to my script?

    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.

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.”

  3. #3
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahhh! Thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •