Kain Nobel
Member
Good day everybody!
I'll keep this short 'n sweet, I have a Bestiary script by....
I don't know what this line does...
Its found in the method Data_MonsterBook.no_add_element
Does anybody know what it does?
I'll keep this short 'n sweet, I have a Bestiary script by....
Code:
#===============================================================================
# â– Bestiary
#-------------------------------------------------------------------------------
# Created by Momomo
# Modified by coolmariners98
#===============================================================================
I don't know what this line does...
Code:
if $data_system.elements[i] =~ /図鑑登録無効/
Its found in the method Data_MonsterBook.no_add_element
Code:
#===============================================================================
# ** Data_MonsterBook
#-------------------------------------------------------------------------------
# This class stores all enemy information.
#===============================================================================
class Data_MonsterBook
#-----------------------------------------------------------------------------
# * Attribute Readers
#-----------------------------------------------------------------------------
attr_reader :id_data
#-----------------------------------------------------------------------------
# * Object Initialization
#-----------------------------------------------------------------------------
def initialize
@id_data = enemy_book_id_set
end
#-----------------------------------------------------------------------------
# * No Add Element
#-----------------------------------------------------------------------------
def no_add_element
no_add = 0
for i in 1...$data_system.elements.size
if $data_system.elements[i] =~ /図鑑登録無効/
no_add = i
break
end
end
return no_add
end
#-----------------------------------------------------------------------------
# * Enemy Book ID Set
#-----------------------------------------------------------------------------
def enemy_book_id_set
data = [0]
no_add = no_add_element
for i in 1...$data_enemies.size
enemy = $data_enemies[i]
next if enemy.name == ""
if enemy.element_ranks[no_add] == 1
next
end
data.push(enemy.id)
end
return data
end
end
Does anybody know what it does?