Infinity Wars (Preservation Project) Need Coding Help

For all your questions regarding Image Card Coding.
Please read the Image Posting Guideline & Index before posting in this forum.
Forum rules
DO NOT POST BUG REPORT IN THIS FORUM !!

Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545

All post will be edited to follow forum rules.
Locked
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

This worked I got it working!

[card]
name=Rita, Shadow Priestess
auto=transforms((,newability[lord(creature|opponentbattlefield) -
opponentshroud],newability[lord(creature|opponentbattlefield) -shroud])) ueot
auto=@each upkeep:create(human:creature human:2/2:black:shroud) ueot
auto={0}{T}{S(creature|mybattlefield)}:life:(this)toughness]))
auto=@movedTo(this|nonbattlezone) from(battlefield):life:-10
text=At the end of each turn Rita is deployed, she creates a 2/2 Human in your
Support Zone
Sacrifice a character you control: Rita heals 5 damage.
mana={4}{B}
type=Creature
subtype=Human
power=5
toughness=15
[/card]

Now I just got the sacrifice ability to work on these tokens.
Last edited by wagicmagic28 on Thu Sep 12, 2019 1:23 am, edited 4 times in total.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

support zone means those tokens get Hexproof and Shroud until attacking. (heres some of the obstacles)
morale victory means if this creature dies you lose 10 life from a pool of about 100-200 health in a special and specific gamemode command ability was broken in Infinity Wars so I'm probably just gonna do away with commanders, too hard to code properly. They would have to be like exiled from battlefield yet still be able to use their abilities. Too tiring to code properly this. So I instead will place 3 starting characters from my library unto the battlefield chosen by random as one game mode called Commander mode.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

Next troublesome Card for me to code

[card]
name=The Hellmouth
auto=choice name {4}{B}{B}{T}:create(demon:creature demon:6/6:black:flying)
createauto={T}:auto=tapauto=frozenother
text=Exhaust, Pay 6: Create two 6/6Demons with Flying.
Mana={4}{B}{B}
type=Legendary Artifact
subtype=Artifact
[/card]
[/code]

I can only get it to create 1 6/6 flying black demon I need someone to post the correct code to summon 2 6/6 flying demons. So go ahead make my day and I will fix the code.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

[card]
name=The Hellmouth
auto=choice name={T}:autotap{4}{B}{B}{T}:create(demon:creature demon:6/6:black:flying)*2 auto={T}:
auto=tapauto=frozenother
text=Exhaust, Pay 6: Create two 6/6 Demons with Flying.
Mana={4}{B}{B}
type=Legendary Artifact
subtype=Artifact
[/card]
attempt number 2
Last edited by wagicmagic28 on Thu Sep 12, 2019 5:34 pm, edited 1 time in total.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

this code pretty buggy it sometimes glitches any fixes or problems you can detect? I know Raise "Resurrect" is not coded yet.

Code: Select all

[card]
name=Dark Wish
auto=choice name create(demon:creature demon:10/10:black:flying)
auto=choice name draw:3
abilities=hiddenface
auto=choice name aicode=activate moveto(myhand) target(*|mylibrary)
auto=name(search card) Reveal:type:*:mylibrary revealzone(mylibrary) 
optionone name(choose card) target(<1>*|reveal) transforms((,newability[all
(other *|reveal) moveto(mylibrary) and!(shuffle)!],newability[moveto(myhand)])) 
optiononeend optiontwo name(shuffle) bottomoflibrary target(<1>*|reveal) and!( 
all(*|reveal) bottomoflibrary and!(shuffle)! )! optiontwoend revealend
auto=choice name target=creature counter -10/-10
auto=choice name aslongas target(creature|mybattlefield):teach(creature) 
opponentshroud
text=Choose one
-Create 10/10 Demon with Flying
-Draw 3 Cards
-Place Target Card from Deck into your Hand
-Deal 10 damage to target Character
-Raise target Character to your Support Zone.
mana={B}{B}{B}{B}{B}
type=Sorcery
[/card][code]
Last edited by wagicmagic28 on Thu Sep 12, 2019 6:07 pm, edited 1 time in total.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

I need help coding this card right here...The Counter 4/4 is only suppose to be used once per turn this code doesn't work right also it doesn't let me pay to summon the dragon. but if I have enough lands the dragon "transform card" will autoplay. I want it like how the card says need someone to fix this code for me please.

Code: Select all

[card] WIP
name=Agent Coyle, Mechborn
auto=@each upkeep auto={1}:4/4 (this)creature|myBattlefield) counter(1/1,4) && maxPlay(this)-99 
auto=choice name Transform auto={10}{T}:transform into Mechborn Dragon @each upkeep restriction{lastturn(*|stack)~lessthan~1}:flip(Mechborn Dragon)
auto={T}:auto=tapauto=frozenother
auto=@movedTo(this|nonbattlezone) from(battlefield):life:-4
text=Agent Coyle gains +4/+4 This ability can only be used once per turn.
Transform Agent Coyle into a 25/25 Flying, Unstoppable, Artifictial Dragon.
type=Legendary Creature
subtype=Human
mana={2}
power=5
toughness=5
[/card]
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

[card]
[card]
name=Agent Coyle, Mechborn
auto=@each upkeep restriction={1}:4/4 (this)creature|myBattlefield) counter(1/1,4)max(land)Play 1 &&
auto=choice name create transform (this)creature|lord:flip(Mechborn Dragon)
auto={T}:auto=tapauto=frozenother
auto=@movedTo(this|nonbattlezone) from(battlefield):life:-4
text=Agent Coyle gains +4/+4 This ability can only be used once per turn.
Transform Agent Coyle into a 25/25 Flying, Unstoppable, Artifictial Dragon.
type=Legendary Creature
subtype=Human
mana={2}
power=5
toughness=5
[/card]
[/card]

Almost Got it working for some reason when I add Tap for Mana to Transform Mechanic on the card it doesn't transform...still a WIP.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

anyone capable of fixing my code yet? I either have it auto transform to a 2 cost 25/25 dragon or the card boosts each upkeep +4/+4 counter. I need to figure out what in the heck is wrong with the code here...please provide a fix anyone. I can't figure out any workaround!
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

Third attempt

[card]
name=Agent Coyle, Mechborn
auto=@each upkeep={1}:2/2 (this)creature|myBattlefield) counter(1/1,2)max(land)Play 1 &&
auto=choice name transform=newability[may moveto(mybattlefield) notatarget(land|myhand)],newability[@movedto(land|mybattlefield) restriction{type:land:mybattlefield~morethan~9}(this)creature|Lord|myBattlefield):flip(Mechborn Dragon)
auto=@movedTo(this|nonbattlezone) from(battlefield):life:-4
text=Agent Coyle gains +4/+4 This ability can only be used once per turn.
Control 10 Resources Transform Agent Coyle into a 25/25 Flying, Unstoppable,
Artifictial Dragon.
type=Legendary Creature
subtype=Human
mana={2}
power=5
toughness=5
[/card]

Now when you have at least 10 lands it transforms the defects I see here are minor but it transforms the card but with the old counters on it still, how do I remove the counters and write just a basic code to TAP lands to activate the two abilities. PLEASE help me code this...
originally it's suppose to be pay 1 get +4/+4 counter once per turn, then exhaust, (Tap) pay 10 to transform it into a 25/25 Dragon with flying and unstoppable (Unblockable.) the more than 9 code is not working it's glitching and activating at 3 lands controlled. IDK why this cards so hard to code.
wagicmagic28
Posts: 296
Joined: Mon Aug 19, 2013 3:51 pm

Re: Infinity Wars (Preservation Project) Need Coding Help

Post by wagicmagic28 »

I figured out a little coding do back and check the prims I have so far. Still gonna need active members on here you know a great deal of coding to actually make this project happen.
Locked