From be0d5161bb979dd054c5e91356bee51dc56d0f96 Mon Sep 17 00:00:00 2001 From: Maikel de Vries Date: Mon, 11 Jan 2016 18:45:56 +0100 Subject: [PATCH] give fireman NPC in tutorial 3&4 a skin --- planet/Tutorials.ocf/Tutorial03.ocs/Script.c | 10 +++------- planet/Tutorials.ocf/Tutorial04.ocs/Script.c | 8 ++------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/planet/Tutorials.ocf/Tutorial03.ocs/Script.c b/planet/Tutorials.ocf/Tutorial03.ocs/Script.c index 31816e22f..a62ddf1ca 100644 --- a/planet/Tutorials.ocf/Tutorial03.ocs/Script.c +++ b/planet/Tutorials.ocf/Tutorial03.ocs/Script.c @@ -116,7 +116,7 @@ private func InitVillageMain() wheel->SetStoneDoor(door); // A tree is blocking the path down in this round. - CreateObject(MovingBrick, 870, 396); + CreateObject(MovingBrick, 870, 396).Plane = 200; var tree = CreateObjectAbove(Tree_Coniferous, 890, 422); tree->SetR(90); tree.Plane = 450; @@ -197,18 +197,16 @@ private func InitAI() // A fireman NPC who extinguishes a burning cabin. var npc_fireman = CreateObjectAbove(Clonk, 200, 384); - npc_fireman->SetColor(0xff0000); npc_fireman->SetName("Hubert"); var barrel = npc_fireman->CreateContents(Barrel); barrel->SetFilled("Water", 300); npc_fireman->SetObjectLayer(npc_fireman); - npc_fireman->SetSkin(2); npc_fireman->SetDir(DIR_Left); - npc_fireman->SetDialogue("Fireman", true); + npc_fireman->SetDialogue("Fireman", true); + npc_fireman->SetAlternativeSkin("MaleDarkHair"); // A builder which tells you where to place the flagpole. var npc_builder = CreateObjectAbove(Clonk, 504, 376); - npc_builder->SetColor(0x440088); npc_builder->SetName("Kummerog"); npc_builder->CreateContents(Hammer); npc_builder->SetObjectLayer(npc_builder); @@ -227,7 +225,6 @@ private func InitAI() // Lookout. var npc_lookout = CreateObjectAbove(Clonk, 992, 296); - npc_lookout->SetColor(0x000055); npc_lookout->SetName("Larry"); npc_lookout->SetObjectLayer(npc_lookout); npc_lookout->SetDir(DIR_Left); @@ -236,7 +233,6 @@ private func InitAI() // Village head. var npc_head = CreateObjectAbove(Clonk, 840, 736); - npc_head->SetColor(0x224455); npc_head->SetName("Archibald"); npc_head->SetObjectLayer(npc_head); npc_head->SetDir(DIR_Right); diff --git a/planet/Tutorials.ocf/Tutorial04.ocs/Script.c b/planet/Tutorials.ocf/Tutorial04.ocs/Script.c index d57b9804e..8509b4742 100644 --- a/planet/Tutorials.ocf/Tutorial04.ocs/Script.c +++ b/planet/Tutorials.ocf/Tutorial04.ocs/Script.c @@ -171,16 +171,14 @@ private func InitAI() // A fireman NPC who extinguishes a burning cabin. var npc_fireman = CreateObjectAbove(Clonk, 340, 352); - npc_fireman->SetColor(0xff0000); npc_fireman->SetName("Hubert"); npc_fireman->SetObjectLayer(npc_fireman); - npc_fireman->SetSkin(2); npc_fireman->SetDir(DIR_Right); - npc_fireman->SetDialogue("Fireman"); + npc_fireman->SetDialogue("Fireman"); + npc_fireman->SetAlternativeSkin("MaleDarkHair"); // A builder which tells you where to place the flagpole. var npc_builder = CreateObjectAbove(Clonk, 504, 376); - npc_builder->SetColor(0x440088); npc_builder->SetName("Kummerog"); npc_builder->CreateContents(Hammer); npc_builder->SetObjectLayer(npc_builder); @@ -199,7 +197,6 @@ private func InitAI() // Lookout. var npc_lookout = CreateObjectAbove(Clonk, 992, 296); - npc_lookout->SetColor(0x000055); npc_lookout->SetName("Larry"); npc_lookout->SetObjectLayer(npc_lookout); npc_lookout->SetDir(DIR_Left); @@ -208,7 +205,6 @@ private func InitAI() // Village head. var npc_head = CreateObjectAbove(Clonk, 924, 672); - npc_head->SetColor(0x224455); npc_head->SetName("Archibald"); npc_head->SetObjectLayer(npc_head); npc_head->SetDir(DIR_Left);