It is currently 04 Sep 2025, 03:56
   
Text Size

Oracle of Nectars

Moderator: CCGHQ Admins

Oracle of Nectars

Postby --Dream-- » 10 Aug 2012, 09:08

Probably some silly mistake, but I can't get this one to work. Whenever I try to use the activated ability, the game asks me to choose X and taps the creature, but I dont get any life gain :/

Code: Select all
<ACTIVATED_ABILITY forced_skip="1" filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{X}, {T}: You gain X life.]]></LOCALISED_TEXT>
   <COST type="Mana" cost="{X}" />
   <COST type="TapSelf" />
   <RESOLUTION_TIME_ACTION>
      local lifeGain = Object():GetManaX()
      if lifeGain &gt; 0 then
         EffectController():GainLife( lifeGain )
      end
   </RESOLUTION_TIME_ACTION>
  </ACTIVATED_ABILITY>
--Dream--
 
Posts: 65
Joined: 28 Jul 2012, 12:01
Has thanked: 4 times
Been thanked: 0 time

Re: Oracle of Nectars

Postby thefiremind » 10 Aug 2012, 09:27

Object():GetManaX() is DotP2012 syntax, while for DotP2013 you have to write:
Code: Select all
local lifeGain = GetEffectX()
And I suggest you to use auto_skip instead of forced_skip, so everyone who uses the card can choose whether to resolve it automatically or not (from the options).
< 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: 722 times

Re: Oracle of Nectars

Postby --Dream-- » 10 Aug 2012, 15:57

Silly mistake indeed :)

Thanks!
--Dream--
 
Posts: 65
Joined: 28 Jul 2012, 12:01
Has thanked: 4 times
Been thanked: 0 time


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 10 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 10 guests

Login Form