Last active
October 18, 2024 12:52
-
-
Save nulleqcodes/c700ce96e7640706c227c8efb4a2ed23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---mobdefinition_Visual Effects Boss--- | |
Prefab :: colossus | |
Range Behavior :: [[Stationary]] | |
Abilities :: [[Boss Death Explosion]] [[Shield Break Explosion]] [[Gravity Well]] | |
Bounding Box :: 0 2.73 2.5 3.0 | |
Speed :: 0 | |
Type :: Boss | |
Loot :: [[Colossus]] | |
---ability_Boss Death Explosion--- | |
Bullet Definition :: [[bossdeathexplosion]] | |
Max Range :: 100.0 | |
---bulletdef_bossdeathexplosion--- | |
sprite CirclePool 1 | |
potency 0 | |
fire 0 relative 0 | |
aoeexplosion | |
radius 1 | |
timedFill 120 | |
damageEvery 120 | |
wait 121 | |
vanish | |
wait 30 | |
sprite Basic | |
color 1 | |
potency 50 | |
radial bullets:8 speed:2 angle:0 directionType:absolute | |
wait 15 | |
sprite Basic | |
color 2 | |
potency 75 | |
radial bullets:16 speed:3 angle:11.25 directionType:absolute | |
wait 15 | |
sprite Lance_14 | |
color 3 | |
potency 100 | |
radial bullets:16 speed:4 angle:0 directionType:absolute | |
wait 15 | |
sprite Custom_10 | |
color 4 | |
potency 125 | |
radial bullets:32 speed:5 angle:5.625 directionType:absolute | |
wait 15 | |
sprite Laser_14 | |
color 5 | |
potency 150 | |
radial bullets:64 speed:6 angle:2.8125 directionType:absolute | |
---ability_Shield Break Explosion--- | |
Bullet Definition :: [[shieldbreakexplosion]] | |
Max Range :: 100.0 | |
---bulletdef_shieldbreakexplosion--- | |
sprite CirclePool 3 | |
potency 0 | |
fire 0 relative 0 | |
aoeexplosion | |
radius 3 | |
timedFill 30 | |
damageEvery 30 | |
wait 31 | |
vanish | |
wait 15 | |
sprite Custom_7 | |
color 2 | |
potency 100 | |
nway speed:8 bullets:8 spread:45 angle:0 directionType:relative | |
nway speed:8 bullets:8 spread:45 angle:22.5 directionType:relative | |
wait 5 | |
sprite Lance_14 | |
color 4 | |
potency 150 | |
radial bullets:16 speed:6 angle:0 directionType:absolute | |
wait 10 | |
sprite Basic | |
color 1 | |
potency 75 | |
radial bullets:32 speed:4 angle:5.625 directionType:absolute | |
---ability_Gravity Well--- | |
Bullet Definition :: [[gravitywell]] | |
Max Range :: 100.0 | |
---bulletdef_gravitywell--- | |
sprite CirclePool 4 | |
potency 0 | |
fire 0 relative 0 | |
aoepool | |
radius 4 | |
damageEvery 30 | |
wait 121 | |
vanish | |
wait 5 | |
sprite Basic | |
color 5 | |
potency 25 | |
repeat bullets:120 speed:10 angle:0 maxAngle:360 delay:1 directionType:absolute | |
wait 10 | |
speed -15 | |
wait 20 | |
speed -7 | |
wait 20 | |
speed -3 | |
wait 60 | |
vanish | |
---script_colossus_Monster--- | |
resetVars := func() { | |
scriptVars["timeSinceDeath"] = 0.0 | |
scriptVars["timeSinceShield"] = -10.0 | |
scriptVars["timeSinceGravity"] = -20.0 | |
} | |
if !isDead { | |
if is_undefined(scriptVars["timeSinceDeath"]) { | |
resetVars() | |
} | |
scriptVars["timeSinceDeath"] += delta | |
scriptVars["timeSinceShield"] += delta | |
scriptVars["timeSinceGravity"] += delta | |
if targetEntityId > 0 && castingAction == 0 { | |
if scriptVars["timeSinceDeath"] > 10.0 { | |
log("Boss death") | |
useAbilityAtPosition(myEntityId, "Boss Death Explosion", entityPosition(myEntityId)) | |
scriptVars["timeSinceDeath"] = -20.0 | |
} else if scriptVars["timeSinceShield"] > 10.0 { | |
log("Shield break") | |
useAbilityAtPosition(myEntityId, "Shield Break Explosion", entityPosition(myEntityId)) | |
scriptVars["timeSinceShield"] = -20.0 | |
} else if scriptVars["timeSinceGravity"] > 10.0 { | |
log("Gravity well") | |
useAbilityAtPosition(myEntityId, "Gravity Well", entityPosition(myEntityId)) | |
scriptVars["timeSinceGravity"] = -20.0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment