From befa6c888e1b76438b87cbbc37729a2da86e1036 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 2 May 2001 21:51:15 +0000 Subject: [PATCH] --- data/Scripts/ch1l4_01.scr | 17 ++++++++++++ data/Scripts/ch1l4_02.scr | 17 ++++++++++++ source/friend/fkrusty.cpp | 54 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 data/Scripts/ch1l4_01.scr create mode 100644 data/Scripts/ch1l4_02.scr create mode 100644 source/friend/fkrusty.cpp diff --git a/data/Scripts/ch1l4_01.scr b/data/Scripts/ch1l4_01.scr new file mode 100644 index 000000000..f1ff88846 --- /dev/null +++ b/data/Scripts/ch1l4_01.scr @@ -0,0 +1,17 @@ +#include data/scripts/defs/defs.scr + +#include data/scripts/defs/charanim.scr +#include data/scripts/defs/items.scr +#include data/scripts/defs/response.scr +#include data/scripts/defs/trans.scr + + +_setText(CHAR_KRABS,STR__INGAME__CH1__L4__KRUSTY1); +_setResponseOptions(QUESTION_OK); +do +{ + pause; +} +while(_getResponse()==ANSWER_NONE); + +stop; diff --git a/data/Scripts/ch1l4_02.scr b/data/Scripts/ch1l4_02.scr new file mode 100644 index 000000000..62e63373b --- /dev/null +++ b/data/Scripts/ch1l4_02.scr @@ -0,0 +1,17 @@ +#include data/scripts/defs/defs.scr + +#include data/scripts/defs/charanim.scr +#include data/scripts/defs/items.scr +#include data/scripts/defs/response.scr +#include data/scripts/defs/trans.scr + + +_setText(CHAR_KRABS,STR__INGAME__CH1__L4__KRUSTY2); +_setResponseOptions(QUESTION_OK); +do +{ + pause; +} +while(_getResponse()==ANSWER_NONE); + +stop; diff --git a/source/friend/fkrusty.cpp b/source/friend/fkrusty.cpp new file mode 100644 index 000000000..23f8b8dee --- /dev/null +++ b/source/friend/fkrusty.cpp @@ -0,0 +1,54 @@ +/*========================================================================= + + fkrusty.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2000 Climax Development Ltd + +===========================================================================*/ + +#ifndef __FRIEND_FKRUSTY_H__ +#include "friend\fkrusty.h" +#endif + +#ifndef __UTILS_HEADER__ +#include "utils\utils.h" +#endif + +#ifndef __GAME_CONVO_H__ +#include "game\convo.h" +#endif + +#ifndef __ANIM_KRUSTY_HEADER__ +#include +#endif + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void CNpcKrustyFriend::postInit() +{ + m_conversation = SCRIPTS_CH1L4_01_DAT; +} + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void CNpcKrustyFriend::startConderversation() +{ + if ( m_data[this->m_type].canTalk ) + { + if( !CConversation::isActive() ) + { + CConversation::trigger( m_conversation ); + + if ( m_conversation == SCRIPTS_CH1L4_01_DAT ) + { + m_conversation = SCRIPTS_CH1L4_02_DAT; + } + } + } +} \ No newline at end of file