Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels) 2014
Planeswalker's Complementary Set [MOD]
Moderator: CCGHQ Admins
Re: gorem2k mod
by Ratava » 29 Jul 2013, 10:20
hi
the value-change on "Turtleshell Changeling"
does not work
script_log:
"
[lua] [string "TURTLESHELL_CHANGELING_444145807_TITLE (CONTINUOUS_ACTION)~0x00000935"]:3: attempt to call method 'SwitchPowerToughness' (a nil value)
"
the value-change on "Turtleshell Changeling"
does not work
script_log:
"
[lua] [string "TURTLESHELL_CHANGELING_444145807_TITLE (CONTINUOUS_ACTION)~0x00000935"]:3: attempt to call method 'SwitchPowerToughness' (a nil value)
"
-
Ratava - Posts: 79
- Joined: 11 Jul 2013, 12:07
- Location: Germany
- Has thanked: 17 times
- Been thanked: 7 times
Re: gorem2k mod
by gorem2k » 29 Jul 2013, 10:26
yeah, I've just happen to see that too!!Ratava wrote:hi
the value-change on "Turtleshell Changeling"
does not work
script_log:
"
[lua] [string "TURTLESHELL_CHANGELING_444145807_TITLE (CONTINUOUS_ACTION)~0x00000935"]:3: attempt to call method 'SwitchPowerToughness' (a nil value)
"
I took thefiremind code which had a bug.
EffectSource():SwitchPowerToughnes() should be EffectSource():GetCurrentCharacteristics():SwitchPowerToughnes()
I will fix in next update.
Re: gorem2k mod
by Drakno » 29 Jul 2013, 16:08
HOLY CRAP THE PLANESWALKER WORKS!!!! I tip my hat to you good sir, hopefully soon it will be possible to use whichever walker you wish... I would like to know how it interacts with enchantment removal though, since the walker appears as an enchantment and all.
Re: gorem2k mod
by gorem2k » 29 Jul 2013, 21:22
I wouldn't say it works in capital letters , this is indeed prone to be disenchanted with any enchantment removal. and it also cause random results sometimes. I think someone did a Liliana of the Veil in another mod, but I don't know if it works. Personally, I think there are much better ways to program a Planeswalker, but I still have lot to learn about coding cards.Drakno wrote:HOLY CRAP THE PLANESWALKER WORKS!!!! I tip my hat to you good sir, hopefully soon it will be possible to use whichever walker you wish... I would like to know how it interacts with enchantment removal though, since the walker appears as an enchantment and all.
Re: gorem2k mod
by gorem2k » 29 Jul 2013, 23:19
just curious about these mixed Interrogations, step, phases, or if we could use them in any way. especially WITHDRAW_FROM_ATTACKING. I wonder if its useable...
Re: gorem2k mod
by thefiremind » 29 Jul 2013, 23:27
Those seem to be triggers that the game uses internally. They aren't coupled with a trigger constant here so it's very unlikely that we can access them from cards.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: gorem2k mod
by RiiakShiNal » 29 Jul 2013, 23:41
It's hard to say if those could be used or not, tests could be run to see if they ever work on a trigger, but if they don't trigger then it could mean we can't use them or it could mean they are never fired by the game (like BECAME_TAPPED_FOR_MANA, it has to be fired manually like in my manual mana functions). Trying to fire them manually would probably fail as we have no constants for them (trying to figure out the values would be quite time-consuming, assuming they even can be fired and caught).
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2185
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: gorem2k mod
by gorem2k » 30 Jul 2013, 00:19
There are certain values not defined in decompilable LOL files which could be listed on wiki page, like "replicate", "entwine", "flashback". my point is, if there's an internal function that is actually removing a creature from battle, there ought to be a way to trigger it, right? wish I could revert the exec into source code and hope that expansion cards will use every possibe things that this engine has to offer.. *cross fingers*
Re: gorem2k mod
by Drakno » 30 Jul 2013, 06:52
Surely this is the long and boring way but can't you give the walker protection from each card that destroys enchantments individually?
Re: gorem2k mod
by thefiremind » 30 Jul 2013, 08:07
Those aren't triggers, and not everything needs to be paired with a constant, but triggers do.gorem2k wrote:There are certain values not defined in decompilable LOL files which could be listed on wiki page, like "replicate", "entwine", "flashback".
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: gorem2k mod
by gorem2k » 30 Jul 2013, 14:08
This is my CANT_BE_BLOCKED_BY_MORE_THAN_1_CREATURE try.
- Code: Select all
-- can't be blocked by more than 1 creature
<TRIGGERED_ABILITY>
<TRIGGER value="ATTACKING" simple_qualifier="self" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_BLOCK" definition="0" compartment="0" count="1">
MTG():SetTargetAnswerer( EffectSource():GetPlayerAttacked() )
</TARGET>
<MAY />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<CONTINUOUS_ACTION layer="8">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if EffectSource() ~= nil then
local characteristics = EffectSource():GetCurrentCharacteristics()
characteristics:CanOnlyBeBlockedBy_Clear()
characteristics:CanOnlyBeBlockedBy_Set( target )
end
</CONTINUOUS_ACTION>
-- duration
</TRIGGERED_ABILITY>
Re: gorem2k mod
by thefiremind » 30 Jul 2013, 14:24
I wished it were so easy... CanOnlyBeBlockedBy_Set() only accepts "EVASION_INDEX_..." constants as parameters. It's used to code some blocking restrictions such as shadow (if DotP2014 still doesn't automatically include it in CHARACTERISTIC_SHADOW, I haven't tried yet). It feels a bit redundant given that we can use the EVASION_TEST trigger and get the same result (I think?), but it's shorter.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: gorem2k mod
by drleg3nd » 05 Aug 2013, 21:41
hey gorem any word if ya making anymore planeswalker cards and if so can it play with reg decks or other decks with another planeswalker besides doing a mirror match ?
Who is online
Users browsing this forum: No registered users and 13 guests