#Trouble scripting a card

7 messages · Page 1 of 1 (latest)

rose parcel
#

Hope this is the right place for this: I decided to dip my toes into scripting cards for Forge, so I thought I'd start with a relatively straightforward one that hasn't been implemented yet in MKM, but also doesn't rely on any of the new mechanics in the set. So I decided to take a stab at Snarling Gorehound. After a few passes I've at least gotten it into the game and it doesn't create any weird issues (like originally I was getting these "empty" Zone Change notifications for everything entering the battlefield.) But although the power/toughness and menace keywords seem to be in effect for it, the ETB trigger doesn't seem to fire off.

Here's the script I currently have:

Name:Snarling Gorehound
ManaCost:B
Types:Creature Dog
PT:1/1
K:Menace
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature+powerLE2+YouCtrl | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ DBSurveil | TriggerDescription$ Whenever another creature with power 2 or less enters the battlefield, surveil 1. (Look at the top card of your library. You may put that card in your graveyard.)
SVar:DBSurveil:DB$ Surveil | Defined$ You | Amount$ 1
Oracle:Menace\nWhenever another creature with power 2 or less enters the battlefield, surveil 1. (Look at the top crd of your library. You may put that card in your graveyard.)

I looked at a couple other cards to try to mimic the relevant parts as closely as possible (Dragon's Rage Channeler for the surveil and Saradoc, Master of Buckland for the "creature with power 2 or less ETB" stuff, but it looks like I've got something wrong because there is just no trigger happening when a 2 power or less creature enters the battlefield. Any advice would be appreciated. Thanks!

dapper lion
#

Unfortunately, we already have a PR open with this card in, you're best checking the next link to see what's being worked on:

#

Thank you for contributing though!

rose parcel
#

Cool, thanks! I was just doing this as an exercise anyway, just to try to start learning the ropes, so to speak. I definitely wouldn't trust myself to try to put anything into the "real" build. 🙂

rose parcel
#

Ah: it looks like the ValidCard parameter was the issue.