- Extended TutorialMessages into a message system that shows up every time a new game is started.

-- instead of tutorial(my message), use message(my message) for such messages. 
-- Counting on people to use it, now that it's here ;)
This commit is contained in:
wagic.the.homebrew
2011-07-10 01:55:20 +00:00
parent e5dfb81fb9
commit e84ad44e47
3 changed files with 27 additions and 13 deletions

View File

@@ -737,11 +737,20 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
//This one is not a real ability, it displays a message on the screen. We use this for tutorials
// Triggers need to be checked above this one, as events are usuallly what will trigger (...) these messages
vector<string> splitMsg = parseBetween(s, "tutorial(", ")");
if (splitMsg.size())
{
string msg = splitMsg[1];
return NEW ATutorialMessage(card, msg);
vector<string> splitMsg = parseBetween(s, "tutorial(", ")");
if (splitMsg.size())
{
string msg = splitMsg[1];
return NEW ATutorialMessage(card, msg);
}
splitMsg = parseBetween(s, "message(", ")");
if (splitMsg.size())
{
string msg = splitMsg[1];
return NEW ATutorialMessage(card, msg, 0);
}
}
int restrictions = parseRestriction(s);