SRL Archive - OSR Help

Reading the above-head yellow text


Limoncello

2012-03-06 09:24:14

Hello. Could anyone please give some insight on what the simplest way to read the above-head yellow text (e.g. what you or an NPC says) is? I'm afraid my script's efficiency relies on this and would be very grateful for any information. :)

Psilocybin

2012-03-06 09:29:30

i think a "FindColorsTolerance" so you get all text as a TPA (on the mainscreen) then sort that TPA to a ATPA. Then use "GetTextATPA"

probably how i would do it, havent done text finding on the screen in a few years.

Edit: if you know what the NPC/player is going to say then use "FindtextTPA"

YoHoJo

2012-03-06 09:35:17

Don't think SRL has anything for that, since I mean there can be effects, and mainly because it can overlap with other text around you and be hard to read, and depending on compass andgle it can be in different spots etc.

You can look in chat.sbima to see how to read the chatbox though which is almost kinda the same thing.

Limoncello

2012-03-06 12:49:50

Thank you for your replies.

I've modified my script in a way that it wouldn't need this anymore, as when I'd get stuck the DTM couldn't be seen anymore, resulting in a natural wait().

Cheers. :)

jakeyboy29

2012-03-06 12:53:57

http://villavu.com/forum/showthread.php?t=60451


maybeee