First attempt at scripting card is not working
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
5 posts
• Page 1 of 1
First attempt at scripting card is not working
by ArsenalNut » 23 Jul 2011, 08:00
I am trying to add a scripted card for Bramblewood Paragon. I used several other cards as examples to create a text file that I put into the cardsfolder directory. The card does not show up in the list when I open the deck editor. Do I need to do something else to get Forge to recognize it or did I goof the script (see code below)? I am running the Forge Beta: 07-15-2011 ver 1.1.00 SVN rev 10781 that was posted.
- Code: Select all
Name:Bramblewood Paragon
ManaCost:1 G
Types:Creature Elf Warrior
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Warrior+Other+YouCtrl |TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ Each other Warrior creature you control enters the battlefield with an additional +1/+1 counter on it.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ TriggeredCard | CounterType$ P1P1 | CounterNum$ 1
S:Mode$ Continuous | Affected$ Creature.YouCtrl+countersGE1P1P1 | AddKeyword$ Trample | Description$ Each creature you control with a +1/+1 counter on it has trample.
SVar:RemRandomDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/bramblewood_paragon.jpg
SetInfo:MOR|Uncommon|http://magiccards.info/scans/en/mt/115.jpg
End
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: First attempt at scripting card is not working
by Sloth » 23 Jul 2011, 08:39
The card looks almost finished to me (the first ability needs the "Static$ True" parameter since it's not a triggered ability).ArsenalNut wrote:I am trying to add a scripted card for Bramblewood Paragon. I used several other cards as examples to create a text file that I put into the cardsfolder directory. The card does not show up in the list when I open the deck editor. Do I need to do something else to get Forge to recognize it or did I goof the script (see code below)? I am running the Forge Beta: 07-15-2011 ver 1.1.00 SVN rev 10781 that was posted.
- Code: Select all
Name:Bramblewood Paragon
ManaCost:1 G
Types:Creature Elf Warrior
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Warrior+Other+YouCtrl |TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ Each other Warrior creature you control enters the battlefield with an additional +1/+1 counter on it.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ TriggeredCard | CounterType$ P1P1 | CounterNum$ 1
S:Mode$ Continuous | Affected$ Creature.YouCtrl+countersGE1P1P1 | AddKeyword$ Trample | Description$ Each creature you control with a +1/+1 counter on it has trample.
SVar:RemRandomDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/bramblewood_paragon.jpg
SetInfo:MOR|Uncommon|http://magiccards.info/scans/en/mt/115.jpg
End
If there would be serious mistakes in the script an error would be shown at the start of the game. You're card is supposed to show up in the game once you put it into the cardsfolder.

That aside, we have a topic for card contributions: viewtopic.php?f=52&t=3877.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: First attempt at scripting card is not working
by Chris H. » 23 Jul 2011, 10:15
`ArsenalNut wrote:I am trying to add a scripted card for Bramblewood Paragon. I used several other cards as examples to create a text file that I put into the cardsfolder directory. The card does not show up in the list when I open the deck editor. Do I need to do something else to get Forge to recognize it or did I goof the script (see code below)? I am running the Forge Beta: 07-15-2011 ver 1.1.00 SVN rev 10781 that was posted.
Look inside of the forge/res/cardsfolder/ and you will see a zip file named cardsfolder.zip. Unzip this archive.
Place the card files found in this archive inside of the forge/res/cardsfolder/ folder.
Make sure to remove the archive file itself that is found inside of the forge/res/cardsfolder/ folder.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: First attempt at scripting card is not working
by ArsenalNut » 23 Jul 2011, 15:23
The Bramblewood Paragon seems to be working. I had some issue with the version of Forge I was running. I created a fresh directory from 1.1.0 zip and the card showed up in the Deck Editor.
As a followup, I noticed the card has a ? in the AI column. What causes this? I looked at the Sigil Captain which has a similiar ability to Bramblewood Paragon and didn't see anything obvious in the card file that would change the AI status.
I didn't want to post a card to the card contribution topic that I wasn't sure was working.Sloth wrote:That aside, we have a topic for card contributions: viewtopic.php?f=52&t=3877.
As a followup, I noticed the card has a ? in the AI column. What causes this? I looked at the Sigil Captain which has a similiar ability to Bramblewood Paragon and didn't see anything obvious in the card file that would change the AI status.
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: First attempt at scripting card is not working
by friarsol » 23 Jul 2011, 15:32
The right topic is Card Development Questions viewtopic.php?f=52&t=3760ArsenalNut wrote:I didn't want to post a card to the card contribution topic that I wasn't sure was working.
The question mark is because of the RemRandomDeck flag that you copied over. This flag is around because this card has synergies with certain other cards (Warriors in this case) that might not necessarily show up in a randomly generated deck.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 41 guests