02-12-2014, 04:21 AM
(02-11-2014, 01:50 PM)Steel Beast 6Beets Wrote: I searched on all the scripts and I couldn't find any misspelling or typo. I tried putting the HP Drain script below these previously mentioned scripts yet the error persisted.....
I found another thing: when copying and pasting the common event call, it gets twisted into this:
Code:absorb = $game_temp.sp_damage_hook * -1
$scene.active_battler.dvv_sp_damage_p
op = absorb
$scene.active_battler.dvv_sp_damage_p
op=true
$scene.active_battler.sp -= absorb
The codes are just too long for the script window.
There ya go. Too long, they get cut off and VOLIA, your dvv_sp_damage_p
Try using this in your common event:
Code:
absorb = $game_temp.sp_damage_hook * -1
$scene.active_battler.
dvv_sp_damage_pop = absorb
$scene.active_battler.
dvv_sp_damage_pop=true
$scene.active_battler.sp -= absorb
(02-11-2014, 01:50 PM)Steel Beast 6Beets Wrote: I also noticed you could drain SP from enemies that don't have any SP (The error shows up when trying to add that amount of SP to the character's SP). Perhaps that has something to do with the error?Er... no. But a sp checking feature could be put into the system:
Code:
# Set hook to damage
if self.dvv_sp_damage.is_a?(Numeric)
sp = self.sp - self.dvv_sp_damage
# Only if SP remaining
if sp > 0
$game_temp.sp_damage_hook += self.dvv_sp_damage
end
end