Page 1 of 1

Two-Headed Giant Shared Enchantments?

PostPosted: 04 Aug 2012, 02:48
by luh-koala
Hello!

I was wondering if theres a possible way to make the ally player share your enchantments, wheres "you" in the cards would refer to both you and the
allied player. I don't have a minimal idea of how to do this, but would be interesting change in the new game mode. =) And if its possible, im think
that can be done XD.

Ty o/

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 04 Aug 2012, 09:23
by thefiremind
You should rewrite all the enchantments so that they act for all the players whose team is equal to EffectController():GetTeam(). I don't think it's worth the effort. Anyway there are some cards made with multiplayer in mind, for example Mana-Charged Dragon (which I already coded). So, a deck specific for multiplayer could be done without changing the real rules, after we get to know all the cards that could fit in.

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 04 Aug 2012, 14:15
by luh-koala
Thats really interesting. And the mana-Charged dragon pretty much defines what i wanted to achieve.
Weell, its tricky work, but maybe is worthy if you start focusing specific enchantments. =)

And make sense,. The trick is that isn't only enchantments that would enter in the list, theres specific artifacts and there it goes.
But, in theory, you can change these enchantments without having to do a extra-deck for specific multiplayer?

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 05 Aug 2012, 05:04
by MisterBenn
I recall that the Annihilator cards were a bit funny in DOTP2012's 2HG because the person who had to sacrifice permanents was always the player opposite you - you could remove all their permanents but the other player could fight on. Between that and the creature heavy decks leading to quite a few stalemate games, I ended up avoiding the 2HG mode most of the time.

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 08 Aug 2012, 20:21
by luh-koala
Someone can help with this code?

Im trying to make Greater Auramancy a shared effect, but isn't working by now. Actually, i think isnt working either for me or the team.

Code: Select all
local filteredCard = FilteredCard()
   local objectPlayer = EffectController()GetTeam()
   return (filteredCard:GetCardType():Test( CARD_TYPE_ENCHANTMENT ) ~= 0) and
   (filteredCard:GetPlayer()GetTeam() == objectPlayer) and
   (filteredCard ~= nil and
    filteredCard ~= Object() and
    filteredCard:GetZone() == (ZONE_IN_PLAY)
    </FILTER>
    <CONTINUOUS_ACTION layer="6">
    if FilteredCard() ~= nil then
   local characteristics = FilteredCard():GetCurrentCharacteristics()
   if characteristics ~= nil then
   characteristics:Characteristic_Set( CHARACTERISTIC_SHROUD, 1 )
   end
   end
And the enchanted creature code:

| Open
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0) and
FilteredCard():GetZone() == (ZONE_IN_PLAY) and
(FilteredCard():IsEnchanted() ~= 0) and
FilteredCard():GetPlayer()GetTeam() == Object():GetPlayer()GetTeam())
</FILTER>
<CONTINUOUS_ACTION layer="6">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
if characteristics ~= nil then
characteristics:Characteristic_Set( CHARACTERISTIC_SHROUD, 1 )
end
end


What im doing wrong?

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 08 Aug 2012, 21:08
by thefiremind
Replace all the instances of
GetPlayer()GetTeam()
with
GetPlayer():GetTeam()

EDIT: and correct what RiiakShiNal wrote after my post, too. :lol:

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 08 Aug 2012, 21:09
by RiiakShiNal
Well, you forgot a ":" in the line where you define objectPlayer:
Code: Select all
   local objectPlayer = EffectController():GetTeam()
and in this line:
Code: Select all
   (filteredCard:GetPlayer():GetTeam() == objectPlayer) and
Though if you had checked your Script_Log.txt it would have given you hints about those errors.

Re: Two-Headed Giant Shared Enchantments?

PostPosted: 08 Aug 2012, 22:27
by luh-koala
=DD Thanks a lot, it worked!

And nice tip with the script_log, it really helps =D