SRL Archive - Help and Support

GetTextAtEx Help.


Ruroken

2007-06-29 13:16:20

Ok, I'm trying to get the number of arrows in your character equipment screen. So I tried to use GetTextAtEx, but I ran into a few problems. So in short I need help with most everything :p

Anyone wanna explain it?

(Oh and please don't post the bit from the SCAR help file….I stared at that for a long time before asking anyone…)

mastaraymond

2007-06-29 13:36:31

After some testing i found this: Maybe edit X for more numbers i don't know. Play with it ;).
program New;
{.include SRL/SRL.scar}

begin
SetupSRL;
writeln(GetTextAtEx(673, 249, 100, StatChars, False, True, 0,
5, -1, ->2, True <-, tr_Digits));
end.
You might want to edit, Textlength and Strict : Boolean. This only works for 2 characters.

Ruroken

2007-06-29 13:52:11

i was kind a hoping for more of an explanation so i could learn to use the function :p

But thanks anyway.

Wizzup?

2007-07-01 12:38:43

From: Ruroken
i was kind a hoping for more of an explanation so i could learn to use the function :p

But thanks anyway.


Why don't you use Amount.scar?

Ruroken

2007-07-01 12:55:47

It wasn't working for me.

Yakman helped me; Problem solved! :D

Santa_Clause

2007-07-01 20:42:30

Haha…*cough* I was just about to help you *cough*

Ruroken

2007-07-02 21:00:59

lol :)

Hey, Santa, add me on MSN

Santa_Clause

2007-07-02 21:11:00

Added.