It is currently 24 Apr 2024, 16:25
   
Text Size

Planeswalker's Complementary Set [MOD]

Moderator: CCGHQ Admins

Re: gorem2k mod

Postby 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)
"
User avatar
Ratava
 
Posts: 79
Joined: 11 Jul 2013, 12:07
Location: Germany
Has thanked: 17 times
Been thanked: 7 times

Re: gorem2k mod

Postby gorem2k » 29 Jul 2013, 10:26

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)
"
yeah, I've just happen to see that too!!

I took thefiremind code which had a bug.

EffectSource():SwitchPowerToughnes() should be EffectSource():GetCurrentCharacteristics():SwitchPowerToughnes()

I will fix in next update.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: gorem2k mod

Postby 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.
Drakno
 
Posts: 52
Joined: 15 Oct 2012, 19:03
Has thanked: 33 times
Been thanked: 2 times

Re: gorem2k mod

Postby gorem2k » 29 Jul 2013, 21:22

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.
I wouldn't say it works in capital letters :lol: , 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.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: gorem2k mod

Postby gorem2k » 29 Jul 2013, 23:19

Image

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...
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: gorem2k mod

Postby 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...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: gorem2k mod

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

Re: gorem2k mod

Postby 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 :roll: and hope that expansion cards will use every possibe things that this engine has to offer.. *cross fingers*
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: gorem2k mod

Postby 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?
Drakno
 
Posts: 52
Joined: 15 Oct 2012, 19:03
Has thanked: 33 times
Been thanked: 2 times

Re: gorem2k mod

Postby thefiremind » 30 Jul 2013, 08:07

gorem2k wrote:There are certain values not defined in decompilable LOL files which could be listed on wiki page, like "replicate", "entwine", "flashback".
Those aren't triggers, and not everything needs to be paired with a constant, but triggers do.
< 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: gorem2k mod

Postby 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>
CanOnlyBeBlockedBy_Clear() doesn't work for me, and I find it strange that CanOnlyBeBlockedBy_Set() isn't listed anywhere. no SCRIPT_LOG generated, so I may try again later when I'm less tired.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: gorem2k mod

Postby thefiremind » 30 Jul 2013, 14:24

I wished it were so easy... :lol: 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...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: gorem2k mod

Postby gorem2k » 03 Aug 2013, 03:05

V3 out.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: gorem2k mod

Postby 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 ?
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: gorem2k mod

Postby Drakno » 05 Aug 2013, 22:16

What drleg3nd said
Drakno
 
Posts: 52
Joined: 15 Oct 2012, 19:03
Has thanked: 33 times
Been thanked: 2 times

PreviousNext

Return to 2014

Who is online

Users browsing this forum: No registered users and 13 guests


Who is online

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

Login Form