It is currently 19 Jul 2019, 10:27
   
Text Size

Kaladesh spoiler season

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Re: Kaladesh spoiler season

Postby Hanmac » 20 Sep 2016, 22:04

@friarsol: I do not so much like the change with Harnessed Lightning.
Isn't there an easier way to get PayEnergy<X> working?
Hanmac
 
Posts: 942
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 153 times

Re: Kaladesh spoiler season

Postby friarsol » 21 Sep 2016, 00:16

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.
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby friarsol » 21 Sep 2016, 02:18

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?
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby matrix4767 » 21 Sep 2016, 05:10

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
matrix4767
 
Posts: 125
Joined: 09 Sep 2014, 08:10
Has thanked: 5 times
Been thanked: 3 times

Re: Kaladesh spoiler season

Postby friarsol » 21 Sep 2016, 13:22

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.
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby Marek14 » 21 Sep 2016, 13:35

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
Marek14
Tester
 
Posts: 2647
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 262 times

Re: Kaladesh spoiler season

Postby friarsol » 21 Sep 2016, 14:06

Marek14 wrote:What about this one?

viewtopic.php?f=15&t=4430&start=45#p201343
Ah beautiful.
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby friarsol » 21 Sep 2016, 20:32

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.
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby friarsol » 22 Sep 2016, 01:04

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."
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby Marek14 » 22 Sep 2016, 06:36

I just noticed I added Vedalken Blademaster as a vanilla -- it's supposed to have prowess. Sorry!
Marek14
Tester
 
Posts: 2647
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 262 times

Re: Kaladesh spoiler season

Postby matrix4767 » 22 Sep 2016, 08:32

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.
matrix4767
 
Posts: 125
Joined: 09 Sep 2014, 08:10
Has thanked: 5 times
Been thanked: 3 times

Re: Kaladesh spoiler season

Postby Hanmac » 22 Sep 2016, 14:45

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
Hanmac
 
Posts: 942
Joined: 06 May 2013, 18:44
Has thanked: 229 times
Been thanked: 153 times

Re: Kaladesh spoiler season

Postby friarsol » 22 Sep 2016, 19:34

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?
friarsol
Global Moderator
 
Posts: 7455
Joined: 15 May 2010, 04:20
Has thanked: 240 times
Been thanked: 930 times

Re: Kaladesh spoiler season

Postby Marek14 » 22 Sep 2016, 19:44

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...
Marek14
Tester
 
Posts: 2647
Joined: 07 Jun 2008, 07:54
Has thanked: 0 time
Been thanked: 262 times

Re: Kaladesh spoiler season

Postby matrix4767 » 22 Sep 2016, 19:51

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.
matrix4767
 
Posts: 125
Joined: 09 Sep 2014, 08:10
Has thanked: 5 times
Been thanked: 3 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: Bing [Bot] and 7 guests


Who is online

In total there are 8 users online :: 1 registered, 0 hidden and 7 guests (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: Bing [Bot] and 7 guests

Login Form