Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Card/Ability Symbols
Moderator: CCGHQ Admins
Card/Ability Symbols
by NEMESiS » 18 Jun 2013, 14:16
Hello, I am currently making a W/U deck and noticed that there is no symbol for when a permanent is detained. How can a symbol be added to a permanent that is detained (let say with Archon of the Triumvirate ability)? This is mostly as visual aid for a player.
-
NEMESiS - Posts: 460
- Joined: 03 Jan 2013, 04:02
- Location: Pools of Becoming
- Has thanked: 70 times
- Been thanked: 21 times
Re: Card/Ability Symbols
by thefiremind » 18 Jun 2013, 14:28
We all wished to add badges since DotP2013 was out, but it's impossible because there must be something hard-coded into the executable for each supported badge. While it's true that kevlahnota made a custom badge for wither, it has been possible because there was a place for that already, it just had the forestwalk badge as a placeholder.
The best visual aid you can give is to grant the detained permanent a static ability that does nothing except having the text "Detained", if you really want something. I hope DotP2014 will have a new badge at least for "can't block", you can't imagine how many times I made my combat strategies wrong because I forgot that a creature can't block.
The best visual aid you can give is to grant the detained permanent a static ability that does nothing except having the text "Detained", if you really want something. I hope DotP2014 will have a new badge at least for "can't block", you can't imagine how many times I made my combat strategies wrong because I forgot that a creature can't block.
< 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: Card/Ability Symbols
by NEMESiS » 18 Jun 2013, 14:48
I can settle for this, what should I do?thefiremind wrote:We all wished to add badges since DotP2013 was out, but it's impossible because there must be something hard-coded into the executable for each supported badge. While it's true that kevlahnota made a custom badge for wither, it has been possible because there was a place for that already, it just had the forestwalk badge as a placeholder.
The best visual aid you can give is to grant the detained permanent a static ability that does nothing except having the text "Detained", if you really want something. I hope DotP2014 will have a new badge at least for "can't block", you can't imagine how many times I made my combat strategies wrong because I forgot that a creature can't block.
-
NEMESiS - Posts: 460
- Joined: 03 Jan 2013, 04:02
- Location: Pools of Becoming
- Has thanked: 70 times
- Been thanked: 21 times
Re: Card/Ability Symbols
by thefiremind » 18 Jun 2013, 15:46
I don't know how detain is coded, but I guess you'll have something like this somewhere:
- Code: Select all
<CONTINUOUS_ACTION layer="8">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
if characteristics ~= nil then
characteristics:Characteristic_Set( CHARACTERISTIC_CANT_ATTACK, 1 )
characteristics:Characteristic_Set( CHARACTERISTIC_CANT_BLOCK, 1 )
characteristics:Characteristic_Set( CHARACTERISTIC_CANT_USE_ACTIVATED_ABILITIES, 1 )
end
end
</CONTINUOUS_ACTION>
- Code: Select all
characteristics:GrantAbility(9)
- Code: Select all
<STATIC_ABILITY resource_id="9">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Detained]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Detained]]></LOCALISED_TEXT>
</STATIC_ABILITY>
< 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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 28 guests