Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Help coding Teferi, Temporal Archmage
Moderator: CCGHQ Admins
Help coding Teferi, Temporal Archmage
by fallenangle » 07 Nov 2014, 22:24
I have it from reputable sources that this may be an insane task, but I'd like to try coding the Planeswalker Teferi, Temporal Archmage. I'm not sure how to go about coding his ultimate, so I guess I'll start by asking about that. If anyone is willing to help and has any ideas or suggestions, please let me know. Thanks for all your help.
- fallenangle
- Posts: 319
- Joined: 20 Jul 2013, 02:31
- Has thanked: 73 times
- Been thanked: 41 times
Re: Help coding Teferi, Temporal Archmage
by Xander9009 » 09 Nov 2014, 19:51
Well, you can simply remove the availability limitation from planeswalkers and they should work just like normal (don't remove the once-per-turn limit, though). Replace that availability with something which checks a player variable. Have Teferi set that variable to one. If a player can host an objectDC, then do that. Otherwise, if you don't want a token manager, then give each planeswalker an ability which continuously sets that card's objectDC variable to 0. Have Teferi's ultimate continuously grant each planeswalker you control an ability which sets it to 1 on a higher layer. Make sure the filter has 'reevaluates="1"' and has the duration set to 'return EffectController() == nil'. I think that should do it. I can't immediately think of a way to do it without modifying all planeswalkers, though, because there's no function to modify an abilities availability as far as I know.fallenangle wrote:I have it from reputable sources that this may be an insane task, but I'd like to try coding the Planeswalker Teferi, Temporal Archmage. I'm not sure how to go about coding his ultimate, so I guess I'll start by asking about that. If anyone is willing to help and has any ideas or suggestions, please let me know. Thanks for all your help.
For modifying each planeswalker, since the alteration will be identical for each ability, I can make a utility to automate that. Just alter one or two to test and see exactly what makes it work the way it should and let me know those exact changes.
_______________________________
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests