SRL Archive - SRL Bugs

GetChooseOptions


Er1k

2012-01-18 22:08:37

To put it simply, GetChooseOptions never uses the TextType argument that's passed to the function, so the function always searches for all text colors.

This can be fixed by adding a case block after the colors array definition in the function. Below is my quickfix for the record. I'm not sure what's the orange item used for so I just put it in every case.

  //Object Blue, Player White, Item Orange, Action Tan, NPC Yellow, Level Green
Colors := [14342147, 14079443, 3832268, 9677229, 840143{, 710915}];
//Below is what seems to be missing
case TextType of
'action': Colors := [14079443, 3832268, 9677229];
'player': Colors := [14079443, 3832268, 9677229];
'npc': Colors := [840143, 3832268];
'object': Colors := [14342147, 3832268];
end;

Narcle

2012-01-18 22:14:53

From: nosaj.421
To put it simply, GetChooseOptions never uses the TextType argument that's passed to the function, so the function always searches for all text colors.

This can be fixed by adding a case block after the colors array definition in the function. Below is my quickfix for the record. I'm not sure what's the orange item used for so I just put it in every case.

  //Object Blue, Player White, Item Orange, Action Tan, NPC Yellow, Level Green
Colors := [14342147, 14079443, 3832268, 9677229, 840143{, 710915}];
//Below is what seems to be missing
case TextType of
'action': Colors := [14079443, 3832268, 9677229];
'player': Colors := [14079443, 3832268, 9677229];
'npc': Colors := [840143, 3832268];
'object': Colors := [14342147, 3832268];
end;


This is known. The tolerance has to be set so high now that its almost pointless to use TextType. I left it in there for compatibility reasons.

Er1k

2012-01-18 22:25:09

Noted. Then I will modify it in my script to do the ChooseOption correctly. FYI I was having problem with this. ChooseOption seems to always choose the first option that matches the text so I had to use the color options to make it choose the 2nd option.


Brandon

2012-01-18 22:28:39

Those colours are the same -__________- in that picture..

Er1k

2012-01-18 22:33:23

I thought I needed the non-default colors to use the 2nd option :( Nvm now I found what to do