Page 8 of 8

Re: General XML/LUA Editing Findings

PostPosted: 14 Jul 2010, 06:52
by Epiphany
Uresti wrote:Sorry you must wait until my next release :)
Lol I'm going to keep bugging you for a release now! :p

Buyback makes up like 10% of Tempest! :D

Re: General XML/LUA Editing Findings

PostPosted: 14 Jul 2010, 07:41
by Uresti
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>
ENJOY!

Re: General XML/LUA Editing Findings

PostPosted: 14 Jul 2010, 08:08
by Epiphany
Uresti wrote: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>
ENJOY!
<3 Thank you sir!! :)

Will give it a go in a minute! That's loads more Tempest cards I can make now!

Re: General XML/LUA Editing Findings

PostPosted: 14 Jul 2010, 08:40
by Epiphany
Hmm, it works for me, except if I don't have any untapped lands it does neither effect.

Re: General XML/LUA Editing Findings

PostPosted: 14 Jul 2010, 13:48
by Uresti
dang! details, details!!! :)

really?? didnt noticed that...il check it later

Re: General XML/LUA Editing Findings

PostPosted: 14 Jul 2010, 17:39
by Epiphany
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?

Uresti wrote:dang! details, details!!! :)

really?? didnt noticed that...il check it later
Hehe, good luck mate! :)

Re: General XML/LUA Editing Findings

PostPosted: 15 Jul 2010, 00:28
by Yanna
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

Re: General XML/LUA Editing Findings

PostPosted: 15 Jul 2010, 06:48
by Epiphany
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.
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.

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
Looks fantastic mate! I really like it. The more help the better.

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. ;)

Re: General XML/LUA Editing Findings

PostPosted: 15 Jul 2010, 23:34
by Uresti
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 :/

Re: General XML/LUA Editing Findings

PostPosted: 16 Jul 2010, 13:01
by Epiphany
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.

Re: General XML/LUA Editing Findings

PostPosted: 25 Aug 2010, 17:28
by logoliv
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

PostPosted: 26 Aug 2010, 04:08
by Uresti
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!

Re: General XML/LUA Editing Findings

PostPosted: 09 Oct 2010, 05:56
by n00854180t
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.

General XML/LUA Editing Findings

PostPosted: 27 Sep 2016, 21:22
by Danielsi
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.

Re: General XML/LUA Editing Findings

PostPosted: 28 Sep 2016, 14:56
by Xander9009
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.
Which game is this for?