Jump to content

Photo

Newbie boss troubles


  • Please log in to reply
2 replies to this topic

#1 RingleaderStudios

RingleaderStudios

    Initiate

  • Members

Posted 09 January 2019 - 09:36 AM

im trying to use the newbie boss script and it says i need ghost zha active script in your active global script slot but idk how to do that and if someone could explain how the enemy size and the animations work that would be great thx.



#2 Lüt

Lüt

    Germanize

  • Members
  • Real Name:Steve
  • Location:Chicago

Posted 09 January 2019 - 12:20 PM

ghost.zh is a script library that serves as a foundation for building custom enemies. You can download the package here if you don't currently have it.

Once you open the zip, the folder "header" can be unpacked to your root ZC directory, so that the ghost.zh file is with the rest of your program files and the "ghost_zh" subdirectory follows your ZC directory. (It doesn't have to be like that, but it's easiest for script import lines and ZQuest loading menus to have all your scripts in the same directory as your quest.)

Then at the very top of your main script file, you'll have to type this line:
 
import "ghost.zh"

That loads the ghost.zh library into your quest. (If you had unpacked the folder "header" into its own subdirectory, you'd have to type import "header/ghost.zh" instead.)

Also, ghost.zh is dependent on std.zh, so if you don't also have this line at the top of your main script file already, add it:
 
import "std.zh"

This file should have come with your ZC install, so you shouldn't need to download it.

Then your global script will need to have these ghost components in these positions:
 
global script RingleaderStudios
{
    void run()
    {
        StartGhostZH();
	while(true)
	{
	    UpdateGhostZH1();
	    Waitdraw();
	    UpdateGhostZH2();
	    Waitframe();
	}
    }
}

If you don't have any other global script components, you can just paste that in your script file and be done with it. (You can change the script name from RingleaderStudios to whatever you want, it's just for example purposes.)

However, before all that, ghost.zh itself may need some extra configuration depending on the tileset you're using. I'm not familiar with the GB sets, so I can't really help with specifics. It may simply work out-of-the-box. Either way, there's a helpful (but fast-paced) video tutorial here. (edit: it seems youtube has just removed all annotations as of Jan 15, rendering this video largely useless.)

Anyway, once everything's set up, go to "Quest" -> "Scripts" -> "Compile" and click the "Import" button. It'll warn you about erasing the buffer, click "Yes," then select your main script file from the file selection menu. Click "Compile" - it should say "Success!" - then go to the "Global" tab, select "active" in the left window, select "RingleaderStudios" (or whatever you named your global script) in the right window, and click the "<<" arrow between the two windows to load your global script into the global slot. Ignore the "GhostZHActiveScript" in the right window and click "OK."

So that's how you get ghost.zh functional. What you do with it after that, or other scripts that depend on it, is up to you. I'm not familiar with Newbie Boss, so I can't help you there, but this should allow you to start figuring it out.

Edited by Lüt, 16 January 2019 - 03:18 PM.

  • Avaro likes this

#3 RingleaderStudios

RingleaderStudios

    Initiate

  • Members

Posted 09 January 2019 - 07:13 PM

thanks this should help 




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users