SRL Archive - OSR Help

Reading Text


Yanhua

2011-12-26 20:51:47

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 :D

RISK

2011-12-26 20:55:48

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. :)

Yanhua

2011-12-26 20:56:57

From: RISK
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?

RISK

2011-12-26 21:05:41

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.

Main

2011-12-26 21:09:16

Use getcolor.
EDIT: UseMultiple getcolors as the text shifts. Thats what I used.

Yanhua

2011-12-26 21:19:22

From: Main
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 :)