Incorrect Scripts
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Incorrect Scripts
by ZzzzSleep » 28 Feb 2012, 21:43
. Olivia Voldaren has an incorrect spell description. It says "Gain control of target creature" instead of "Gain control of target Vampire".
From http://svn.slightlymagic.net/websvn/fil ... ldaren.txt
A:AB$ GainControl | Cost$ 3 B B | ValidTgts$ Creature.Vampire | TgtPrompt$ Select target vampire | LoseControl$ LeavesPlay,LoseControl | SpellDescription$ Gain control of target creature for as long as you control CARDNAME.
From http://svn.slightlymagic.net/websvn/fil ... ldaren.txt
A:AB$ GainControl | Cost$ 3 B B | ValidTgts$ Creature.Vampire | TgtPrompt$ Select target vampire | LoseControl$ LeavesPlay,LoseControl | SpellDescription$ Gain control of target creature for as long as you control CARDNAME.
Re: Incorrect Scripts
by jeffwadsworth » 28 Feb 2012, 22:21
Thanks.ZzzzSleep wrote:. Olivia Voldaren has an incorrect spell description. It says "Gain control of target creature" instead of "Gain control of target Vampire".
From http://svn.slightlymagic.net/websvn/fil ... ldaren.txt
A:AB$ GainControl | Cost$ 3 B B | ValidTgts$ Creature.Vampire | TgtPrompt$ Select target vampire | LoseControl$ LeavesPlay,LoseControl | SpellDescription$ Gain control of target creature for as long as you control CARDNAME.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Incorrect Scripts
by jeffwadsworth » 29 Feb 2012, 23:09
For some bizarre reason, the boolean remSacrificed inside AB Sacrifice would not accept the scripted "RememberSacrificed$ True". Perhaps someone can look at it. I forced it to true for the time being.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Incorrect Scripts
by moomarc » 01 Mar 2012, 06:33
Jeff, I think your Curse of the Cabal needs to have a check on the trigger to make sure it has at least 1 time counter otherwise I assume it will trigger whenever its in exile, rather than just when its suspended.
EDIT: Nevermind. I'm over my temporary laziness and fixed it myself.
EDIT: Nevermind. I'm over my temporary laziness and fixed it myself.

-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Incorrect Scripts
by Sloth » 01 Mar 2012, 07:18
I think your changes to sacrificeHuman fixed the remembering (the previous state looks messed up to me), i can't imagine "final boolean remSacrificed = params.containsKey("RememberSacrificed");" not working (and forcing it can have side effects on other scripts).jeffwadsworth wrote:For some bizarre reason, the boolean remSacrificed inside AB Sacrifice would not accept the scripted "RememberSacrificed$ True". Perhaps someone can look at it. I forced it to true for the time being.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Incorrect Scripts
by jeffwadsworth » 01 Mar 2012, 12:41
Agreed, but it wouldn't work. Can someone test that? Quite simple of course.Sloth wrote:I think your changes to sacrificeHuman fixed the remembering (the previous state looks messed up to me), i can't imagine "final boolean remSacrificed = params.containsKey("RememberSacrificed");" not working (and forcing it can have side effects on other scripts).jeffwadsworth wrote:For some bizarre reason, the boolean remSacrificed inside AB Sacrifice would not accept the scripted "RememberSacrificed$ True". Perhaps someone can look at it. I forced it to true for the time being.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Incorrect Scripts
by Sloth » 01 Mar 2012, 13:41
It works for me. Both if suspended by the AI or suspended by human. Note that the AI will refuse to scarifice anything no matter who controls it.jeffwadsworth wrote:Agreed, but it wouldn't work. Can someone test that? Quite simple of course.Sloth wrote:I think your changes to sacrificeHuman fixed the remembering (the previous state looks messed up to me), i can't imagine "final boolean remSacrificed = params.containsKey("RememberSacrificed");" not working (and forcing it can have side effects on other scripts).jeffwadsworth wrote:For some bizarre reason, the boolean remSacrificed inside AB Sacrifice would not accept the scripted "RememberSacrificed$ True". Perhaps someone can look at it. I forced it to true for the time being.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Incorrect Scripts
by Sloth » 01 Mar 2012, 18:33
The script of Blood Feud has not improved since i posted about it: It will now always throw an error when cast. And even if fixed it will not work correctly targeting two creatures with infect.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Incorrect Scripts
by jeffwadsworth » 01 Mar 2012, 19:19
I did not see anything written about Blood Feud. I will delete it.Sloth wrote:The script of Blood Feud has not improved since i posted about it: It will now always throw an error when cast. And even if fixed it will not work correctly targeting two creatures with infect.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Incorrect Scripts
by Sloth » 01 Mar 2012, 20:25
Sorry Jeff, that i'm nagging so much these days. I know that the amount of work per card is rising as well as the chance to eventually fail. I really appreciate every card that gets added (even the obscure ones). So keep up the good scripting and coding work.jeffwadsworth wrote:I did not see anything written about Blood Feud. I will delete it.Sloth wrote:The script of Blood Feud has not improved since i posted about it: It will now always throw an error when cast. And even if fixed it will not work correctly targeting two creatures with infect.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Incorrect Scripts
by jeffwadsworth » 01 Mar 2012, 21:29
You do realize I was just kidding around. If anything is wrong, by all means, let me have it with both barrels. When I scripted that card, it seemed to work. Completely missed the Infect aspect. As for the obscure cards, I played with all those back in the day.Sloth wrote:Sorry Jeff, that i'm nagging so much these days. I know that the amount of work per card is rising as well as the chance to eventually fail. I really appreciate every card that gets added (even the obscure ones). So keep up the good scripting and coding work.jeffwadsworth wrote:I did not see anything written about Blood Feud. I will delete it.Sloth wrote:The script of Blood Feud has not improved since i posted about it: It will now always throw an error when cast. And even if fixed it will not work correctly targeting two creatures with infect.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Incorrect Scripts
by moomarc » 07 Mar 2012, 15:54
The script for Fork doesn't make the copy red. We'll need to either make an extra optional param in CopySpell that changes the color, or we need to add CopiedSA to the Defined list so that a pump can add a hidden "CARDNAME is red". I've had a look at the code but its beyond my paltry abilities (although I'm sure its horrible easy).
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Incorrect Scripts
by jeffwadsworth » 07 Mar 2012, 17:09
The script was done because the original code didn't change the new copied source to red either.moomarc wrote:The script for Fork doesn't make the copy red. We'll need to either make an extra optional param in CopySpell that changes the color, or we need to add CopiedSA to the Defined list so that a pump can add a hidden "CARDNAME is red". I've had a look at the code but its beyond my paltry abilities (although I'm sure its horrible easy).
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Incorrect Scripts
by moomarc » 07 Mar 2012, 19:32
Understood. I just came across it and thought I'd post a quick note about it before I forget (I have a tendency to do that)
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Incorrect Scripts
by squee1968 » 08 Mar 2012, 18:05
Not sure if this should be posted here or in Bug Reports, but the script for Profane Prayers is incorrect. The current script does not include a subability for the life gain portion of the card. I've included a corrected script.
- Code: Select all
Name:Profane Prayers
ManaCost:2 B B
Types:Sorcery
Text:no text
A:SP$ DealDamage | Cost$ 2 B B | Tgt$ TgtCP | NumDmg$ X |
SubAbility$ DBGainLife | SpellDescription$ Profane Prayers
deals X damage to target creature or player and you gain X
life, where X is the number of Clerics on the battlefield.
SVar:DBGainLife:DB$GainLife | Defined$ You | LifeAmount$ X
SVar:X:Count$TypeOnBattlefield.Cleric
SVar:RemRandomDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general
/profane_prayers.jpg
SetInfo:ONS|Common|http://magiccards.info/scans/en/on/162.jpg
Oracle:Profane Prayers deals X damage to target creature or
player and you gain X life, where X is the number of Clerics on
the battlefield.
End
Who is online
Users browsing this forum: Google [Bot] and 43 guests