Adblock breaks this site

Question...

Discussion in 'Scar/Simba Help' started by TimminyCricket, Sep 18, 2009.

  1. TimminyCricket

    TimminyCricket Newcomer

    Joined:
    Sep 16, 2009
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question...

    How to question...

    How do I detect if a mouse has clicked.
    It'd be if(?);
    then etc.

    I would also like to know how to send the script to another line.

    Like in QBASIC it would be GOTO 3 or whatever.
    Could someone please help me out!!! :)

    Regards
    TimminyCricket...
     
  2. Hey321

    Hey321 Forum Addict

    Joined:
    Jul 30, 2007
    Posts:
    503
    Referrals:
    0
    Sythe Gold:
    0
    Question...

    To your first question, try this:

    Code:
    If(IsMouseButtonDown(1/2))then
    To your second question, define a label like this:

    Code:
    GotoNow : Label
    Place it:

    Code:
    Goto GotoNow:
    If...Then
      DoThis
    Call it:

    Code:
    Goto GotoNow
    This is limited, as you have to call it after the goto is placed, and I believe that it doesn't work cross-procedure, but it may.

    ~Sandstorm
     
  3. TimminyCricket

    TimminyCricket Newcomer

    Joined:
    Sep 16, 2009
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Question...

    Ok, I've worked out what I need

    Is there a command like

    if(IsMouseButtonNotDown(True))then???
     
  4. Hey321

    Hey321 Forum Addict

    Joined:
    Jul 30, 2007
    Posts:
    503
    Referrals:
    0
    Sythe Gold:
    0
    Question...

    Code:
    If(Not(IsMouseButtonDown(1/2)))Then
    ~Sandstorm
     
< Scar script questions | Information Kiosk Script >


 
 
Adblock breaks this site