Skip to content

Commit

Permalink
* Updated the demo quest anddemo npcs to use include, the new '.zs'
Browse files Browse the repository at this point in the history
*	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
PlanNineFromOuterSpace committed Jan 27, 2020
1 parent a37ea37 commit 600bbfa
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 3 deletions.
Binary file removed demo/ghost_zh_demo.qst
Binary file not shown.
Binary file added demo/ghost_zh_demo_2.8.12.qst
Binary file not shown.
68 changes: 68 additions & 0 deletions demo/ghostdemo.zs
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.
4 changes: 4 additions & 0 deletions header/ghostZHChangelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Version 2.8.12

2.8.12
(2020-27-JAN)
* 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.
* Try to fix bugs caused by changes in 2.8.10.
* Added __GH_ETHEREAL, defaulted to 1 to user settings.
* This forces ffcs used to control ghost npcs to Ethereal.
Expand Down
11 changes: 8 additions & 3 deletions header/ghost_zh/2.8/ghost2_global.zh
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,14 @@ void AutoGhost()
enemy=Screen->LoadNPC(i);

// ID out of range??
if(enemy->ID<AUTOGHOST_MIN_ENEMY_ID || enemy->ID>AUTOGHOST_MAX_ENEMY_ID)
continue;

if(enemy->ID<AUTOGHOST_MIN_ENEMY_ID)
{
continue;
}
if(enemy->ID>AUTOGHOST_MAX_ENEMY_ID)
{
continue;
}

if(__GH_ALWAYS_USE_NAME) // Read from name
{
Expand Down

0 comments on commit 600bbfa

Please sign in to comment.