This commit is contained in:
Charles 2001-05-02 21:51:15 +00:00
parent 6cc4ff36e7
commit befa6c888e
3 changed files with 88 additions and 0 deletions

17
data/Scripts/ch1l4_01.scr Normal file
View File

@ -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;

17
data/Scripts/ch1l4_02.scr Normal file
View File

@ -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;

54
source/friend/fkrusty.cpp Normal file
View File

@ -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 <ACTOR_KRUSTY_Anim.h>
#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;
}
}
}
}