old man of the sea and rootwater matriarch
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			2 posts
			 • Page 1 of 1
		
	
old man of the sea and rootwater matriarch
 by nayozzz » 02 Dec 2018, 17:00
by 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 ?
			
		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 ?

Re: old man of the sea and rootwater matriarch
 by nayozzz » 02 Dec 2018, 20:15
by 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))
			
		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.
			2 posts
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 20 guests
