Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Zombification
#3
Hi DerVVulfman! ^^ I was trying your script but I got an error... I'm using Atoa's Battle System but the error occurs in one of the basic scripts from XP:

'no implicit conversion from nil to integer' (Game_Enemy 125)


Game_Enemy:


#--------------------------------------------------------------------------
# * Get Element Revision Value
# element_id : Element ID
#--------------------------------------------------------------------------
def element_rate(element_id)
# Get a numerical value corresponding to element effectiveness
table = [0,200,150,100,50,0,-100]
result = table[$data_enemies[@enemy_id].element_ranks[element_id]] <--- 125
# If protected by state, this element is reduced by half
for i in @states
if $data_states[i].guard_element_set.include?(element_id)
result /= 2
end
end
# End Method
return result
end


Did I missed something? Thanks beforehand ^^
Reply }


Messages In This Thread
Zombification - by DerVVulfman - 12-31-2009, 05:11 AM
RE: Zombification - by joman159 - 03-19-2011, 08:02 PM
RE: Zombification - by Iqus - 01-17-2013, 06:48 AM
RE: Zombification - by DerVVulfman - 01-18-2013, 04:52 AM
RE: Zombification - by Iqus - 01-18-2013, 06:01 AM
RE: Zombification - by DerVVulfman - 01-20-2013, 04:46 AM



Users browsing this thread: