It is currently 25 Apr 2024, 15:10
   
Text Size

old man of the sea and rootwater matriarch

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, 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: 32
Joined: 25 Mar 2018, 19:32
Has thanked: 0 time
Been thanked: 6 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: 32
Joined: 25 Mar 2018, 19:32
Has thanked: 0 time
Been thanked: 6 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 59 guests


Who is online

In total there are 59 users online :: 0 registered, 0 hidden and 59 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 59 guests

Login Form