i am trying to learn scripting by following a tutorial but i found a scrip that constantly gets syntax errors on the last line. please help me figure out what is wrong.
module Slime_counter Counter_Variable = 1 Slime = [1]end
class Game_Enemy < Game_Battler Include Slime_Counter def die $game_varables[Counter_Variable] += if Slime.include?(enemy.id) @hp = 0 clear_states clear_buffs endend








I wish I could offer more assistance right now, but my computer which has XP and VX installed is in storage; my laptop only has RPG2k and 2k3. But, just looking at what you posted, it's difficult for me to tell what might be the problem as the lines are not separated. Could it be that there are just one too many, or too few, "end"s? I haven't done a lot of scripting in a while so that's just a guess.