Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Talk about new cards here
Moderator: CCGHQ Admins
Re: Talk about new cards here
by sweetLu » 29 Jul 2015, 18:13
Yes the only way to get a card like this to work is if the player uses Riiaks activated ability approximation for manual mana. There is no way for the game to distinguish a land that auto taps for mana vs a land tapped by something like a Pestermite.
Re: Talk about new cards here
by cenarius » 30 Jul 2015, 07:37
Damn, what a shame. It would have been funsweetLu wrote:Yes the only way to get a card like this to work is if the player uses Riiaks activated ability approximation for manual mana. There is no way for the game to distinguish a land that auto taps for mana vs a land tapped by something like a Pestermite.
Thaks for the reply
- cenarius
- Posts: 87
- Joined: 09 Jun 2015, 14:40
- Has thanked: 0 time
- Been thanked: 0 time
Re: Talk about new cards here
by migookman » 03 Aug 2015, 05:32
I'm trying to make Gemini Engine but am having problems with the token being put on the battlefield using the following:
- Code: Select all
MTG():PutPTTokensOntoBattlefieldTappedAndAttacking( "TOKEN_TWIN_AC_X_X_C_CW_1", 1, EffectController(), power, toughness )
Re: Talk about new cards here
by Xander9009 » 03 Aug 2015, 05:45
PutPTTokensOntoBattlefield is a function. PutTokensOntoBattlefieldTappedAndAttacking is also a function. But PutPTTokensOntoBattlefieldTappedAndAttacking is not a function. Since the attacking bit can't be easily faked, I'd suggest faking the PT. Either make the token a 1/1 or 0/1 or something and then set its PT the moment it's made, or use PutTokenCopiesOntoBattlefieldTappedAndAttacking. Unfortunately, it'll have the wrong name which may cause problems in some cases. Using that method, you'd also have problems with types and other stuff, so first I'd try the PutTokensOntoBattlefieldTappedAndAttacking and changing the PT.migookman wrote:I'm trying to make Gemini Engine but am having problems with the token being put on the battlefield using the following:PutPTTokensOntoBattlefield works fine but it doesn't put the token onto the battlefield when adding 'TappedandAttacking'.
- Code: Select all
MTG():PutPTTokensOntoBattlefieldTappedAndAttacking( "TOKEN_TWIN_AC_X_X_C_CW_1", 1, EffectController(), power, toughness )
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Talk about new cards here
by migookman » 03 Aug 2015, 06:52
Would it be possible to code the token 'TWIN' to come into the battlefield tapped and attacking? Then the PutPTTokensOntoBattlefield function would work well (that part already tested).
Re: Talk about new cards here
by Xander9009 » 03 Aug 2015, 07:13
You can make it enter tapped, but there's no way to make it enter tapped and attacking from its own code. At least, not that I know of.migookman wrote:Would it be possible to code the token 'TWIN' to come into the battlefield tapped and attacking? Then the PutPTTokensOntoBattlefield function would work well (that part already tested).
One thing you could try (and I HIGHLY doubt it will work) is to use PutPTTokensOntoBattlefield and store the pointer to the created token in a chest. Then, on the token's pointer, call PutOntoBattlefieldTappedAndAttacking. I doubt it'll work, though. It's meant to be for cards not already on the battlefield, but depending on how the developers coded the function, there is a slight chance it will make a card that's already on the battlefield immediately attack. Keep in mind the this function should, just like PutTokensOntoBattlefieldTappedAndAttacking, require the player to attack as one of the parameters.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Talk about new cards here
by thefiremind » 03 Aug 2015, 08:26
I did this for Flash Foliage (of course, blocking instead of attacking), and it was behaving strangely, basically the creatures blocked by the Saproling dealt their damage as though they had trample. So, if you want to go down this road, test it carefully, because it may act strange.Xander9009 wrote:One thing you could try (and I HIGHLY doubt it will work) is to use PutPTTokensOntoBattlefield and store the pointer to the created token in a chest. Then, on the token's pointer, call PutOntoBattlefieldTappedAndAttacking. I doubt it'll work, though.
Also notice that the text for Gemini Engine doesn't say "tapped", it just says "attacking". I happened to watch a YouTube video of a MTGO Mirrodin draft and I saw the token come to the battlefield untapped and attacking, so I guess it was right (MTGO had another bug regarding that token, I think it wasn't dealing damage, but that's another story).
< 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: 721 times
Re: Talk about new cards here
by Splinterverse » 24 Jul 2019, 20:54
Do we still need this thread pinned? Last comment was from 2015. We're down to 330 missing cards and under 400 impossible ones.
---------------------------------------------
The DOTP2014 CW is updated nightly between 11 PM and 12 AM EST.
Known Issues/Bugs |
Impossible Cards List | Update Your Land Pools
The DOTP2014 CW is updated nightly between 11 PM and 12 AM EST.
Known Issues/Bugs |
Impossible Cards List | Update Your Land Pools
- Splinterverse
- Posts: 918
- Joined: 04 Sep 2016, 13:32
- Has thanked: 150 times
- Been thanked: 75 times
Who is online
Users browsing this forum: No registered users and 4 guests