It is currently 16 Apr 2024, 17:03
   
Text Size

Issue with ETB triggers

Moderator: CCGHQ Admins

Issue with ETB triggers

Postby Nick26 » 15 May 2021, 18:29

Hi everyone,
I have an issue related to collected company with some creatures like true name nemesis and gruul speelbreaker that do something as they enter the battleflied. When I cast company and I grab some of those creatures, their abilities don't work. TNN doesn't get any protection and spellbreaker's riot ability does not trigger. Does anyone know what's happening and how to fix this?
Nick26
 
Posts: 71
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time

Re: Issue with ETB triggers

Postby HeliosBlaze » 16 May 2021, 15:38

Hi Nick26.
The problem seems to be with putintothebattlefield and ZONECHANGE_TRANSITION linked ability group. Try the following.
Edit both True-name nemesis and Gruul, making the following changes.
1. remove active_zone="ZONE_TRANSITION"
2. change value="ZONECHANGE_TRANSITION" to value="ZONECHANGE_END"
HeliosBlaze
 
Posts: 5
Joined: 16 Feb 2021, 20:54
Has thanked: 0 time
Been thanked: 4 times

Re: Issue with ETB triggers

Postby Nick26 » 17 May 2021, 14:46

Thank you very much, I just tested it and it works perfectly for TNN. Unfortunately with gruul spellbreaker it creates a different issue: it seems like the counter is placed after the creature enters the battlefield (even if it is placed right away) and so when I have a 3/3 pelt collector (or an experiment one) and I play a gruul spellbreaker choosing to put a +1/+1 counter on it, the pelt collector doesn't get a +1/+1 counter.
Nick26
 
Posts: 71
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time

Re: Issue with ETB triggers

Postby HeliosBlaze » 17 May 2021, 21:48

Try the following code, you will have to remove the static ability for haste.

<TRIGGERED_ABILITY replacement_query="1" linked_ability_group="1" active_zone="ZONE_TRANSITION" >
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Riot]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Émeute]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Insurgencia.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Aufruhr]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Tumulto]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[暴動]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[폭동]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Беспорядки]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Tumulto]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[起事]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[起事]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local source = EffectSource()
if (player ~= nil and source ~= nil) then
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_1_1_COUNTER" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_HASTE" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_MC_RIOT", source )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local answer = EffectController():GetMultipleChoiceResult()
if EffectSource() ~= nil and answer == 0 then
EffectSource():AddCounters( MTG():PlusOnePlusOneCounters(), 1)
else
local Chest_Id = Object():GetRef()
local chest = MTG():DuelDataChest():Get_Chest(Chest_Id)
if chest == nil then
chest = MTG():DuelDataChest():Make_Chest(Chest_Id)
end
chest:Set_Int(1, 1)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY forced_skip="1" >
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" >
local Chest_Id = Object():GetRef()
local chest = MTG():DuelDataChest():Get_Chest(Chest_Id)
if chest == nil then
chest = MTG():DuelDataChest():Make_Chest(Chest_Id)
end
local HCheck = chest:Get_Int(1)

if HCheck == 1 then
return true
end
</TRIGGER>
<CONTINUOUS_ACTION layer="6">
local source = EffectSource()
if source ~= nil then
local characteristics = source:GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_HASTE, 1 )
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<RESOLUTION_TIME_ACTION>
local Chest_Id = Object():GetRef()
local chest = MTG():DuelDataChest():Get_Chest(Chest_Id)
if chest == nil then
chest = MTG():DuelDataChest():Make_Chest(Chest_Id)
end
chest:Set_Int(1, 0)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
HeliosBlaze
 
Posts: 5
Joined: 16 Feb 2021, 20:54
Has thanked: 0 time
Been thanked: 4 times

Re: Issue with ETB triggers

Postby Nick26 » 21 May 2021, 09:07

Hi,
I have been testing these cards a lot and it seems everything is working fine right now, thank you very much! :D
Nick26
 
Posts: 71
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time


Return to 2014

Who is online

Users browsing this forum: No registered users and 21 guests


Who is online

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

Login Form