本文整理汇总了C++中Actor_Says函数的典型用法代码示例。如果您正苦于以下问题:C++ Actor_Says函数的具体用法?C++ Actor_Says怎么用?C++ Actor_Says使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Actor_Says函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Actor_Face_Item
bool ScriptTB06::ClickedOnItem(int itemId, bool a2) {
if (itemId == 84 && !Loop_Actor_Walk_To_Item(0, 84, 12, 1, false)) {
Actor_Face_Item(0, 84, true);
Actor_Clue_Acquire(0, 65, 1, -1);
Item_Pickup_Spin_Effect(942, 341, 368);
Item_Remove_From_World(84);
Actor_Voice_Over(4160, 99);
Game_Flag_Set(519);
return true;
}
if (itemId == 108 && !Loop_Actor_Walk_To_Item(0, 108, 12, 1, false)) {
Actor_Face_Item(0, 108, true);
Actor_Clue_Acquire(0, 53, 1, -1);
Item_Remove_From_World(108);
Item_Pickup_Spin_Effect(955, 390, 368);
Actor_Says(0, 8775, 3);
Game_Flag_Set(520);
return true;
}
if (itemId == 82 && !Loop_Actor_Walk_To_Item(0, 82, 12, 1, false)) {
Actor_Face_Item(0, 82, true);
Actor_Says(0, 5285, 3);
return true;
}
if ((itemId == 103 || itemId == 104 || itemId == 105) && !Loop_Actor_Walk_To_Item(0, 103, 24, 1, false)) {
Actor_Face_Item(0, 103, true);
Actor_Voice_Over(2380, 99);
Actor_Voice_Over(2390, 99);
Actor_Voice_Over(2400, 99);
return true;
}
return false;
}
示例2: Dialogue_Menu_Clear_List
void SceneScriptNR04::sub_401DB0() {
Dialogue_Menu_Clear_List();
DM_Add_To_List(1530, 10, 5, 3);
DM_Add_To_List(1540, 3, 5, 10);
Dialogue_Menu_Appear(320, 240);
int answer = Dialogue_Menu_Query_Input();
Dialogue_Menu_Disappear();
if (answer == 1530) {
Loop_Actor_Walk_To_Actor(kActorEarlyQ, kActorMcCoy, 36, 0, false);
Actor_Change_Animation_Mode(kActorMcCoy, 23);
Actor_Change_Animation_Mode(kActorEarlyQ, 23);
Delay(1500);
Actor_Says(kActorEarlyQ, 300, 3);
Actor_Change_Animation_Mode(kActorMcCoy, 0);
Actor_Change_Animation_Mode(kActorEarlyQ, 0);
Actor_Says(kActorEarlyQ, 310, 3);
ADQ_Add(kActorMcCoy, 3450, 3);
Actor_Set_Targetable(kActorEarlyQ, false);
Actor_Set_Goal_Number(kActorEarlyQ, 217);
Actor_Clue_Lose(kActorMcCoy, kClueEarlyQsClub);
Scene_Exits_Enable();
} else if (answer == 1540) {
Actor_Says(kActorMcCoy, 8512, 15);
Actor_Says(kActorEarlyQ, 320, 12);
Actor_Says(kActorMcCoy, 3455, 13);
Actor_Says(kActorEarlyQ, 330, 15);
Actor_Says(kActorMcCoy, 3460, 12);
Actor_Says(kActorEarlyQ, 340, 12);
Actor_Says(kActorMcCoy, 3465, 12);
Actor_Says(kActorEarlyQ, 350, 16);
Actor_Set_Targetable(kActorEarlyQ, false);
Actor_Set_Goal_Number(kActorEarlyQ, 217);
Scene_Exits_Enable();
}
}
示例3: Actor_Face_Actor
void ScriptTB06::PlayerWalkedIn() {
if (!Game_Flag_Query(102) && !Game_Flag_Query(483)) {
Actor_Face_Actor(0, 21, true);
Actor_Says(0, 5290, 3);
Loop_Actor_Walk_To_XYZ(0, -10.0f, 149.0f, -631.0f, 0, 0, false, 0);
AI_Movement_Track_Pause(37);
Actor_Face_Actor(0, 37, true);
Actor_Face_Actor(37, 0, true);
Actor_Says(37, 0, 3);
Actor_Says(0, 5295, 3);
Actor_Face_Actor(37, 21, true);
Actor_Says(37, 10, 3);
AI_Movement_Track_Unpause(37);
Game_Flag_Set(483);
//return true;
return;
}
if (Game_Flag_Query(103)) {
Item_Remove_From_World(84);
Item_Remove_From_World(82);
Item_Remove_From_World(98);
//return true;
return;
}
//return false;
return;
}
示例4: Actor_Voice_Over
bool SceneScriptCT04::ClickedOnActor(int actorId) {
if (actorId == 12) {
if (Game_Flag_Query(169)) {
if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorTransient, 36, 1, false)) {
Actor_Voice_Over(290, kActorVoiceOver);
Actor_Voice_Over(300, kActorVoiceOver);
Actor_Voice_Over(310, kActorVoiceOver);
}
} else {
Actor_Set_Targetable(kActorTransient, false);
if (!Loop_Actor_Walk_To_Actor(kActorMcCoy, kActorTransient, 36, 1, false)) {
Actor_Face_Actor(kActorMcCoy, kActorTransient, true);
if (!Game_Flag_Query(137)) {
if (Game_Flag_Query(40)) {
Actor_Says(kActorMcCoy, 435, 3);
Actor_Set_Goal_Number(kActorTransient, 2);
} else {
Music_Stop(3);
Actor_Says(kActorMcCoy, 425, 3);
Actor_Says(kActorTransient, 0, 13);
sub_401D4C();
Actor_Set_Goal_Number(kActorTransient, 2);
}
Game_Flag_Set(137);
} else {
Actor_Face_Actor(kActorMcCoy, kActorTransient, true);
Actor_Says(kActorMcCoy, 435, 3);
}
}
}
return true;
}
return false;
}
示例5: Actor_Set_Goal_Number
bool SceneScriptRC01::ClickedOnItem(int itemId, bool a2) {
if (itemId == kItemChromeDebris) {
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault);
if (!Loop_Actor_Walk_To_Item(kActorMcCoy, kItemChromeDebris, 36, true, false)) {
Actor_Face_Item(kActorMcCoy, kItemChromeDebris, true);
Actor_Clue_Acquire(kActorMcCoy, kClueChromeDebris, true, -1);
Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true);
Actor_Says(kActorOfficerLeary, 20, 12);
Game_Flag_Set(kFlagRC01ChromeDebrisTaken);
Item_Remove_From_World(kItemChromeDebris);
Item_Pickup_Spin_Effect(938, 426, 316);
I_Sez("JM: Chrome...is that what that is?");
Actor_Says(kActorMcCoy, 4505, 13);
ADQ_Flush();
ADQ_Add(kActorOfficerLeary, 30, -1);
ADQ_Add(kActorMcCoy, 4510, 13);
I_Sez("JM: It's hard to imagine that thing on either a car or a horse.");
I_Sez("MG: McCoy! What a witty chap...");
I_Sez("JM: He keeps me chuckling non-stop!\n");
Loop_Actor_Walk_To_Actor(kActorOfficerLeary, kActorMcCoy, 36, 0, false);
}
return true;
}
return false;
}
示例6: Actor_Face_Object
bool SceneScriptBB07::ClickedOn3DObject(const char *objectName, bool a2) {
if (Object_Query_Click("PRINTER", objectName)) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -472.63f, 252.59f, -1086.81f, 0, false, false, 0)) {
Actor_Face_Object(kActorMcCoy, "PRINTER", true);
if ( Game_Flag_Query(kFlagBB07ElectricityOn)
&& !Game_Flag_Query(kFlagBB07PrinterChecked)
) {
Actor_Voice_Over(130, kActorVoiceOver);
Item_Pickup_Spin_Effect(941, 439, 242);
Actor_Voice_Over(140, kActorVoiceOver);
Game_Flag_Set(kFlagBB07PrinterChecked);
Actor_Clue_Acquire(kActorMcCoy, kClueDNASebastian, true, -1);
} else if (Game_Flag_Query(kFlagBB07ElectricityOn)
&& Game_Flag_Query(kFlagBB07PrinterChecked)
) {
Actor_Face_Object(kActorMcCoy, "PRINTER", true);
Actor_Says(kActorMcCoy, 8570, 13);
} else {
Actor_Face_Object(kActorMcCoy, "PRINTER", true);
Actor_Says(kActorMcCoy, 8575, 13);
}
}
}
return false;
}
示例7: Actor_Clue_Acquire
void ScriptNR07::sub_401EF4() {
Actor_Clue_Acquire(0, 96, 1, -1);
Actor_Says(0, 3625, 19);
Actor_Says(3, 570, 30);
Actor_Says_With_Pause(3, 580, 1.0f, 31);
Actor_Says(0, 3630, 13);
Actor_Says_With_Pause(3, 590, 1.0f, 30);
Actor_Says(3, 600, 30);
Actor_Start_Speech_Sample(0, 3640);
Loop_Actor_Walk_To_XYZ(0, -109.0f, -73.0f, -89.0f, 0, 0, false, 0);
Actor_Face_Actor(0, 3, true);
Actor_Face_Actor(3, 0, true);
Game_Flag_Set(638);
Actor_Clue_Acquire(0, 91, 1, 3);
int v0 = Actor_Query_Friendliness_To_Other(3, 0);
if (!Game_Flag_Query(47) && v0 < 40) {
sub_4018D4();
return;
}
if (v0 < 36) {
sub_401A10();
return;
}
sub_4020F0();
}
示例8: Object_Query_Click
bool SceneScriptRC01::ClickedOn3DObject(const char *objectName, bool a2) {
if (Object_Query_Click("BARICADE01", objectName)
|| Object_Query_Click("BARICADE03", objectName)
|| Object_Query_Click("BARICADE04", objectName)
|| Object_Query_Click("70_1", objectName)
|| Object_Query_Click("70_2", objectName)
|| Object_Query_Click("70_3", objectName)
|| Object_Query_Click("70_5", objectName)
|| Object_Query_Click("70_6", objectName)
) {
interrogateCrowd();
return true;
}
if (Object_Query_Click("HYDRANT02", objectName)) {
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "HYDRANT02", 60, true, false)) {
if (Actor_Clue_Query(kActorMcCoy, kCluePaintTransfer)) {
Actor_Says(kActorMcCoy, 6975, kAnimationModeTalk);
} else {
Actor_Face_Object(kActorMcCoy, "HYDRANT02", true);
Actor_Voice_Over(1880, kActorVoiceOver);
Actor_Voice_Over(1890, kActorVoiceOver);
I_Sez("JM: That McCoy--he's one funny guy! Jet-black fire truck, hehehehe...");
Actor_Clue_Acquire(kActorMcCoy, kCluePaintTransfer, true, -1);
}
}
return true;
}
if (Object_Query_Click("DOOR LEFT", objectName)) {
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "DOOR LEFT", 48, true, false)) {
Actor_Face_Object(kActorMcCoy, "DOOR LEFT", true);
if (!Actor_Clue_Query(kActorMcCoy, kClueDoorForced2) && Actor_Query_In_Set(kActorOfficerLeary, kSetRC01) && Global_Variable_Query(kVariableChapter) > 0) {
Actor_Set_Goal_Number(kActorOfficerLeary, kGoalOfficerLearyDefault);
Actor_Face_Actor(kActorOfficerLeary, kActorMcCoy, true);
Actor_Says(kActorOfficerLeary, 0, 12);
Actor_Says(kActorMcCoy, 4495, 13);
Actor_Clue_Acquire(kActorMcCoy, kClueDoorForced2, true, kActorOfficerLeary);
} else {
Actor_Says(kActorMcCoy, 8570, 14);
}
Actor_Clue_Acquire(kActorMcCoy, kClueDoorForced1, true, -1);
}
return true;
}
if (Object_Query_Click("T-CAN01", objectName)) {
if (!Loop_Actor_Walk_To_Scene_Object(kActorMcCoy, "T-CAN01", 24, true, false)) {
Actor_Face_Object(kActorMcCoy, "T-CAN01", true);
Actor_Voice_Over(1810, kActorVoiceOver);
Actor_Voice_Over(1820, kActorVoiceOver);
}
return true;
}
return false;
}
示例9: Actor_Face_Object
bool SceneScriptCT01::ClickedOn3DObject(const char *objectName, bool a2) {
// if ("ASIANSITTINGANDEATI" == objectName) { //bug?
if (Object_Query_Click("ASIANSITTINGANDEATI", objectName)) {
Actor_Face_Object(kActorMcCoy, "ASIANSITTINGANDEATI", true);
Actor_Says(kActorMcCoy, 365, 13);
Actor_Says(kActorHowieLee, 160, 13);
return true;
}
return false;
}
示例10: Actor_Face_Actor
void AIScriptFreeSlotB::ClickedByPlayer() {
if (Actor_Query_Goal_Number(kActorFreeSlotB) != 599)
return; //false;
Actor_Face_Actor(kActorMcCoy, kActorFreeSlotB, 1);
if (Random_Query(1, 2) == 1) {
Actor_Says(kActorMcCoy, 8655, 16);
} else {
Actor_Says(kActorMcCoy, 8665, 16);
}
}
示例11: Actor_Query_XYZ
bool SceneScriptUG10::ClickedOnExit(int exitId) {
float x, y, z;
Actor_Query_XYZ(kActorMcCoy, &x, &y, &z);
if (exitId == 0) {
if ((!Game_Flag_Query(474) && x > 125.0f) || Game_Flag_Query(474)) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 235.0f, 1.15f, 29.0f, 0, 1, false, 0)) {
Game_Flag_Set(317);
Set_Enter(74, kSceneUG01);
return true;
}
} else if (!Game_Flag_Query(474)) {
Actor_Says(kActorMcCoy, 8521, 3);
}
} else if (exitId == 1) {
if ((!Game_Flag_Query(474) && x < 120.0f) || Game_Flag_Query(474)) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -1.83f, 1.15f, -410.8f, 0, 1, false, 0)) {
Actor_Face_Heading(kActorMcCoy, 0, false);
Loop_Actor_Travel_Stairs(kActorMcCoy, 9, 1, 0);
Loop_Actor_Walk_To_XYZ(kActorMcCoy, -92.0f, 81.83f, -652.0f, 0, 0, false, 0);
Game_Flag_Set(337);
Set_Enter(76, kSceneUG03);
return true;
}
} else if (!Game_Flag_Query(474)) {
Actor_Says(kActorMcCoy, 6165, 3);
}
} else if (exitId == 2) {
if ((!Game_Flag_Query(474) && x < 120.0f) || Game_Flag_Query(474)) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -385.0f, 1.15f, 57.44f, 0, 1, false, 0)) {
Actor_Face_Heading(kActorMcCoy, 1001, false);
Loop_Actor_Travel_Ladder(kActorMcCoy, 1, 1, 0);
Game_Flag_Set(424);
Set_Enter(80, kSceneUG07);
return true;
}
} else if (!Game_Flag_Query(474)) {
Actor_Says(kActorMcCoy, 6165, 3);
}
} else if (exitId == 3) {
if ((!Game_Flag_Query(474) && x < 120.0f) || Game_Flag_Query(474)) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 2.5f, 1.15f, 405.0f, 0, 1, false, 0)) {
Game_Flag_Set(347);
Set_Enter(86, kSceneUG14);
return true;
}
} else if (!Game_Flag_Query(474)) {
Actor_Says(kActorMcCoy, 6165, 3);
}
}
return false;
}
示例12: Actor_Says
void ScriptNR07::sub_402510() {
Actor_Says(0, 3690, 14);
Actor_Start_Speech_Sample(3, 750);
Loop_Actor_Walk_To_XYZ(0, -109.0f, -73.0f, -89.0f, 0, 0, false, 0);
Actor_Face_Actor(0, 3, true);
Actor_Face_Actor(3, 0, true);
Actor_Says(0, 3695, 15);
Actor_Modify_Friendliness_To_Other(3, 0, 5);
if (Game_Flag_Query(47)) {
sub_401A10();
} else {
sub_4018D4();
}
}
示例13: Actor_Says
bool SceneScriptUG01::ClickedOn3DObject(const char *objectName, bool a2) {
if (Object_Query_Click("PIPES_FG_LFT", objectName)) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -9.0f, -50.13f, -148.0f, 0, 1, false, 0)
&& !Game_Flag_Query(kFlagUG01SteamOff)
) {
Actor_Says(kActorMcCoy, 8525, 13);
Scene_Loop_Set_Default(3);
Scene_Loop_Start_Special(kSceneLoopModeOnce, 2, true);
Game_Flag_Set(kFlagUG01SteamOff);
} else {
Actor_Says(kActorMcCoy, 8525, 13);
}
}
return false;
}
示例14: Loop_Actor_Walk_To_XYZ
bool SceneScriptBB03::ClickedOnExit(int exitId) {
if (exitId == 0) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 176.0f, 60.16f, -64.0f, 0, 1, false, 0)) {
Loop_Actor_Walk_To_XYZ(kActorMcCoy, 176.0f, 60.16f, 0.0f, 0, 0, false, 0);
Game_Flag_Set(283);
Ambient_Sounds_Remove_All_Non_Looping_Sounds(1);
Ambient_Sounds_Remove_All_Looping_Sounds(1);
Set_Enter(1, kSceneBB04);
}
return true;
}
if (exitId == 1) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 20.0f, 60.16f, 0.0f, 0, 1, false, 0)) {
Game_Flag_Set(281);
Ambient_Sounds_Remove_All_Non_Looping_Sounds(1);
Ambient_Sounds_Remove_All_Looping_Sounds(1);
Set_Enter(1, kSceneBB02);
}
return true;
}
if (exitId == 2) {
if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 204.0f, 60.16f, -164.0f, 0, 1, false, 0)) {
if (Global_Variable_Query(kVariableChapter) < 4) {
if (Actor_Query_Goal_Number(kActorSebastian) == 200) {
Actor_Says(kActorSebastian, 70, 3);
Actor_Says(kActorMcCoy, 7010, 13);
Actor_Says(kActorSebastian, 80, 3);
Actor_Says(kActorMcCoy, 7015, 12);
Actor_Says(kActorSebastian, 90, 3);
Actor_Says(kActorMcCoy, 7020, 14);
Actor_Says(kActorSebastian, 100, 3);
Actor_Says(kActorMcCoy, 7025, 15);
Actor_Says(kActorSebastian, 110, 3);
Actor_Set_Targetable(kActorBryant, false);
Actor_Set_Targetable(kActorGeneralDoll, false);
}
Game_Flag_Set(285);
Ambient_Sounds_Remove_All_Non_Looping_Sounds(1);
Ambient_Sounds_Remove_All_Looping_Sounds(1);
Set_Enter(22, kSceneBB05);
} else {
Actor_Says(kActorMcCoy, 8522, 3);
}
}
return true;
}
return false;
}
示例15: sub_402044
void SceneScriptMA02::PlayerWalkedIn() {
if (Game_Flag_Query(34)) {
sub_402044();
}
if (Game_Flag_Query(36)) {
Loop_Actor_Walk_To_XYZ(kActorMcCoy, -148.12f, -144.13f, 34.27f, 0, 1, false, 0);
}
if (Global_Variable_Query(1) == 4 && !Game_Flag_Query(655)) {
Game_Flag_Set(623);
Game_Flag_Set(655);
sub_401E4C();
Loop_Actor_Walk_To_XYZ(kActorMcCoy, 23.19f, -144.12f, 378.27f, 0, 0, false, 0);
Game_Flag_Set(33);
Set_Enter(52, 52);
// return true;
return;
}
if (Global_Variable_Query(1) == 5 && !Game_Flag_Query(654)) {
if (Game_Flag_Query(653)) {
Actor_Says(kActorMcCoy, 2390, 0);
Music_Play(2, 25, 0, 3, -1, 0, 0);
} else {
Actor_Says(kActorMcCoy, 2385, 3);
}
Game_Flag_Set(654);
Autosave_Game(3);
}
if (Global_Variable_Query(1) < 4 && !Game_Flag_Query(36) && Actor_Query_Goal_Number(kActorMaggie) != 2) {
Actor_Set_Goal_Number(kActorMaggie, 1);
if (!Game_Flag_Query(60)) {
Game_Flag_Set(60);
Actor_Face_Actor(kActorMcCoy, kActorMaggie, true);
Actor_Voice_Over(1210, kActorVoiceOver);
if (!Game_Flag_Query(378)) {
Actor_Voice_Over(1220, kActorVoiceOver);
}
Actor_Voice_Over(1230, kActorVoiceOver);
if (!Game_Flag_Query(378)) {
Actor_Voice_Over(1240, kActorVoiceOver);
Actor_Voice_Over(1250, kActorVoiceOver);
}
}
}
Game_Flag_Reset(36);
Game_Flag_Reset(34);
//return false;
return;
}