Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Documentation



General XML/LUA Editing Findings
Moderator: CCGHQ Admins
Re: General XML/LUA Editing Findings
by Epiphany » 14 Jul 2010, 06:52
Lol I'm going to keep bugging you for a release now! :pUresti wrote:Sorry you must wait until my next release
Buyback makes up like 10% of Tempest!

-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Uresti » 14 Jul 2010, 07:41
As i am busy with my "ARTIFACTS CYCLE" DLC here is the code:
- Code: Select all
<TRIGGERED_ABILITY tag="XXXXX_RULE_1" zone ="Any" dont_ask="0" layer="0">
<TRIGGER value="SPELL_PLAYED">
return SelfTriggered()
</TRIGGER>
<COST qualifier="Conditional" type="Mana" cost="{1}" />
<TARGET_DETERMINATION>
return TargetPermanentNeutralBad()
</TARGET_DETERMINATION>
<PLAYTIME>
ChooseTarget( "ChoosePermanentReturnToHand" )
</PLAYTIME>
<EFFECT>
ReturnTargetCardToOwnersHand()
ReturnThisCardToOwnersHand()
</EFFECT>
<ELSE_EFFECT>
ReturnTargetCardToOwnersHand()
PutThisCardInGraveyard()
</ELSE_EFFECT>
</TRIGGERED_ABILITY>
</CARD>
</MULTICARDS>
- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Epiphany » 14 Jul 2010, 08:08
<3 Thank you sir!!Uresti wrote:As i am busy with my "ARTIFACTS CYCLE" DLC here is the code:ENJOY!
- Code: Select all
<TRIGGERED_ABILITY tag="XXXXX_RULE_1" zone ="Any" dont_ask="0" layer="0">
<TRIGGER value="SPELL_PLAYED">
return SelfTriggered()
</TRIGGER>
<COST qualifier="Conditional" type="Mana" cost="{1}" />
<TARGET_DETERMINATION>
return TargetPermanentNeutralBad()
</TARGET_DETERMINATION>
<PLAYTIME>
ChooseTarget( "ChoosePermanentReturnToHand" )
</PLAYTIME>
<EFFECT>
ReturnTargetCardToOwnersHand()
ReturnThisCardToOwnersHand()
</EFFECT>
<ELSE_EFFECT>
ReturnTargetCardToOwnersHand()
PutThisCardInGraveyard()
</ELSE_EFFECT>
</TRIGGERED_ABILITY>
</CARD>
</MULTICARDS>

Will give it a go in a minute! That's loads more Tempest cards I can make now!
-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Epiphany » 14 Jul 2010, 08:40
Hmm, it works for me, except if I don't have any untapped lands it does neither effect.
-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Uresti » 14 Jul 2010, 13:48
dang! details, details!!! 
really?? didnt noticed that...il check it later

really?? didnt noticed that...il check it later
- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Epiphany » 14 Jul 2010, 17:39
I've created a new wiki page, I don't know if I'll be able to keep it up to date, but we'll see!
http://www.slightlymagic.net/wiki/List_ ... s_released
What do you guys think?

http://www.slightlymagic.net/wiki/List_ ... s_released
What do you guys think?
Hehe, good luck mate!Uresti wrote:dang! details, details!!!
really?? didnt noticed that...il check it later

-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Yanna » 15 Jul 2010, 00:28
Page could be nice to keep track of cards... Since we don't really syncrhonize efforts.
I was also thinking of "card code" pages that would reflect approved and working coding of a card.
Let's say i have a possibly working code for a card : Martial Coup. There may be some mistakes (filters left out, bad layers, etc...) so people could comment on it.
When approved, it is 'stickied' as the code reference for the card, and then for example, assigned a 'reserved' picture value so that nobody would erroneously uses.
That's just random ideas :p
BTW, i created a new page on the wiki : http://www.slightlymagic.net/wiki/DOTP_Card_Tags
Some tags parameters i don't have a clue about, feel free to add some more infos !
YannA a.k.a NOVA
I was also thinking of "card code" pages that would reflect approved and working coding of a card.
Let's say i have a possibly working code for a card : Martial Coup. There may be some mistakes (filters left out, bad layers, etc...) so people could comment on it.
When approved, it is 'stickied' as the code reference for the card, and then for example, assigned a 'reserved' picture value so that nobody would erroneously uses.
That's just random ideas :p
BTW, i created a new page on the wiki : http://www.slightlymagic.net/wiki/DOTP_Card_Tags
Some tags parameters i don't have a clue about, feel free to add some more infos !
YannA a.k.a NOVA

Re: General XML/LUA Editing Findings
by Epiphany » 15 Jul 2010, 06:48
Maybe if we called them "wiki\Card_name(DotP_Code)" to keep it organised? I'm happy to see a system like that in place.Yanna wrote:Page could be nice to keep track of cards... Since we don't really syncrhonize efforts.
I was also thinking of "card code" pages that would reflect approved and working coding of a card.
Let's say i have a possibly working code for a card : Martial Coup. There may be some mistakes (filters left out, bad layers, etc...) so people could comment on it.
When approved, it is 'stickied' as the code reference for the card, and then for example, assigned a 'reserved' picture value so that nobody would erroneously uses.
Looks fantastic mate! I really like it. The more help the better.BTW, i created a new page on the wiki : http://www.slightlymagic.net/wiki/DOTP_Card_Tags
Some tags parameters i don't have a clue about, feel free to add some more infos !
YannA a.k.a NOVA
I added the following:
[[Category:DotP_Editing]]
At the top, which basically tells the wiki what category it's in.
I also set the word "triggered" near the bottom to link to my list of triggers, hope that's ok.

-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Uresti » 15 Jul 2010, 23:34
seems that i know now what was fixex with the Updates 1 and 2 i installed them (ajem, ajem dont ask wich version do i have)
now DOTP just read LUA SCRIPTS from CORE.WAD, at least my MISC.LUA doesnt work anymore :/

- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Epiphany » 16 Jul 2010, 13:01
Does anyone know how to ask the player to tap 5 creatures as part of an activated ability then destroy another creature?
I'm trying to do Catapult Master for my Soldier theme deck.
I'm trying to do Catapult Master for my Soldier theme deck.
-------
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
http://www.slightlymagic.net/forum/viewtopic.php?f=62&t=2876
^ My release thread
http://www.slightlymagic.net/wiki/Duels_of_the_Planeswalkers
^ Check out the DotP wiki for help and guides
- Epiphany
- Posts: 95
- Joined: 30 Jun 2010, 13:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by logoliv » 25 Aug 2010, 17:28
I have a question guys : do you know exactly what's the difference between <PRE_EFFECT> and <PLAYTIME> in cards ? When to use the first / second ?
Re: General XML/LUA Editing Findings
by Uresti » 26 Aug 2010, 04:08
You use playtime to ask for a target/question when targeting something
Pre_effect is used generally after declared an ABILIY EVENT (trigger, Static, Utility, Activated, Spell) and contains code
hope that helps!
Pre_effect is used generally after declared an ABILIY EVENT (trigger, Static, Utility, Activated, Spell) and contains code
hope that helps!
- Uresti
- Posts: 151
- Joined: 25 Jun 2010, 15:26
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by n00854180t » 09 Oct 2010, 05:56
I haven't found any reference to it on the Wiki or the like, but there's also the HIT_GRAVEYARD trigger, which I've used successfully for Kalastria Highborn.
- n00854180t
- Posts: 19
- Joined: 09 Oct 2010, 05:41
- Has thanked: 0 time
- Been thanked: 0 time
General XML/LUA Editing Findings
by Danielsi » 27 Sep 2016, 21:22
What is this? <general realRainFx="0.000000" />
This line is found in the saved game folder in a file called
realisticInfos.xml
It is the last line of code before the close
<general realRainFx="0.000000" />
Please don't just tell me it is something to do with the rain.
This line is found in the saved game folder in a file called
realisticInfos.xml
It is the last line of code before the close
<general realRainFx="0.000000" />
Please don't just tell me it is something to do with the rain.
- Danielsi
- Posts: 1
- Joined: 14 Sep 2016, 18:44
- Has thanked: 0 time
- Been thanked: 0 time
Re: General XML/LUA Editing Findings
by Xander9009 » 28 Sep 2016, 14:56
Which game is this for?Danielsi wrote:What is this? <general realRainFx="0.000000" />
This line is found in the saved game folder in a file called
realisticInfos.xml
It is the last line of code before the close
<general realRainFx="0.000000" />
Please don't just tell me it is something to do with the rain.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Who is online
Users browsing this forum: No registered users and 2 guests