Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[1318] Beam Penetrates Enemies

1 replies · 1,034 views · Started 17 October 2010

I had a custom item in for a while now.

Name: King's Blade
ID: 233
Class: Swords
Level: 1
Damage: 2
Every checbox for this item class is checked. Equipmend, BH and BD is percent, can slash.
Beam Hearts: 0 (runs on magic)
Beam Damage: 50 (as in percent)

However, not only does the beam not go through enemies anymore, but the beam does erratic amounts of damage. Sometimes it one-shots enemies with more than 1 health. The beam only does 1 damage (dur), but i've one-shotted green moblins (HP: 3) and red darknuts (HP: 4) with it. SOMETIMES enemies with 2 HP are spared from the beam but semi-rarely.

It also has an item pickup script on it which simply displays a message. As well as this little number:

bool crit = false;

item script SwordSFX{
void run(int move, int null, int prob, int critSFX, int bonus){
if(crit) {
this->Power -= bonus;
}
crit = false;
int sfx = Rand(4);
if(Rand(prob) == 0) {
this->Power += bonus;
crit = true;
Game->PlaySound(critSFX);
} else {
Game->PlaySound(sfx+move);
}
}
}


(the "int null" is just so that this script skips over the D1 variable as that one is being used by the item pickup script) This script works perfectly. I have a theory that maybe it also affects sword beams. What this script does is play 1 of 4 random sequential (starting/including on the D0 variable specifying the SFX slot) sounds for normal swings. Then it has a 1 in (D2 Variable) chance of doing (D4 Variable) extra damage as well as not play any of the D0 variables but instead D3. The whimsical ring seems to work enemy-side. That is, the game decides if the enemy takes the extra damage (with the ring, its whimsy sound overlaps the sword sound which sounded horrible hence the script. this script triggers on random no-target swings (which is fine.)

So tl;dr I guess: sword beam on a level 1 sword with ID 233 does not go through enemies at all and does erratic amounts of damage. Possibly due to script. I will do some more tests though (like remove the script from the sword).