70 lines
1.5 KiB
Plaintext
70 lines
1.5 KiB
Plaintext
#TouhouDanmakufu[Plural]
|
|
#ScriptVersion[3]
|
|
#Title["Boss Plural"]
|
|
#Text["..."]
|
|
#System["script/KevinSystem/Kevin_System.txt"]
|
|
//#Player["script/KevinPackage/KevinScript_Players/PankevKouda/KevKou_Main.dnh", "script/KevinPackage/KevinScript_Players/MariHousui/MariHousui_Main.dnh"]
|
|
|
|
let csd = GetCurrentScriptDirectory();
|
|
|
|
let obj = ObjEnemyBossScene_Create();
|
|
|
|
#include "script/KevinSystem/Universal_Lib.txt"
|
|
#include "script/game/Stage_Background.dnh"
|
|
|
|
@Event{
|
|
|
|
}
|
|
|
|
@Initialize{
|
|
|
|
if(!IsCommonDataAreaExists("PIV")){
|
|
CreateCommonDataArea("PIV");
|
|
SetAreaCommonData("PIV", "currentvalue", 10000);
|
|
}
|
|
else{}
|
|
|
|
SetAutoDeleteObject(true);
|
|
_ScrollBackground();
|
|
PluralTask();
|
|
|
|
}
|
|
|
|
@MainLoop{
|
|
yield;
|
|
}
|
|
|
|
@Finalize
|
|
{
|
|
}
|
|
|
|
|
|
/* TO DO:
|
|
|
|
+ Single *syncing* - ensure that the boss stays at the same position
|
|
*/
|
|
// Task to handle the plural's boss scene
|
|
|
|
task PluralTask(){
|
|
// Registering individual singles
|
|
|
|
ObjEnemyBossScene_Add(obj, 0, csd ~ "Non1.dnh");
|
|
ObjEnemyBossScene_Add(obj, 0, csd ~ "Spell1.dnh");
|
|
ObjEnemyBossScene_Add(obj, 0, csd ~ "Non2.dnh");
|
|
ObjEnemyBossScene_Add(obj, 0, csd ~ "Spell2.dnh");
|
|
ObjEnemyBossScene_Add(obj, 0, csd ~ "Non3.dnh");
|
|
ObjEnemyBossScene_Add(obj, 0, csd ~ "Spell3.dnh");
|
|
|
|
// Loading and registering the boss scene
|
|
ObjEnemyBossScene_LoadInThread(obj);
|
|
ObjEnemyBossScene_Regist(obj);
|
|
|
|
while(!Obj_IsDeleted(obj)){
|
|
yield;
|
|
}
|
|
|
|
_ExplosionEffect(GetCommonData("Boss Position X", STG_WIDTH/2), GetCommonData("Boss Position Y", STG_WIDTH/2), PetalEffect);
|
|
SetAutoDeleteObject(true);
|
|
wait(120);
|
|
CloseScript(GetOwnScriptID());
|
|
} |