Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================================
- //
- // Marisa Boss Battlev1.5
- // All rights reserved at ReiRei \ Yuyuko-sama
- // at MotK. Do not use this Script or
- // you will pay the price with my kitty lawyer!
- //
- //
- //==============================================
- #TouhouDanmakufu
- #Title[ Marisa Nonspell #01 ]
- #Text[ an IN nonspell. May be harder or weaker for the player
- ( That is, if your a skilled player ) ]
- #Player[ player\Sanae\SanaeA.txt, player\Sanae\SanaeB.txt ]
- #ScriptVersion[ 2 ]
- /////////////////////////////////////////////////////////////
- script_enemy_main {
- /////////////////////////////////////////////////////////////
- #include_function".\DATA\lib_anime_Marisa.txt";
- #include_function".\SHOT\Index_UserShot.txt";
- let CSD = GetCurrentScriptDirectory;
- let Boss_Marisa = CSD ~ "SPRITE\boss_Marisa.png";
- let UserShot = CSD ~ "SHOT\supershot.txt";
- let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
- let Shot02 = CSD ~ "SOUND\SE\Shot4.wav";
- let ShotFam = CSD ~ "SOUND\SE\Weird.wav";
- let Mari = 0;
- let MariMovement = 0;
- @Initialize {
- LoadGraphic( Boss_Marisa );
- SetX( GetCenterX );
- SetY( GetCenterY - 100 );
- LoadSE( Shot01 );
- LoadSE( Shot02 );
- LoadSE( ShotFam );
- SetLife( 2600 );
- SetTimer( 65 );
- SetDamageRate( 70, 250 );
- LoadUserShotData( UserShot );
- }
- @MainLoop {
- SetCollisionA( GetX, GetY, 32 );
- SetCollisionB( GetX, GetY, 16 );
- yield;
- Mari++;
- MariMovement++;
- if( Mari == 60 ){
- CreateEnemyFromScript( "FamiliarA", GetEnemyX, GetEnemyY, 0, 0, 0 );
- CreateEnemyFromScript( "FamiliarB", GetEnemyX, GetEnemyY, 0, 0, 180 );
- CreateEnemyFromScript( "FamiliarC", GetEnemyX, GetEnemyY, 0, 0, 120 );
- CreateEnemyFromScript( "FamiliarD", GetEnemyX, GetEnemyY, 0, 0, 90 );
- CreateEnemyFromScript( "FamiliarE", GetEnemyX, GetEnemyY, 0, 0, 45 );
- LoadSE( ShotFam );
- SetAction( ACT_SHOT_B, 30 );
- }
- if( MariMovement == 240 ){
- }
- @DrawLoop {
- DrawBoss( Boss_Marisa );
- if( GetSpeedX()<0 ) { SetAction( ACT_MOVE, 0 ) }
- if( GetSpeedX()>0 ) { SetAction( ACT_MOVE, 0 ) }
- }
- @Finalize {
- DeleteGraphic( Boss_Marisa );
- }
- script_enemy FamiliarA {
- #include_function".\SHOT\Index_UserShot.txt";
- let CSD = GetCurrentScriptDirectory;
- let MariFamA = CSD ~ "SPRITE\Familiar.png";
- let UserShot = CSD ~ "SHOT\supershot.txt";
- let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
- let MariFami = 0;
- let FamMove = 0;
- let FamDir = 0;
- let FamR = 140;
- let MariTime = 0;
- @Initialize {
- LoadGraphic( MariFamA );
- LoadSE( Shot01 );
- SetLife( 9999 );
- SetDamageRate( 1, 10 );
- LoadUserShotData( UserShot );
- }
- @MainLoop {
- SetCollisionA( GetX, GetY, 16 );
- SetCollisionB( GetX, GetY, 16 );
- yield;
- MariFami++;
- FamMove++;
- if( MariFam == 120 ){
- PlaySE( Shot01 );
- CreateShotA( 1, GetX, GetY, 10 );
- SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_RED );
- SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_RED );
- }
- FireShot( 1 );
- }
- if( MariFam == 120 ) { MariFam = 115 }
- if( FamMove == 60 ){
- loop{
- SetMovePosition03( GetEnemyX+FamR*cos( FamDir ) GetEnemyY+FamR*sin( FamDir ), 20, 10 );
- }
- }
- }
- @DrawLoop {
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamA );
- SetGraphicAngle( 0, 0, MariTime*4 );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- }
- @Finalize {
- }
- script_enemy FamiliarB {
- #include_function".\SHOT\Index_UserShot.txt";
- let CSD = GetCurrentScriptDirectory;
- let MariFamB = CSD ~ "SPRITE\Familiar.png";
- let UserShot = CSD ~ "SHOT\supershot.txt";
- let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
- let FamAngle = GetArgument;
- let MariFami = 0;
- let FamMove = 0;
- let FamDir = 0;
- let FamR = 140;
- let FamSpin = 0;
- let MariTime = 0;
- @Initialize {
- LoadGraphic( MariFamB );
- LoadSE( Shot01 );
- SetLife( 9999 );
- SetDamageRate( 1, 10 );
- LoadUserShotData( UserShot );
- }
- @MainLoop {
- SetCollisionA( GetX, GetY, 16 );
- SetCollisionB( GetX, GetY, 16 );
- yield;
- MariFami++;
- FamMove++;
- if( MariFam == 120 ){
- PlaySE( Shot01 );
- CreateShotA( 1, GetX, GetY, 10 );
- SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_BLUE );
- SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_BLUE );
- }
- FireShot( 1 );
- }
- if( MariFam == 120 ) { MariFam = 115 }
- if( FamMove == 60 ){
- loop{
- SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
- }
- }
- }
- @DrawLoop {
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamB );
- SetGraphicAngle( 0, 0, MariTimer*4 );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamB );
- SetGraphicAngle( 0, 0, FamSpin );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- FamSpin - = 10;
- }
- @Finalize {
- }
- script_enemy FamiliarC {
- #include_function".\SHOT\Index_UserShot.txt";
- let CSD = GetCurrentScriptDirectory;
- let MariFamC = CSD ~ "SPRITE\Familiar.png";
- let UserShot = CSD ~ "SHOT\supershot.txt";
- let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
- let FamAngle = GetArgument;
- let MariFami = 0;
- let FamMove = 0;
- let FamDir = 0;
- let FamR = 140;
- let FamSpin = 0;
- let MariTime = 0;
- @Initialize {
- LoadGraphic( MariFamC );
- LoadSE( Shot01 );
- SetLife( 9999 );
- SetDamageRate( 1, 10 );
- LoadUserShotData( UserShot );
- }
- @MainLoop {
- SetCollisionA( GetX, GetY, 16 );
- SetCollisionB( GetX, GetY, 16 );
- yield;
- MariFami++;
- FamMove++;
- if( MariFam == 120 ){
- PlaySE( Shot01 );
- CreateShotA( 1, GetX, GetY, 10 );
- SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_LIME );
- SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_LIME );
- }
- FireShot( 1 );
- }
- if( MariFam == 120 ) { MariFam = 115 }
- if( FamMove == 60 ){
- loop{
- SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
- }
- }
- }
- @DrawLoop {
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamC );
- SetGraphicAngle( 0, 0, MariTime*4 );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamB );
- SetGraphicAngle( 0, 0, FamSpin );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- FamSpin - = 10;
- }
- @Finalize {
- }
- script_enemy FamiliarD {
- #include_function".\SHOT\Index_UserShot.txt";
- let CSD = GetCurrentScriptDirectory;
- let MariFamD = CSD ~ "SPRITE\Familiar.png";
- let UserShot = CSD ~ "SHOT\supershot.txt";
- let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
- let FamAngle = GetArgument;
- let MariFami = 0;
- let FamMove = 0;
- let FamDir = 0;
- let FamR = 140;
- let FamSpin = 0;
- let MariTime = 0;
- @Initialize {
- LoadGraphic( MariFamD );
- LoadSE( Shot01 );
- SetLife( 9999 );
- SetDamageRate( 1, 10 );
- LoadUserShotData( UserShot );
- }
- @MainLoop {
- SetCollisionA( GetX, GetY, 16 );
- SetCollisionB( GetX, GetY, 16 );
- yield;
- MariFami++;
- FamMove++;
- if( MariFam == 120 ){
- PlaySE( Shot01 );
- CreateShotA( 1, GetX, GetY, 10 );
- SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_YELLOW );
- SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_YELLOW );
- }
- FireShot( 1 );
- }
- if( MariFam == 120 ) { MariFam = 115 }
- if( FamMove == 60 ){
- loop{
- SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
- }
- }
- }
- @DrawLoop {
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamD );
- SetGraphicAngle( 0, 0, MariTime;*4 );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamB );
- SetGraphicAngle( 0, 0, FamSpin );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- FamSpin - = 10;
- }
- @Finalize {
- }
- script_enemy FamiliarE {
- #include_function".\SHOT\Index_UserShot.txt";
- let CSD = GetCurrentScriptDirectory;
- let MariFamE = CSD ~ "SPRITE\Familiar.png";
- let UserShot = CSD ~ "SHOT\supershot.txt";
- let Shot01 = CSD ~ "SOUND\SE\Shot1.wav";
- let FamAngle = GetArgument;
- let MariFami = 0;
- let FamMove = 0;
- let FamDir = 0;
- let FamR = 140;
- let FamSpin = 0;
- let MariTime = 0;
- @Initialize {
- LoadGraphic( MariFamE );
- LoadSE( Shot01 );
- SetLife( 9999 );
- SetDamageRate( 1, 10 );
- LoadUserShotData( UserShot );
- }
- @MainLoop {
- SetCollisionA( GetX, GetY, 16 );
- SetCollisionB( GetX, GetY, 16 );
- yield;
- MariFami++;
- FamMove++;
- if( MariFam == 120 ){
- PlaySE( Shot01 );
- CreateShotA( 1, GetX, GetY, 10 );
- SetShotDataA( 1, 0, 0, 0, 0, 0, 0, US_STAR_MARISA_S_PURPLE );
- SetShotDataA( 1, 30, 2.7, 90 + GetAngleToPlayer, 1, 2.7, 2.7, US_STAR_MARISA_S_PURPLE );
- }
- FireShot( 1 );
- }
- if( MariFam == 120 ) { MariFam = 115 }
- if( FamMove == 60 ){
- loop{
- SetMovePosition03( GetEnemyX+FamR*cos( FamDir + FamAngle ) GetEnemyY+FamR*sin( FamDir+ FamAngle ), 20, 10 );
- }
- }
- }
- @DrawLoop {
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamE );
- SetGraphicAngle( 0, 0, MariTime*4 );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- SetGraphicScale( 1, 1 );
- SetTexture( MariFamB );
- SetGraphicAngle( 0, 0, FamSpin );
- SetColor( 255, 255, 255 );
- SetRenderState( ADD );
- DrawGraphic( GetX, GetY );
- FamSpin - = 10;
- }
- @Finalize {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment