(I actually spent half an hour fiddling with my first interruption script, because the tutorial on the blog doesn't mention the any command to end interrupt sequences. Then I checked the "Counterspell" script, was happy to find the "endinterrupt" keyword, and fiddled for another 30 minutes with it before I found out that this keyword is actually wrong and the parser doesn't understand it at all, it just so happens that the Counterspell script (and two others) work nevertheless because in these scripts the interruption doesn't need to end. I wholeheartedly agree with the passage in wololo's mail in which he says that we could use a "real" test suite tutorial / reference.
27 lines
704 B
Plaintext
27 lines
704 B
Plaintext
#NAME: Symbiotic Wurm token production
|
|
#DESC: Symbiotic Wurm weas reported to produce
|
|
#DESC: its tokens when put into play, and not
|
|
#DESC: when pit into a graveyard. This script
|
|
#DESC: shows that Symbiotic Wurm currently works
|
|
#DESC: correctly. It summons Symbiotic Wurm, then
|
|
#DESC: removes all creatures with Wrath of God,
|
|
#DESC: then checks whether the tokens have been
|
|
#DESC: created.
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
# Symbiotic Wurm = ID 39925
|
|
hand:39925,Wrath of God
|
|
manapool:{W}{W}{W}{W}{G}{G}{G}{G}{G}{G}{G}{G}
|
|
[PLAYER2]
|
|
[DO]
|
|
39925
|
|
Wrath of God
|
|
[ASSERT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:-39925,-39925,-39925,-39925,-39925,-39925,-39925
|
|
graveyard:39925,Wrath of God
|
|
[PLAYER2]
|
|
[END]
|