Page 7 of 8

Re: Kaladesh spoiler season

PostPosted: 20 Sep 2016, 22:04
by Hanmac
@friarsol: I do not so much like the change with Harnessed Lightning.
Isn't there an easier way to get PayEnergy<X> working?

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 00:16
by friarsol
Hanmac wrote:@friarsol: I do not so much like the change with Harnessed Lightning.
Isn't there an easier way to get PayEnergy<X> working?
Harnessed Lightning didn't work at all, so what part don't you like exactly?

Forge doesn't quite have true handling of cost payment in the middle of spell resolution. Triggers don't really qualify here. The closest thing we have is Unless (and Unless Switched). I mean, I guess it could be an UnlessSwitched, but it's awkward since you need to choose the amount for X separately from the cost. (See some of the Join Forces scripts) If you can get the script working with that, feel free.

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 02:18
by friarsol
matrix4767 wrote:Longtusk Cub should give only 2 Energy, instead of that as many as combat damage to player.
For some reason, when trying to add an icon for Energy, it deletes itself as soon as Forge loads up. What's up with that? Some code missing that the other icons use?
Do you have an icon for Energy? I can try at some point tomorrow to add it in. I think I needs to be put into the base sprite sheet?

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 05:10
by matrix4767
friarsol wrote:Do you have an icon for Energy? I can try at some point tomorrow to add it in. I think I needs to be put into the base sprite sheet?
MTG Salvation has one on the Energy Counter Page. It also shows an "Energy Reserve", a big card where counters are placed on.
http://mtgsalvation.gamepedia.com/Energy_counter

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 13:22
by friarsol
matrix4767 wrote:
friarsol wrote:Do you have an icon for Energy? I can try at some point tomorrow to add it in. I think I needs to be put into the base sprite sheet?
MTG Salvation has one on the Energy Counter Page. It also shows an "Energy Reserve", a big card where counters are placed on.
http://mtgsalvation.gamepedia.com/Energy_counter
Yea that ones super small. I'll hack something together, if someone finds an energy icon larger than 40x40 I can resize it down and replace the one I'm putting into the sprite sheet.

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 13:35
by Marek14
friarsol wrote:
matrix4767 wrote:
friarsol wrote:Do you have an icon for Energy? I can try at some point tomorrow to add it in. I think I needs to be put into the base sprite sheet?
MTG Salvation has one on the Energy Counter Page. It also shows an "Energy Reserve", a big card where counters are placed on.
http://mtgsalvation.gamepedia.com/Energy_counter
Yea that ones super small. I'll hack something together, if someone finds an energy icon larger than 40x40 I can resize it down and replace the one I'm putting into the sprite sheet.
What about this one?

viewtopic.php?f=15&t=4430&start=45#p201343

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 14:06
by friarsol
Marek14 wrote:What about this one?

viewtopic.php?f=15&t=4430&start=45#p201343
Ah beautiful.

Re: Kaladesh spoiler season

PostPosted: 21 Sep 2016, 20:32
by friarsol
Here's an almost working Captured by the Consulate --

Looks like there's an issue with the Defined for SpellAbility and Triggers not returning one that "matches" the one the StackInstance turns into...

Code: Select all
Name:Captured by the Consulate
ManaCost:3 W
Types:Enchantment Aura
K:Enchant creature you don't control
A:SP$ Attach | Cost$ 3 W | ValidTgts$ Creature.YouDontCtrl | AILogic$ Curse
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ CARDNAME can't attack. | Description$ Enchanted creature can't attack.
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | IsSingleTarget$ True | TriggerZones$ Battlefield | Execute$ TrigChangeTarget | TriggerDescription$ Whenever an opponent casts a spell, if it has a single target, change the target to enchanted creature if able.
SVar:TrigChangeTarget:DB$ ChangeTargets | TargetType$ Spell | Defined$ TriggeredSpellAbility | DefinedMagnet$ Enchanted
SVar:Picture:http://www.wizards.com/global/images/magic/general/captured_by_the_consulate.jpg
Oracle:Enchant creature you don't control\nEnchanted creature can't attack.\nWhenever an opponent casts a spell, if it has a single target, change the target to enchanted creature if able.

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 01:04
by friarsol
Here's a mostly working Chandra..

Didn't seem to work for Lightning Axe (maybe because of the additional costs), but was generally working aside from that...

Code: Select all
Name:Chandra, Torch of Defiance
ManaCost:2 R R
Types:Planeswalker Chandra
Loyalty:4
A:AB$ Mill | Cost$ AddCounter<1/LOYALTY> | Defined$ You | NumCards$ 1 | Destination$ Exile | Imprint$ True | SubAbility$ DBPlay | SpellDescription$ Exile the top card of your library. You may cast that card. If you don't, Chandra, Torch of Defiance deals 2 damage to each opponent.
SVar:DBPlay:DB$ Play | Valid$ Card.nonLand+IsImprinted | ValidZone$ Exile | Controller$ You | Optional$ True | Amount$ All | RememberPlayed$ True | SubAbility$ DBDamage
SVar:DBDamage:DB$ DealDamage | Defined$ Player.Opponent | NumDmg$ 2 | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ EQ0 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearImprinted$ True
A:AB$ Mana | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | Produced$ R | Amount$ 2 | SpellDescription$ Add {R}{R} to your mana pool.
A:AB$ DealDamage | Cost$ SubCounter<3/LOYALTY> | Planeswalker$ True | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ 4 | SpellDescription$ CARDNAME deals 4 damage to target creature.
A:AB$ Effect | Cost$ SubCounter<7/LOYALTY> | Planeswalker$ True | Ultimate$ True | Name$ Chandra, Torch of Defiance emblem | Triggers$ TrigSpellCast | SVars$ EffSpellCast | Duration$ Permanent | AILogic$ Always | Stackable$ False | SpellDescription$ You get an emblem with "Whenever you cast a spell, this emblem deals 5 damage to target creature or player."
SVar:TrigSpellCast:Mode$ SpellCast | ValidActivatingPlayer$ You | Execute$ EffSpellCast | TriggerDescription$ Whenever you cast a spell, this emblem deals 5 damage to target creature or player.
SVar:EffSpellCast:DB$ DealDamage | ValidTgts$ Creature,Player | NumDmg$ 5
SVar:Picture:http://www.wizards.com/global/images/magic/general/chandra_torch_of_defiance.jpg
Oracle:[+1]: Exile the top card of your library. You may cast that card. If you don't, Chandra, Torch of Defiance deals 2 damage to each opponent.\n[+1]: Add {R}{R} to your mana pool.\n[-3]: Chandra, Torch of Defiance deals 4 damage to target creature.\n[-7]: You get an emblem with "Whenever you cast a spell, this emblem deals 5 damage to target creature or player."

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 06:36
by Marek14
I just noticed I added Vedalken Blademaster as a vanilla -- it's supposed to have prowess. Sorry!

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 08:32
by matrix4767
Nissa, Vital Force's -3 is missing Planeswalker$ True.
The AI won't attack you if you have a strong enough Vehicle on the battlefield, even if you have nothing to crew it with, or it's tapped.

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 14:45
by Hanmac
http://mtgjson.com/ did update their data,
might check it out and see what did change.

Also Planeswalker Decks are out, but i currently don't know whats the best way to do them.
http://magic.wizards.com/en/articles/ar ... 2016-09-21

PS: i did the Trigger for CounterAdded(Once) working with Player
it can be used to check if a Player gets Energy

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 19:34
by friarsol
Ok, I just finished migrating the code scripts from the upcoming folder into their normal alpha folders...

What did everyone think of the process of using the upcoming folder instead of a separate branch?

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 19:44
by Marek14
Hanmac wrote:http://mtgjson.com/ did update their data,
might check it out and see what did change.

Also Planeswalker Decks are out, but i currently don't know whats the best way to do them.
http://magic.wizards.com/en/articles/ar ... 2016-09-21

PS: i did the Trigger for CounterAdded(Once) working with Player
it can be used to check if a Player gets Energy
http://yawgatog.com/ should also update soon -- and Yawgatog directly hosts difference files where you can directly see what changed. Anyway, there will be a lot... removing of AE, "create" wording for tokens, I expect some creature type updates with re-introduction of "Monkey"... But it seems no update to creature type of Goblin Test Pilot...

Re: Kaladesh spoiler season

PostPosted: 22 Sep 2016, 19:51
by matrix4767
friarsol wrote:What did everyone think of the process of using the upcoming folder instead of a separate branch?
It was quicker to test scripts for bugs, so it was a good decision.