Upkeep mana costs

May someone help me? I do like know how implement the mana costs in upkeep and cumulative in cards like Junun Efreet for exemple or stasi
.
.
High Quality Resources for Collectible Card Games
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=63&t=9762
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, sacrifice Nicol Bolas unless you pay {U}{B}{R}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, sacrifica Nicol Bolas a meno che non paghi {U}{B}{R}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Opfere Nicol Bolas zu Beginn deines Versorgungssegments, falls du nicht {U}{B}{R} bezahlst.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, sacrifiez Nicol Bolas à moins que vous ne payiez {U}{B}{R}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, sacrifica a Nicol Bolas a menos que pagues {U}{B}{R}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのアップキープの開始時に、あなたが{U}{B}{R}を支払わないかぎり、ニコル・ボーラスを生け贄に捧げる。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, sacrifice Nicol Bolas unless you pay {U}{B}{R}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[В начале вашего шага поддержки пожертвуйте Николя Боласа, если вы не заплатите {U}{B}{R}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua manutenção, sacrifique Nicol Bolas, a menos que você pague {U}{B}{R}.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_STEP" simple_qualifier="controller">
return ( EffectController():MyTurn() ~= 0 ) and ( MTG():GetStep() == STEP_UPKEEP )
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local controller = EffectController()
if controller ~= nil and controller:CanAfford("{U}{B}{R}") == 1 then
controller:BeginNewMultipleChoice()
controller:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_YES" )
controller:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_NO" )
controller:AskMultipleChoiceQuestion( "CONDITIONAL_QUESTION_BODY" )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local controller = EffectController()
if controller ~= nil then
if controller:CanAfford("{U}{B}{R}") == 1 and Object():GetMultipleChoiceResult() == 0 then
controller:TapLand("{U}{B}{R}")
elseif EffectSource() ~= nil then
EffectSource():Sacrifice(controller)
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
Another solution would be to treat, for example, "Cumulative upkeep
That would indeed work for alternate mana cumulative upkeeps, and using Phyrexian mana could even work for something that alternates between mana and 2 life.thefiremind wrote:Another solution would be to treat, for example, "Cumulative upkeepor
" as "Cumulative upkeep
".