-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated the demo quest anddemo npcs to use include, the new '.zs'
* extension, and to show ghost enemies behind layers. * The demo quest main script is now in the demo path, instead * of the buffer.
- Loading branch information
1 parent
a37ea37
commit 600bbfa
Showing
12 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
//Updated 27th January, 2020 | ||
|
||
#include "std.zh" | ||
#include "ghost.zh" | ||
|
||
#include "ghzhDemo/SimpleGhostZHExample.zs" | ||
#include "ghzhDemo/Dragon.zs" | ||
#include "ghzhDemo/TwinAmoeba.zs" | ||
#include "ghzhDemo/Lich.zs" | ||
#include "ghzhDemo/Iflyte.zs" | ||
#include "ghzhDemo/Julius.zs" | ||
#include "ghzhDemo/Grell.zs" | ||
|
||
|
||
// Since the script-spawned Triforce doesn't get | ||
// held up automatically... | ||
item script holdup | ||
{ | ||
void run() | ||
{ | ||
Link->Action=LA_HOLD2LAND; | ||
Link->HeldItem=20; | ||
} | ||
} | ||
|
||
|
||
|
||
// Just an extra little detail. Destroy the statues in Iflyte's room if he hits them. | ||
ffc script DestroyStatues | ||
{ | ||
void run() | ||
{ | ||
ffc iflyte=Screen->LoadFFC(1); | ||
|
||
if(Screen->D[0]>0) | ||
{ | ||
Game->SetComboData(1, 0x31, 99, 0); | ||
Screen->ComboD[115]=134; | ||
} | ||
|
||
if(Screen->D[1]>0) | ||
{ | ||
Game->SetComboData(1, 0x31, 108, 0); | ||
Screen->ComboD[124]=134; | ||
} | ||
|
||
while(true) | ||
{ | ||
if(Screen->D[0]==0 && iflyte->X<60 && iflyte->Y>84) | ||
{ | ||
Game->PlaySound(SFX_BOMB); | ||
Game->SetComboData(1, 0x31, 99, 0); | ||
Screen->ComboD[115]=134; | ||
Screen->D[0]=1; | ||
} | ||
|
||
if(Screen->D[1]==0 && iflyte->X>164 && iflyte->Y>84) | ||
{ | ||
Game->PlaySound(SFX_BOMB); | ||
Game->SetComboData(1, 0x31, 108, 0); | ||
Screen->ComboD[124]=134; | ||
Screen->D[1]=1; | ||
} | ||
|
||
Waitframe(); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters