Allright, found the global script from the ghost_zh/2.8/scripts.z. Had to download the latest ZC Alpha to get this file (wasn't included with ZC 2.53 which I've been using)
global script GhostZHActiveScript
{
void run()
{
InitializeGhostZHData();
while(true)
{
UpdateGhostZHData();
UpdateEWeapons();
CleanUpGhostFFCs(); // Only needed if __GH_USE_DRAWCOMBO is 0
Waitdraw();
AutoGhost();
DrawGhostFFCs();
Waitframe();
}
}
}
So I just take this global script and combine it with my other global scripts, rename it to something like "AllGlobalscripts" and forget about the GhostZHActiveScript and instead assign this new "AllGlobalscripts" as my global script, right?
Now I have read a guide how to combine Global scripts and I think it is quite simple and self explanatory when the scripts are either simple of very similar. But I still want to make sure I get it right. So let's say I was to combine a Bombs Shake Screen global script and a Shield Got Eaten Message global script with the GhostZHActiveScript. Would it look like this?
Here's the global part of the bomb script
global script Active {
void run(){
while(true){
BombsScreenShake(); //put this line into your global loop (to combine this script with your global script)
Waitframe();
}
}
}
Here's the global part of "you lost your shield" script
global script check_for_shield_vanish{
void run(){
while(true){
waitframe_give_message_if_shield_vanished(); //this is the shield code, replaces the normal waitframe
}
}
}
And here's how I'd combine them. Did I do it right? Or should I only have one waitframe there (from the shield script)?
global script AllGlobalscripts
{
void run()
{
InitializeGhostZHData();
while(true)
{
BombsScreenShake(); //put this line into your global loop (to combine this script with your global script)
waitframe_give_message_if_shield_vanished(); //this is the shield code, replaces the normal waitframe
UpdateGhostZHData();
UpdateEWeapons();
CleanUpGhostFFCs(); // Only needed if __GH_USE_DRAWCOMBO is 0
Waitdraw();
AutoGhost();
DrawGhostFFCs();
Waitframe();
}
}
}
Apologies for all these silly questions. I'm dumb as a rock when it comes to this scripting stuff. I'll probably test out the combiner at some point but first I'd like to understand this stuff myself like you suggested.
Edited by Peteo, 04 January 2020 - 08:43 AM.