(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
409 B
Plaintext
27 lines
409 B
Plaintext
#NAME: Walking Wall
|
|
#DESC: Walking Wall was reported to be
|
|
#DESC: unable to attack even after its
|
|
#DESC: abilit ywas used. The script shows
|
|
#DESC: that this bug doesn't exist an more.
|
|
[INIT]
|
|
firstmain
|
|
[PLAYER1]
|
|
inplay:Walking Wall
|
|
manapool:{3}
|
|
[PLAYER2]
|
|
[DO]
|
|
Walking Wall
|
|
next
|
|
next
|
|
Walking Wall
|
|
next
|
|
next
|
|
next
|
|
[ASSERT]
|
|
combatend
|
|
[PLAYER1]
|
|
inplay:Walking Wall
|
|
[PLAYER2]
|
|
life:17
|
|
[END]
|