I've been using Blizz-ABS for a while now and I absolutely love it. However, I recently encountered a problem that has me stumped... I created a "Grenade" item that causes the game to crash whenever I use it :S... Here is the code that I have in my blizz-abs script for it (generated by the blizz-abs config)
module Items
def self.type(id)
case id
when 43 then return [0, 3.0] # Grenade : Shooting / Thrusting
end
return [2, 0.0]
end
def self.range(id)
return 5.5
end
end
In the database, I have the "Scope" set to "One Enemy", the Occasion as "Always", and the Target Animation set to "Explosion 1" (the id is 099). I have it set up to inflict 50 damage, and is a consumable item.
When I run my game, set the item to the hotkey, and press the item key; the game crashes and I get this error:
Script 'Sprite_Character' line 72: TypeError occurred. no implicit conversion from nil to integer.
I'm not intirely sure what is wrong :S... I don't know, maybe I've just been on the PC too long today, lol. Anyhow, any help would be greatly appreciated
.
Thanks in advance, and keep up the great work on the awesome script