+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: E2 help (wait?)

  1. #11
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: E2 help (wait?)

    Quote Originally Posted by Ninja101 View Post
    Code:
    @name RandString
    @persist Strings:array String
    interval(3000)
    Strings = array("1","2","3")
    String = Strings[round(randint(1, Strings:count())), string]
    Shortened :3

    Please explain to me why you would round an integer.

  2. #12
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,680
    Blog Entries
    5

    Default Re: E2 help (wait?)

    Why would you need to round something from a randint?
    EDIT: Ninjad

  3. #13
    Wire Amateur perlm's Avatar
    Join Date
    Jul 2010
    Location
    Sweden
    Posts
    73

    Default Re: E2 help (wait?)

    Unless I missed something, you never said you wanted it to randomize a string. So incase you just want it to just change from one string to another you can do this:
    Code:
    if(clk("text1")) {
         String = "Blablabla"
         timer("text2",3000)
    } elseif(clk("text2")) {
         String = "Yadiyadiyadi"
         timer("text1",3000)
    } elseif(first() | duped()) {
         timer("text1",10)
    }
    Expression 2 wiki <- Read!
    Quote Originally Posted by Drunkie View Post
    ^ Read!
    Last edited by perlm; 08-04-2010 at 05:06 AM. Reason: added link to wiki
    We don't live in a world of shoulds.

  4. #14
    NOT A CUNT Ninja101's Avatar
    Join Date
    Dec 2008
    Location
    West Midlands, UK
    Posts
    637

    Default Re: E2 help (wait?)

    Quote Originally Posted by Drunkie View Post
    Please explain to me why you would round an integer.
    Shhh :<
    Quote Originally Posted by Anticept View Post
    Heroes of Newerth

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots