Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Report cards error here
Moderator: CCGHQ Admins
Re: Report cards error here
by whismer » 04 Sep 2010, 00:32
I cast berserk on the opponent creature to kill it during they attack me... not working!
- whismer
- Posts: 64
- Joined: 23 Jul 2010, 02:36
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by pun1sher666 » 04 Sep 2010, 10:57
Hi whismer
Yes i didn't got to find how to do it !
The card is tagged "IN PROGRESS" coz i didn't manage to find the way to destroy if it attacked...
Yes i didn't got to find how to do it !
The card is tagged "IN PROGRESS" coz i didn't manage to find the way to destroy if it attacked...
- pun1sher666
- Posts: 37
- Joined: 09 Jul 2010, 13:49
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by kevlahnota » 04 Sep 2010, 11:37
I think I can do it. I'll try to code it.pun1sher666 wrote:Hi whismer
Yes i didn't got to find how to do it !
The card is tagged "IN PROGRESS" coz i didn't manage to find the way to destroy if it attacked...
EDIT: Please test berserk. SVN R222
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Re: Report cards error here
by kevlahnota » 04 Sep 2010, 11:55
[FIXED] Smallpox | Show and Tell | Exhume Works Correctly (up to 4 players! )
Please update to latest SVN revision.
Please update to latest SVN revision.
buasudah wrote:correct SHOW AND TELL (i think)
<TRIGGERED_ABILITY zone="any" layer="0" >
<TRIGGER value="SPELL_PLAYED">
return SelfTriggered()
</TRIGGER>
<TARGET_DETERMINATION>
return TargetOpponent( Object():GetPlayer() )
</TARGET_DETERMINATION>
<PLAYTIME>
ChooseTarget( "CHOOSEOPPONENT" )
Object():Register_Player_Set( 0, Object():GetTargetPlayer() )
</PLAYTIME>
<PRE_EFFECT>
Object():GetFilter():Clear()
Object():GetFilter():SetPlayer( Object():Register_Player_Get( 0 ) )
Object():GetFilter():SetZone( ZONE_HAND )
Object():GetFilter():SetController( Object():Register_Player_Get( 0 ) )
Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
Object():Register_Player_Get( 0 ):ChooseTarget( "CHOOSETARGETCREATURE" )
</PRE_EFFECT>
<EFFECT>
if Object():GetTargetCard() ~= nil then
PutTargetCardIntoPlay()
end
</EFFECT>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY zone="any" layer="0" >
<TRIGGER value="SPELL_PLAYED">
return SelfTriggered()
</TRIGGER>
<PRE_EFFECT>
Object():GetFilter():Clear()
Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
Object():GetFilter():SetZone( ZONE_HAND )
Object():GetFilter():SetController( Object():GetPlayer() )
ChooseTarget( "ChooseCreatureInGraveyardToPlay" )
</PRE_EFFECT>
<EFFECT>
PutTargetCardIntoPlay( Object():GetPlayer() )
</EFFECT>
</TRIGGERED_ABILITY>
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Re: Report cards error here
by Yanna » 04 Sep 2010, 12:09
Confirmed, now creatures brought back with exhume get into play simultaneously.
Nice fix !
Nice fix !
Re: Report cards error here
by pun1sher666 » 04 Sep 2010, 15:13
Good work kev
I go to test it right now.
Thanks a lot for the fix !
I go to test it right now.
Thanks a lot for the fix !
- pun1sher666
- Posts: 37
- Joined: 09 Jul 2010, 13:49
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by buasudah » 05 Sep 2010, 02:18
Thanks a whole lot from me too, kevlahnota
- buasudah
- Posts: 19
- Joined: 19 Aug 2010, 19:23
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by Clark » 11 Sep 2010, 16:53
I find that some one misunderstood the meaning of 'target creature'
Actually, player could select one/more creature in both side instead of only opportunitys'.
One function named 'TargetSingleCreatureInPlay()' is added to make this feature work now.
I just fixed 'PATH_TO_EXILE' and 'SWORDS_TO_PLOWSHARES'.
Please kindly fix other 'target creature/artifact/Enchantment etc.' cards if you find
Actually, player could select one/more creature in both side instead of only opportunitys'.
One function named 'TargetSingleCreatureInPlay()' is added to make this feature work now.
I just fixed 'PATH_TO_EXILE' and 'SWORDS_TO_PLOWSHARES'.
Please kindly fix other 'target creature/artifact/Enchantment etc.' cards if you find
- Clark
- Posts: 64
- Joined: 21 Aug 2010, 16:07
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by kevlahnota » 11 Sep 2010, 17:00
do you think the AI will choose what's best to target if we enable the target determination to both players permanents ie. cards etc?
because I have made terastodon, if the AI will choose what's the best strategy if destroying his permanents and produce tokens or destroying 3 permanents of his opponents then this is good actually.
because I have made terastodon, if the AI will choose what's the best strategy if destroying his permanents and produce tokens or destroying 3 permanents of his opponents then this is good actually.
Clark wrote:I find that some one misunderstood the meaning of 'target creature'
Actually, player could select one/more creature in both side instead of only opportunitys'.
One function named 'TargetSingleCreatureInPlay()' is added to make this feature work now.
I just fixed 'PATH_TO_EXILE' and 'SWORDS_TO_PLOWSHARES'.
Please kindly fix other 'target creature/artifact/Enchantment etc.' cards if you find
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Re: Report cards error here
by Clark » 11 Sep 2010, 17:56
To terastodon, it have been the key card to the duels for 2 times in my play.kevlahnota wrote:do you think the AI will choose what's best to target if we enable the target determination to both players permanents ie. cards etc?
because I have made terastodon, if the AI will choose what's the best strategy if destroying his permanents and produce tokens or destroying 3 permanents of his opponents then this is good actually.
In the duels, it was casted by AI instead of me, after which i bated AI under the help of those 3 green tokens
While the result would be changed if only AI choosed to destroy his own permanents.
But i dont know how to let AI choose the best strategy as you asked.
It seems a new challenge to us
- Clark
- Posts: 64
- Joined: 21 Aug 2010, 16:07
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by kevlahnota » 11 Sep 2010, 19:14
I think we use calculate score to win or count the number of creatures he controls. if it's good then choose his own permanents else choose opponents.
I had this idea in mind but we need to discover the codes.
anyway, I'm still building a merfolk deck right now. Mutavault at beta status while Cursecatcher needs more polish to work at 100%
I had this idea in mind but we need to discover the codes.
anyway, I'm still building a merfolk deck right now. Mutavault at beta status while Cursecatcher needs more polish to work at 100%
Clark wrote:To terastodon, it have been the key card to the duels for 2 times in my play.kevlahnota wrote:do you think the AI will choose what's best to target if we enable the target determination to both players permanents ie. cards etc?
because I have made terastodon, if the AI will choose what's the best strategy if destroying his permanents and produce tokens or destroying 3 permanents of his opponents then this is good actually.
In the duels, it was casted by AI instead of me, after which i bated AI under the help of those 3 green tokens
While the result would be changed if only AI choosed to destroy his own permanents.
But i dont know how to let AI choose the best strategy as you asked.
It seems a new challenge to us
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Problem with Gatekeeper of Malakir
by logoliv » 12 Sep 2010, 00:27
the IA played Gatekeeper of Malakir with kicker cost, it came on the battlefield, then nothing happened (didn't ask me to sacrifice a creature and the game was just waiting)
Re: Problem with Gatekeeper of Malakir
by kevlahnota » 12 Sep 2010, 02:13
hmmm, that's odd. i'll check later but you can try adding zone="any" to the comes into play triggered ability of gatekeeper.
logoliv wrote:the IA played Gatekeeper of Malakir with kicker cost, it came on the battlefield, then nothing happened (didn't ask me to sacrifice a creature and the game was just waiting)
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Re: Report cards error here
by zwastik » 14 Sep 2010, 21:09
dream halls is bogus. When the AI plays a spell it returns the same spell to it's hand.
- zwastik
- Posts: 31
- Joined: 30 Aug 2010, 11:48
- Has thanked: 0 time
- Been thanked: 0 time
Re: Report cards error here
by zwastik » 16 Sep 2010, 13:33
berserk does not destroy creature that attacked at end of turn, at least AI creature.
- zwastik
- Posts: 31
- Joined: 30 Aug 2010, 11:48
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 5 guests