Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk
Numeric argument of ChooseColour
Moderator: CCGHQ Admins
2 posts
• Page 1 of 1
Numeric argument of ChooseColour
by 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:
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?
- 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
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...
Currently busy with life...
-

thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Numeric argument of ChooseColour
by 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.
— Ben Kuchera, Mordern Warfare 3 review.
-

pcastellazzi - Posts: 184
- Joined: 25 Apr 2012, 00:40
- Location: Montevideo, Uruguay
- Has thanked: 11 times
- Been thanked: 30 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests