It is currently 23 Oct 2019, 05:44
   
Text Size

old man of the sea and rootwater matriarch

Post MTG Forge Related Programming Questions Here

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

old man of the sea and rootwater matriarch

Postby nayozzz » 02 Dec 2018, 17:00

old man of the sea and rootwater matriarch

game crashes just after you took control of the enemy creature

---------
also another thing: deck editor keeps pushing away decks with ' in their name...

if forge finds .dck files in the appdata\roaming\forge\decks\constructed with ' in the name like Molimo's Might
it moves the file in appdata\roaming\forge\decks\ and renames it without the ' : like Molimos Might

can this be fixed ? :)
nayozzz
 
Posts: 26
Joined: 25 Mar 2018, 19:32
Has thanked: 0 time
Been thanked: 3 times

Re: old man of the sea and rootwater matriarch

Postby nayozzz » 02 Dec 2018, 20:15

this is a little partial fix for a card, it doesn't crash now.

what is missing: the condition if card has no aura attached to it, you lose control of it

right now the lose control function has only 2 options i saw working... controller card leaves battlefield and End of Turn
an easy way could be implementing a new options: controlled card has no aura on itself

LoseControl(LeavesPlay, Untap, LoseControl, EOT(end of turn))

Code: Select all

Name:Rootwater Matriarch
ManaCost:2 U U
Types:Creature Merfolk
PT:2/3
A:AB$ GainControl | Cost$ T | ValidTgts$ Creature | References$ X,Y | AITgts$ Creature.enchanted | LoseControl$ LoseControl | StaticCommandCheckSVar$ X | StaticCommandSVarCompare$ EQ0 | ConditionCheckSVar$ Y | ContionSVarCompare$ GE1 | SpellDescription$ Gain control of target creature for as long as that creature is enchanted.
# the hostcard of SVar X is the controlled card
SVar:X:Count$Valid Card.Self+enchanted
SVar:Y:Targeted$Valid Card.enchanted
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/rootwater_matriarch.jpg
Oracle:{T}: Gain control of target creature for as long as that creature is enchanted.

nayozzz
 
Posts: 26
Joined: 25 Mar 2018, 19:32
Has thanked: 0 time
Been thanked: 3 times


Return to Developer's Corner

Who is online

Users browsing this forum: Google [Bot] and 4 guests


Who is online

In total there are 5 users online :: 1 registered, 0 hidden and 4 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: Google [Bot] and 4 guests

Login Form