It is currently 12 Nov 2025, 00:33
   
Text Size

Numeric argument of ChooseColour

Moderator: CCGHQ Admins

Numeric argument of ChooseColour

Postby thefiremind » 03 Nov 2012, 11:20

I'm writing this before even trying, but I'd like to see if someone knows already. The ChooseColour function has a numeric argument, which is always set to 1 in the examples we can see. What if we set it to 2? Would it allow to choose 2 different colours in the same prompt? And if so, how could we retrieve them? The GetChosenColour function is in a LOL file:
Code: Select all
GetChosenColour = function()
  local l_35_0, l_35_1 = MTG():EffectDataChest():Get_Colour, MTG():EffectDataChest()
  local l_35_2 = COMPARTMENT_ID_COLOUR_ANSWER
  return l_35_0(l_35_1, l_35_2)
end
Maybe it would store both colours in the same variable and we could check them with Test?

EDIT: I tried to use
EffectController():ChooseColour( "CARD_QUERY_CHOOSE_COLOUR", 2 )
but I saw nothing different... it still asks for one colour. So what's the meaning of the numeric argument? :?
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Numeric argument of ChooseColour

Postby pcastellazzi » 03 Nov 2012, 14:38

I dont think is the number choices you can make. My guess, it's probably a flag to indicate if the selection is mandatory or can be cancelled early.
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
User avatar
pcastellazzi
 
Posts: 184
Joined: 25 Apr 2012, 00:40
Location: Montevideo, Uruguay
Has thanked: 11 times
Been thanked: 30 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 4 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 4 guests

Login Form