It is currently 16 Apr 2024, 21:41
   
Text Size

General XML/LUA Editing Findings

Moderator: CCGHQ Admins

Re: General XML/LUA Editing Findings

Postby Epiphany » 14 Jul 2010, 06:52

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
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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>
ENJOY!
Uresti
 
Posts: 151
Joined: 25 Jun 2010, 15:26
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Epiphany » 14 Jul 2010, 08:08

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!
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Epiphany » 14 Jul 2010, 08:40

Hmm, it works for me, except if I don't have any untapped lands it does neither effect.
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Uresti » 14 Jul 2010, 13:48

dang! details, details!!! :)

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

Postby 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?

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

really?? didnt noticed that...il check it later
Hehe, good luck mate! :)
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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
Image
User avatar
Yanna
 
Posts: 137
Joined: 03 Mar 2009, 14:52
Has thanked: 0 time
Been thanked: 1 time

Re: General XML/LUA Editing Findings

Postby Epiphany » 15 Jul 2010, 06:48

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. ;)
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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

Postby 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.
Epiphany
 
Posts: 95
Joined: 30 Jun 2010, 13:27
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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 ?
User avatar
logoliv
 
Posts: 130
Joined: 26 Jul 2010, 11:15
Has thanked: 4 times
Been thanked: 1 time

Re: General XML/LUA Editing Findings

Postby 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!
Uresti
 
Posts: 151
Joined: 25 Jun 2010, 15:26
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby 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

Postby 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.
Danielsi
 
Posts: 1
Joined: 14 Sep 2016, 18:44
Has thanked: 0 time
Been thanked: 0 time

Re: General XML/LUA Editing Findings

Postby Xander9009 » 28 Sep 2016, 14:56

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?
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Previous

Return to Documentation

Who is online

Users browsing this forum: No registered users and 6 guests


Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 6 guests

Login Form