AbilityFactory TODO list
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: AbilityFactory TODO list
by slapshot5 » 10 Oct 2011, 23:47
Ok, it's all working now. Charm should work properly in triggers.
I've added Inquisitor Exarch also.
-slapshot5
I've added Inquisitor Exarch also.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: AbilityFactory TODO list
by slapshot5 » 04 Feb 2012, 18:48
What's the best way to handle the choices part of things like Gabriel Angelfire? Right now, I've got this working:
-slapshot5
- Code: Select all
Name:Gabriel Angelfire
ManaCost:3 G G W W
Types:Legendary Creature Angel
Text:no text
PT:4/4
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigChoice | TriggerDescription$ At the beginning of your upkeep, choose flying, first strike, trample, or rampage 3. CARDNAME gains that ability until your next upkeep.
SVar:TrigChoice:AB$ GenericChoice | Cost$ 0 | Defined$ You | Choices$ SVar1,SVar2,SVar3,SVar4
SVar:SVar1:DB$ Pump | Defined$ Self | KW$ Flying | UntilYourNextUpkeep$ True | ChoiceDescription$ Flying
SVar:SVar2:DB$ Pump | Defined$ Self | KW$ First Strike | UntilYourNextUpkeep$ True | ChoiceDescription$ First strike
SVar:SVar3:DB$ Pump | Defined$ Self | KW$ Trample | UntilYourNextUpkeep$ True | ChoiceDescription$ Trample
SVar:SVar4:DB$ Pump | Defined$ Self | KW$ Rampage 3 | UntilYourNextUpkeep$ True | ChoiceDescription$ Rampage 3
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/gabriel_angelfire.jpg
End
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: AbilityFactory TODO list
by Sloth » 04 Feb 2012, 19:31
I think an AF like this would be helpful in the long run. The broken AF Choice is only for abilities where the mode is chosen before resolution. There are some more cards that have some weird choices on resolution (like Clockspinning).slapshot5 wrote:What's the best way to handle the choices part of things like Gabriel Angelfire? Right now, I've got this working:Is it better to integrate that choice into AF Pump? Or does a generic choice like this seem like a way to script Sarpadian Empires, Vol. VII? I was kind of unsure after I thought of how the Color choice is built into AF Protection.
- Code: Select all
Name:Gabriel Angelfire
ManaCost:3 G G W W
Types:Legendary Creature Angel
Text:no text
PT:4/4
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigChoice | TriggerDescription$ At the beginning of your upkeep, choose flying, first strike, trample, or rampage 3. CARDNAME gains that ability until your next upkeep.
SVar:TrigChoice:AB$ GenericChoice | Cost$ 0 | Defined$ You | Choices$ SVar1,SVar2,SVar3,SVar4
SVar:SVar1:DB$ Pump | Defined$ Self | KW$ Flying | UntilYourNextUpkeep$ True | ChoiceDescription$ Flying
SVar:SVar2:DB$ Pump | Defined$ Self | KW$ First Strike | UntilYourNextUpkeep$ True | ChoiceDescription$ First strike
SVar:SVar3:DB$ Pump | Defined$ Self | KW$ Trample | UntilYourNextUpkeep$ True | ChoiceDescription$ Trample
SVar:SVar4:DB$ Pump | Defined$ Self | KW$ Rampage 3 | UntilYourNextUpkeep$ True | ChoiceDescription$ Rampage 3
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/gabriel_angelfire.jpg
End
-slapshot5
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: AbilityFactory TODO list
by friarsol » 23 Feb 2012, 03:12
This isn't quite AFs, but it seemed like the best place to put it:
We should probably change Transmute to just shortcut for an AF, to make use of all of our good structure. This will also fix an issue where Transmute doesn't show the library before that.
Transmute X => AB$ ChangeZone | Cost$ X Dicard<1/CARDNAME> | ActivationZone$ Hand | SorcerySpeed$ True | ChangeType$ Card.cmcEQY
At some point, we should probably convert Cycling and Typecycling to their respective AFs although we probably need to do something with Astral Slide, Fluctuator, Stabilizer and similar, since they all count as Cycling.
We should probably change Transmute to just shortcut for an AF, to make use of all of our good structure. This will also fix an issue where Transmute doesn't show the library before that.
Transmute X => AB$ ChangeZone | Cost$ X Dicard<1/CARDNAME> | ActivationZone$ Hand | SorcerySpeed$ True | ChangeType$ Card.cmcEQY
At some point, we should probably convert Cycling and Typecycling to their respective AFs although we probably need to do something with Astral Slide, Fluctuator, Stabilizer and similar, since they all count as Cycling.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 25 guests