Thread: Magic question.

Results 1 to 3 of 3
  1. #1 Magic question. 
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Okay, I decided to re-write my Superheat code and I was wondering-
    Is there any way to loop two ID's together and answer with the same results rather than two separate codes to make them do the same thing?

    Basically what I ask is; would they be able to do something like this:

    Example:
    Code:
    castOnItem(436, 438) {
    sendMessage("Example.");
    }

    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    case #:
    case #:
    action();
    break;

    or


    if(ID == # || ID == #) {
    action();
    }
    Reply With Quote  
     

  3. #3  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Quote Originally Posted by Colby_ View Post
    case #:
    case #:
    action();
    break;

    or


    if(ID == # || ID == #) {
    action();
    }
    Ahh thanks .

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

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