It is currently 23 Apr 2024, 12:47
   
Text Size

Two-Headed Giant Shared Enchantments?

New decks and cards for Stainless Games' release

Moderator: CCGHQ Admins

Two-Headed Giant Shared Enchantments?

Postby luh-koala » 04 Aug 2012, 02:48

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/
_______________________________
Nothing is true, everything is permited.
User avatar
luh-koala
 
Posts: 31
Joined: 03 Aug 2012, 12:30
Has thanked: 9 times
Been thanked: 3 times

Re: Two-Headed Giant Shared Enchantments?

Postby thefiremind » 04 Aug 2012, 09:23

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.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Two-Headed Giant Shared Enchantments?

Postby luh-koala » 04 Aug 2012, 14:15

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?
_______________________________
Nothing is true, everything is permited.
User avatar
luh-koala
 
Posts: 31
Joined: 03 Aug 2012, 12:30
Has thanked: 9 times
Been thanked: 3 times

Re: Two-Headed Giant Shared Enchantments?

Postby MisterBenn » 05 Aug 2012, 05:04

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.
MisterBenn
 
Posts: 97
Joined: 19 Mar 2011, 16:19
Has thanked: 24 times
Been thanked: 11 times

Re: Two-Headed Giant Shared Enchantments?

Postby luh-koala » 08 Aug 2012, 20:21

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?
_______________________________
Nothing is true, everything is permited.
User avatar
luh-koala
 
Posts: 31
Joined: 03 Aug 2012, 12:30
Has thanked: 9 times
Been thanked: 3 times

Re: Two-Headed Giant Shared Enchantments?

Postby thefiremind » 08 Aug 2012, 21:08

Replace all the instances of
GetPlayer()GetTeam()
with
GetPlayer():GetTeam()

EDIT: and correct what RiiakShiNal wrote after my post, too. :lol:
Last edited by thefiremind on 08 Aug 2012, 21:10, edited 1 time in total.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Two-Headed Giant Shared Enchantments?

Postby RiiakShiNal » 08 Aug 2012, 21:09

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.
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Two-Headed Giant Shared Enchantments?

Postby luh-koala » 08 Aug 2012, 22:27

=DD Thanks a lot, it worked!

And nice tip with the script_log, it really helps =D
_______________________________
Nothing is true, everything is permited.
User avatar
luh-koala
 
Posts: 31
Joined: 03 Aug 2012, 12:30
Has thanked: 9 times
Been thanked: 3 times


Return to Magic: The Gathering - Duels of the Planeswalkers

Who is online

Users browsing this forum: No registered users and 16 guests


Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 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 16 guests

Login Form