Results 1 to 6 of 6

Thread: Reading Text

  1. #1
    Join Date
    Feb 2009
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Reading Text

    Hi scripters,

    I'm working on my Soul Wars script at the moment.

    Is there a way to recognise this text? Or even detect if it is there?


    It's for a function to check if I successfully joined into the lobby or not. It doesn't need to read what the text says, just needs to return true if it is there.

    Cheers

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba Code:
    if FindTextTPA() then
      WriteLn('This is a line. It''s a very pretty line. There are many like this line. But this line is mine.');
    Would work.

  3. #3
    Join Date
    Feb 2009
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by RISK View Post
    Simba Code:
    if FindTextTPA() then
      WriteLn('This is a line. It''s a very pretty line.  There are many like this line. But this line is mine.');
    Would work.
    Will try this out now.

    Thanks for the fast reply

    EDIT: There is "txt" and "Chars", what do I put for those?
    Last edited by Yanhua; 12-27-2011 at 01:59 AM.

  4. #4
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Txt is the text that you want to find. Chars is the font that it uses. Check Simba's font folder to see the font options.

  5. #5
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Use getcolor.
    EDIT: UseMultiple getcolors as the text shifts. Thats what I used.
    Last edited by Main; 12-27-2011 at 02:17 AM.
    Oh Hai Dar

  6. #6
    Join Date
    Feb 2009
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Main View Post
    Use getcolor.
    EDIT: UseMultiple getcolors as the text shifts. Thats what I used.
    Thank you for this suggestion.

    Makes things really simple, without having to deal with fonts

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
  •