View Single Post
JPZV
Junior Member
Join Date: May 2013
Location: Chile
Old 08-05-2020 , 16:31   Re: Bat's Collection of Stuff
Reply With Quote #18

Quote:
Originally Posted by Batfoxkid View Post
Code:
	char abilityName[MAXABILITYNAME];
	Format(abilityName, MAXABILITYNAME, "%s%i", ABILITY);
	FF2_SetBossCharge(boss, 0, FF2_GetBossCharge(boss, 0)+FF2_GetAbilityArgument(boss, this_plugin_name, abilityName, 1005));
Looks like I messed up here and needed to replace this line with:
Format(abilityName, MAXABILITYNAME, "%s%i", ABILITY, abililty);

(I should really remake this plugin when I get the chance.)
I know this is pretty old, but this line stills being wrong both here and in the dropbox.
It should be
Code:
Format(abilityName, MAXABILITYNAME, "%s%i", ABILITY, abililty-1);
Because the variable ability (from the for) starts from 1, but ams_doabilityX and sound_doability_X starts from 0, so you have to "move" the variable to 0 or you will have sounds in the wrong place.
JPZV is offline