Page 53 of 253

Re: Community Wad

PostPosted: 12 Jun 2015, 07:54
by Kithkin
zysron wrote:Braid of Fire
adds the mana to your mana pool during your upkeep after your lands untap you have to accept or deny if you accept than you get mana if you deny you loose the enchantment at your draw step the mana is depleted. except for instants or flash the mana is compleatly useless which is why my decks that use it feature more instants than sorceries.

also with how it was coded you get a response timer to use it...(in some instance that timeer might go off about 6 or more times)
Well, I did not think about the depletion after the upkeep. Have to check it again, using the timer this time. Thx.

Re: Community Wad

PostPosted: 12 Jun 2015, 15:39
by Kithkin
Kithkin wrote:
zysron wrote:Braid of Fire
adds the mana to your mana pool during your upkeep after your lands untap you have to accept or deny if you accept than you get mana if you deny you loose the enchantment at your draw step the mana is depleted. except for instants or flash the mana is compleatly useless which is why my decks that use it feature more instants than sorceries.

also with how it was coded you get a response timer to use it...(in some instance that timeer might go off about 6 or more times)
Well, I did not think about the depletion after the upkeep. Have to check it again, using the timer this time. Thx.
Braid of Fire works as described by zysron. No need to fix.

Re: Community Wad

PostPosted: 12 Jun 2015, 16:24
by cenarius
Hi there, me again.

I hope someone helps me here.

I'm not sure if it's a bug from a card in the CW files or the one i made.

Here you can find a link with the 3 files needed to test my card: https://drive.google.com/file/d/0B-oDza ... sp=sharing

I also added my classic black control deck for testing purposes. I have 3 cards done for the moment: "Phyrexian Driver", "Treacherous Link" and "Snuff Out".

The card in question that i made is "Treacherous Link". The card i'm having a hard time on is "Phyrexian Negator" from the CW.

I don't know if there is people old enough in here but back on those days, if you were running 3-4 negators on a black control deck, you had to put 3-4 of these links or you were pretty much screwed.

Well, the link card i made works fine, all damage is redirected to me, combat or not combat damage, direct or no direct damage, when i put it on the negator the bastard survives, the thing is, even when no damage is dealt to the negator, it forces me to sacrifice permanents anyway, making the combo completely useless :(

I also made a modification to the link card, preventing all damage done to the creature just below the "redirecting damage" line on the code so each time damage is intended over the creature, no matter what, no damage is done, but the perma-sacrifice on the negator triggers anyway.

I hope i get some feedback on this.

Regards.

Edited: About the "Treacherous Link" card i made, When i say "the damage is redirected to me" is when i use it on the negator of course, but it works as intented, that means, if you put it on an opponent's creature, the damage that creature gets is redirected to its controller instead. It wouldn't be fun otherwise i think :|

Re: Community Wad

PostPosted: 12 Jun 2015, 17:04
by fallenangle
@cenarius: I would be willing to take a look at your cards, but I don't have permission to access your Google Drive folder. Can you upload a zip file with the card xml files in question?

Re: Community Wad

PostPosted: 12 Jun 2015, 17:17
by cenarius
fallenangle wrote:@cenarius: I would be willing to take a look at your cards, but I don't have permission to access your Google Drive folder. Can you upload a zip file with the card xml files in question?
No problem.

Uploaded to adrive:

Core: http://www.adrive.com/public/TYFb9c/Dat ... 2_Core.wad
Enabler: http://www.adrive.com/public/Xy3EtV/Dat ... nabler.wad
B/Control Deck: http://www.adrive.com/public/jeBAwD/Dat ... LASSIC.wad

Thanks for looking into these ;)

Re: Community Wad

PostPosted: 12 Jun 2015, 17:29
by Xander9009
Also, just for the record, in google drive, if you right click a file or folder and choose "Share", you'll get a box that has the text "Get shareable link". Clicking that will make the file/folder public, but the public can only view and download the file/contents, not change it. This way, you wouldn't have to upload it to other sites.

EDIT: Try adding pre_trigger="1" to the trigger tag.
| Open
Code: Select all
<TRIGGERED_ABILITY replacement_effect="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Todo el daño que sea hecho a la criatura encantada se redirige a su controlador.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[All damage that would be dealt to enchanted creature is dealt to its controller instead.]]></LOCALISED_TEXT>
      <TRIGGER value="OBJECT_TAKES_DAMAGE" damage_type="all" pre_trigger="1">
         if EffectSource() ~= nil then
            return TriggerObject() == EffectSource():GetParent()
         end
      </TRIGGER>
      <RESOLUTION_TIME_ACTION>
         local damage = Damage()
         local parent = EffectSource():GetParent()
         local controller = parent:GetController()
         if TriggerObject() ~= nil then
            damage:RedirectAllTo( controller )
         end
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
Note that I removed the doesn't received damage characteristic. It should not be needed.

Re: Community Wad

PostPosted: 12 Jun 2015, 17:51
by cenarius
Xander9009 wrote:Try adding pre_trigger="1" to the trigger tag.
You are the man. It works now, i have no idea why, but it works nicely. Now i can bump with the negator like there is no tomorrow.

Thanks ;)

Re: Community Wad

PostPosted: 12 Jun 2015, 18:26
by Xander9009
cenarius wrote:
Xander9009 wrote:Try adding pre_trigger="1" to the trigger tag.
You are the man. It works now, i have no idea why, but it works nicely. Now i can bump with the negator like there is no tomorrow.

Thanks ;)
Good. If you actually care why it works:

This is really unnecessary... | Open
It works because when a trigger is fired, the game sends that fire event to any cards set up to watch for it. Even if the trigger is reacted to by other cards, the event still propagates to all waiting cards. When you gain life with two Ajani's Pridemates on the battlefield, they both react. When a trigger has the attribute pre_trigger="1", the game sends the trigger event to that card before it sends it to any others (and if there are multiple cards with pre_trigger, it'll send it to them all in order). If it also has replacement_effect="1" in the ability tag, then the game will recognize that it's replacing the normal event, and thus does not continue to send the trigger event to cards waiting for the trigger.

In other words, triggers seem to be sent to two sets of cards: all cards waiting for the trigger, and all cards waiting for the trigger right before it happens (pre_trigger). Replacement_effect makes it not send the trigger to the next set of cards and remove the normal response time. With just pre_trigger, it'll trigger before other cards. With just replacement_effect, it'll remove the response time. With both, it'll trigger before other cards, remove the response time, and not send the trigger to cards with a normal trigger.

This is my understanding of it. It's easily possible I'm wrong, so take that with a grain of salt.

Re: Community Wad

PostPosted: 12 Jun 2015, 20:28
by cenarius
@Xander9009 But these two are gold dude:
pre_trigger="1"
replacement_effect="1"

That's why i asked for a function/variables/constants/whatever library of things. That's pretty basic info to manage. Is there a place to get all these? i'm also trying to figure it out how the heck can i make proper querys. My "Snuff Out" card is still asking for "[]" when it asks if i want to spend 4 life or pay the mana cost.

That would be appreciated.

Re: Community Wad

PostPosted: 12 Jun 2015, 21:30
by sweetLu
The attributes to the XML tags (i.e. pre_trigger, replacement_effect) are found here:
http://www.slightlymagic.net/wiki/DotP_2014:_XML_Tags

Another helpful wiki page is the decompiled LOL contents here:
http://www.slightlymagic.net/wiki/DotP_ ... L_contents

The most helpful trick is to build yourself a big database of cards (like by downloading the community wad) and using Riiak's deck builder to search for either similar cards, for exact functions, triggers, etc. There really isn't a comprehensive list of what you've asked for because we are only modding with the information we've found through trial and error.

As for your Snuff Out question, you'll need to do two things.

(1) add the name of the query text to the Snuff Out xml. I don't know your exact card but somewhere in the alternative casting utility ability have something like this:
Code: Select all
<ABILITY_TEXT tag="CARD_QUERY_SNUFF_OUT_PAY_4_LIFE" />
(2) Now you have to define the localized text for "CARD_QUERY_SNUFF_OUT_PAY_4_LIFE". In your DATA_ALL_PLATFORMS folder add a folder called TEXT_PERMANENT. In this folder you can add an xml file that can handle all of your localized text. I've provided one as an example.



As for why Phyrexian Driver is now a Zombie, my only guess is at some point in time it received an errata to make it a Zombie as well (I believe they changed the creature types of a bunch of older cards at one point in time).

Re: Community Wad

PostPosted: 13 Jun 2015, 07:34
by cenarius
sweetLu wrote:I've provided one as an example.
Where?

I'm really interested on this, because once i learn about it, it will serve me for any cards.

Re: Community Wad

PostPosted: 13 Jun 2015, 09:39
by Xander9009
cenarius wrote:
sweetLu wrote:I've provided one as an example.
Where?

I'm really interested on this, because once i learn about it, it will serve me for any cards.
Here you go. I grabbed sweetLu's text permanent file from the CW. Also, for some info on how it's set up, have a look at RiiakShiNal's post: viewtopic.php?f=109&t=11005&p=136242&hilit=%3CCell+ss%3AIndex%3D+3+%3E#p136242

Re: Community Wad

PostPosted: 13 Jun 2015, 10:01
by sweetLu
cenarius wrote:
sweetLu wrote:I've provided one as an example.
Where?

I'm really interested on this, because once i learn about it, it will serve me for any cards.
Sorry I thought I attached it to my post but apparently I didn't. Xander has me covered though. Thanks.

Re: Community Wad

PostPosted: 13 Jun 2015, 10:28
by Misplay
Hi!

Don't know if it's a bug, but am I the only to have an issue with the Overload ability of Mizzium Mortars?

When Mizzium Mortars have one legal target at least, I can only use it in its "normal" mode, I can't find a solution to trigger the overload.

However, If there's no legal target on board (= the opponent don't have any creature), I can trigger the "overload" mode.

Re: Community Wad

PostPosted: 13 Jun 2015, 10:57
by Xander9009
Misplay wrote:Hi!

Don't know if it's a bug, but am I the only to have an issue with the Overload ability of Mizzium Mortars?

When Mizzium Mortars have one legal target at least, I can only use it in its "normal" mode, I can't find a solution to trigger the overload.

However, If there's no legal target on board (= the opponent don't have any creature), I can trigger the "overload" mode.
Just tested it and it seemed to work alright. How are you trying to cast it? Overload is set up such that if there are no valid targets, then it defaults to using the overload ability, but if there are valid targets, then it doesn't. In that case, you have to zoom in on the card and click the overload ability.