This commit is contained in:
parent
6cc4ff36e7
commit
befa6c888e
17
data/Scripts/ch1l4_01.scr
Normal file
17
data/Scripts/ch1l4_01.scr
Normal 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
17
data/Scripts/ch1l4_02.scr
Normal 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
54
source/friend/fkrusty.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user