Results 1 to 7 of 7

Thread: haveing trouble how to continue this

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default haveing trouble how to continue this

    SCAR Code:
    Procedure AttackingSpells;
    Begin
      case Players[CurrentPlayer].Skill of
        'wind strike' : Cast('Wind Strike');
        'wind bolt'   : Cast('Wind Bolt');
        'wind blast'  : Cast('Wind Blast');
        'water strike': Cast('Water Strike');
        'water bolt'  : Cast('Water Bolt');
        'water blast' : Cast('Water Blast');
        'earth strike': Cast('Earth Strike');
        'earth bolt'  : Cast('Earth Bolt');
        'earth blast' : Cast('Earth Blast');
        'fire strike' : Cast('Fire Strike');
        'fire bolt'   : Cast('Fire Bolt');
        'fire blast'  : Cast('Fire Blast');
      End;
    End;
    now im my const i have EnemyColor1 amd EnemyColor2 now idont know what to use t cast the spell on the enemy

  2. #2
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Attack;
    var
      EnemyColor, x, y, i : integer;
    begin
      //cast it
      for i := 1 to 2 do
      begin
        case i of
          1 : EnemyColor := EnemyColor1;
          2 : EnemyColor := EnemyColor2;
        end;

        if FindObj(x, y, 'ttack', EnemyColor, 20) then
        begin
          MMouse(x, y, 0, 0);
          if IsUpText('ttack') then //precaution. May have moved while we were moving mouse
            Mouse(x, y, 0, 0, True);
        end;
      end;
    end;

  3. #3
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    were does my attacking spells procedure come in?

  4. #4
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    edit: oh my bad.

  5. #5
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    nope, it will click 2 times it needs an exit somewhere
    Infractions, reputation, reflection, the dark side of scripting, they are.

  6. #6
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you put your attacking spells where it says //cast it
    and iloveit, I knew I forgot something =\

  7. #7
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahh ty XD

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What does Continue; do?
    By Claymore in forum OSR Help
    Replies: 5
    Last Post: 10-21-2008, 11:27 PM
  2. Continue the story
    By palmpilot71 in forum The Bashing Club / BBQ Pit
    Replies: 35
    Last Post: 03-30-2008, 05:15 PM
  3. click to continue
    By Venom666 in forum OSR Help
    Replies: 2
    Last Post: 07-23-2007, 01:50 AM
  4. Click To Continue ?
    By smills.smx in forum OSR Help
    Replies: 3
    Last Post: 04-02-2007, 07:39 PM
  5. Click To Continue
    By 3Garrett3 in forum OSR Help
    Replies: 3
    Last Post: 03-25-2007, 01:05 PM

Posting Permissions

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