#charset "us-ascii"
#include
#include
/*
* Mr. Jingles (Rat) Created by : Mitch Roberts Date: 10/8/2016 Created to be
* a companion and clue giver to player
*
* Maintenance log:
* 10/9/2016 Added Shuffled event list for some random speech MR
* 11/10/2016 Added AccompanyingState for travel with player MR
* 11/10/2016 Created .t file for mrJingjes MR
* 11/11/2016 Added image to mrJingles MR
*/
//An NPC that can give you clues as you traverse the game
mrJingles: Actor
'rat'
'rat'
desc = "
Just an ordinary looking rat, but he seems like he wants to talk?"
bulk = 2
location = TownSquare
destination = AccompanyingState
isHim = true
dexterity = 10
globalParamName = 'rat'
//Make references to mrJingles use proper name instead of rat
makeProper(properName)
{
name = properName;
isProperName = true;
initializeVocabWith(properName.toLower());
return name;
}
//Have mrJingles change state to discovered
dobjFor(TalkTo)
{
verify() { }
check()
{
if (mrJingles.isHim)
{
moveIntoForTravel(LeatherPouch);
setCurState(mrJinglesDiscovered);
}
}
}
;
//Once discovered mrJingles will accompany player
+mrJinglesDiscovered : AccompanyingState
specialDesc = " Mr. Jingles is accompanying you. "
stateDesc = " Mr. Jingles is with you. "
accompanyTravel(leadActor, conn)
{ return leadActor == gPlayerChar; }
;
//Random conversation for mrJingles
+ HelloTopic, EventList
[
'The rat looks up at you. Hello, I am
<> . ',
'It is nice to finally have someone to talk to.',
'Be careful in this town, it can be very dangerous.'
]
;
+ AskAboutTopic @Merrick
topicResponse()
{
"You should find Merrick.\"
He says in an excited tone
He has something
very useful!
",
'I hear that Merrick and Endora were once lovers.
';
}
;
+ mrJinglesSouthGateAgenda: ConvAgendaItem
isReady = true
invokeItem()
{
'Mr.Jingles says, "This Gate is quite beautiful. I wonder what the S is for?"';
}
;