52b83a135c
-- Tutorial Messages are an ability like any other, except it can only be displayed once. Subsequent calls are ignored, the ability is removed from the game as soon as it is added -- This allows to add event triggered messages ingame. Messages are either text, or images (I don't have an image sample, but rules/classic.txt has a few examples that might help) -- only tested on Windows, although I made sure the PSP version compiles. Hopefully I also made the necessary for it to work in the touch version (touching the screen should be enough to close the tuto message) -- Room for improvement: possibility to choose a title in text mode, possibility to have some messages depending on others (e.g.: don't show message X until message Y has been shown), improve some of the abilities and triggers to give more flexibility, add events outside of game, to allow tuto messages in deck creator, etc...
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
#If you change this file, be sure to report your changes into testsuite.txt!
|
|
hidden
|
|
[INIT]
|
|
mode=mtg
|
|
[PLAYERS]
|
|
life:20
|
|
offerinterruptonphase=draw
|
|
auto=sethand:7
|
|
auto=shuffle
|
|
auto=draw:7
|
|
auto=@each my draw:draw:1
|
|
auto=maxPlay(land)1
|
|
|
|
|
|
#Lands Mana Rules
|
|
auto=lord(Plains|MyBattlefield) {T}:Add{W}
|
|
auto=lord(Island|MyBattlefield) {T}:Add{U}
|
|
auto=lord(Swamp|MyBattlefield) {T}:Add{B}
|
|
auto=lord(Mountains|MyBattlefield) {T}:Add{R}
|
|
auto=lord(Forest|MyBattlefield) {T}:Add{G}
|
|
|
|
|
|
#Mana Empties from manapool at the end of each phase
|
|
auto=@each untap:removeMana(*)
|
|
auto=@each upkeep:removeMana(*)
|
|
auto=@each draw:removeMana(*)
|
|
auto=@each firstmain:removeMana(*)
|
|
auto=@each combatbegins:removeMana(*)
|
|
auto=@each attackers:removeMana(*)
|
|
auto=@each blockers:removeMana(*)
|
|
auto=@each combatdamage:removeMana(*)
|
|
auto=@each combatEnds:removeMana(*)
|
|
auto=@each secondmain:removeMana(*)
|
|
auto=@each end:removeMana(*)
|
|
auto=@each cleanup:removeMana(*)
|
|
|
|
#reset Creature damage at the cleanup phase
|
|
auto=@each cleanup:all(*|myBattlefield) resetDamage |