It is currently 27 May 2017, 21:18
   
Text Size

Amonkhet Spoiler Season

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, moomarc, Chris H., DennisBergkamp, Rob Cashwalker, friarsol, CCGHQ Admins

Re: Amonkhet Spoiler Season

Postby austinio7116 » 21 Apr 2017, 16:49

I believe the implementation of the Decimator Beetle card has a mistake:

SVar:DBPutCounter:DB$ PutCounter | ValidTgts$ Creature | TargetMin$ 0 | TargetMax$ 1 | TgtPrompt$ Select target creature defending player controls | CounterType$ M1M1 | CounterNum$ 1 | TargetingPlayer$ DefendingPlayer

When I cast the card I am unable to choose which opposing creature to target - I suspect it is allowing the opposition player (the AI) to select the target (unless it is randomly being selected). Perhaps it is the TargetingPlayer parameter that is incorrect - but I am very new to the card scripting language.

Edit - I have tested it with the TargetingPlayer parameter removed completely ( so it defaults to the active player) and I think that works assuming that I have understood the card correctly. So the updated line would be:

SVar:DBPutCounter:DB$ PutCounter | ValidTgts$ Creature | TargetMin$ 0 | TargetMax$ 1 | TgtPrompt$ Select target creature defending player controls | CounterType$ M1M1 | CounterNum$ 1
austinio7116
 
Posts: 49
Joined: 10 Mar 2017, 11:59
Has thanked: 1 time
Been thanked: 8 times

Re: Amonkhet Spoiler Season

Postby austinio7116 » 22 Apr 2017, 11:44

There is a typo in the Manticore of the Gauntlet script shown in bold below, this is causing it not to perform the sub-ability so no 3-damage to opponent:

SVar:TrigPutCounter:DB$ PutCounter | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | CounterType$ M1M1 | IsCurse$ True | SubAbility$ DBDealDAmage | CounterNum$ 1
SVar:DBDealDamage:DB$ DealDamage | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | NumDmg$ 3
austinio7116
 
Posts: 49
Joined: 10 Mar 2017, 11:59
Has thanked: 1 time
Been thanked: 8 times

Re: Amonkhet Spoiler Season

Postby stormcat » 25 Apr 2017, 17:41

:r33841
It seems that life gain effect of Trespasser's Curse doesn't working.
stormcat
 
Posts: 160
Joined: 17 Jun 2015, 05:32
Has thanked: 0 time
Been thanked: 2 times

Re: Amonkhet Spoiler Season

Postby austinio7116 » 29 Apr 2017, 11:18

I think there is an issue with Glorious End. When I played it and failed to win on my turn, the opponent was the one that was targeted by the end of turn lose the game trigger.

Match result: Mark: 2 Sue: 1
Game outcome: Sue has lost due to effect of spell 'Glorious End'
Game outcome: Mark has won because all opponents have lost
Resolve stack: Lose the game. [Phase: Mark]
Add to stack: Sue triggered Glorious End (3).
Phase: Mark's End of Turn
Resolve stack: Fling (15) - Deals 5 damage to Sue.
Damage: Fling (15) deals 5 non-combat damage to Sue.
Add to stack: Mark cast Fling (15) targeting Sue.
Mana: Mountain (31) - {T}: Add {R} to your mana pool.
Mana: Mountain (30) - {T}: Add {R} to your mana pool.
Phase: Mark's Main, postcombat
Phase: Mark's End Combat
Damage: Samut, Voice of Dissent (1) deals 3 combat damage to Sue.
Damage: Hooded Brawler (12) deals 5 combat damage to Sue.
Phase: Mark's Combat Damage
Damage: Samut, Voice of Dissent (1) deals 3 combat damage to Sue.
Phase: Mark's First Strike Damage
Combat: Sue didn't block Hooded Brawler (12).
Sue didn't block Samut, Voice of Dissent (1).
Phase: Mark's Declare Blockers
Resolve stack: When you exert Hooded Brawler (12), it gets +2/+2 until end of turn. [Exerted: Hooded Brawler (12)]
Add to stack: Mark triggered Hooded Brawler (12).
Combat: Mark assigned Samut, Voice of Dissent (1) and Hooded Brawler (12) to attack Sue.
Phase: Mark's Declare Attackers
Phase: Mark's Begin Combat
Land: Mark played Forest (36)
Phase: Mark's Main, precombat
Phase: Mark's Draw
Phase: Mark's Upkeep
Phase: Mark's Untap
Turn: Turn 16 (Mark)
Resolve stack: Glorious End (3) - End the turn. Lose the game.
Add to stack: Mark cast Glorious End (3).
Mana: Plains (28) - {T}: Add {W} to your mana pool.
Mana: Mountain (31) - {T}: Add {R} to your mana pool.
Mana: Mountain (30) - {T}: Add {R} to your mana pool.
austinio7116
 
Posts: 49
Joined: 10 Mar 2017, 11:59
Has thanked: 1 time
Been thanked: 8 times

Re: Amonkhet Spoiler Season

Postby friarsol » 29 Apr 2017, 13:27

austinio7116 wrote:I think there is an issue with Glorious End. When I played it and failed to win on my turn, the opponent was the one that was targeted by the end of turn lose the game trigger.
Sounds like an issue with the delayed trigger not having the right controller. That's odd.
friarsol
Global Moderator
 
Posts: 7047
Joined: 15 May 2010, 04:20
Has thanked: 225 times
Been thanked: 838 times

Re: Amonkhet Spoiler Season

Postby Agetian » 29 Apr 2017, 13:45

friarsol wrote:
austinio7116 wrote:I think there is an issue with Glorious End. When I played it and failed to win on my turn, the opponent was the one that was targeted by the end of turn lose the game trigger.
Sounds like an issue with the delayed trigger not having the right controller. That's odd.
Yeah, for whatever reason getActivatingPlayer() is returning the wrong player, not sure what's causing it. Using "SourceController" instead of "You" in the LosesGame DB seems to fix the issue, but is that viable and does it change anything about card interaction? :/

- Agetian
Agetian
Programmer
 
Posts: 2573
Joined: 14 Mar 2011, 05:58
Has thanked: 507 times
Been thanked: 315 times

Re: Amonkhet Spoiler Season

Postby austinio7116 » 29 Apr 2017, 14:53

On the other hand if we keep it like it is the card might see some play..
austinio7116
 
Posts: 49
Joined: 10 Mar 2017, 11:59
Has thanked: 1 time
Been thanked: 8 times

Re: Amonkhet Spoiler Season

Postby friarsol » 29 Apr 2017, 15:54

Agetian wrote:
friarsol wrote:
austinio7116 wrote:I think there is an issue with Glorious End. When I played it and failed to win on my turn, the opponent was the one that was targeted by the end of turn lose the game trigger.
Sounds like an issue with the delayed trigger not having the right controller. That's odd.
Yeah, for whatever reason getActivatingPlayer() is returning the wrong player, not sure what's causing it. Using "SourceController" instead of "You" in the LosesGame DB seems to fix the issue, but is that viable and does it change anything about card interaction? :/

- Agetian
No i think that's fine until we figure out whay delayed trigger is doing
friarsol
Global Moderator
 
Posts: 7047
Joined: 15 May 2010, 04:20
Has thanked: 225 times
Been thanked: 838 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: Google [Bot] and 8 guests


Who is online

In total there are 9 users online :: 1 registered, 0 hidden and 8 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: Google [Bot] and 8 guests

Login Form