I think it might be late, cause my brain is in a fog right now from working on this project all day.
I am trying to just NOT list a skill in the skill combat menu if it is disabled. This would mean if a character was not wielding a weapon type it would not be displayed. Maybe I am missing something, but when I assign a skill to require a weapon type it is displaying in the skill window during combat even when the weapon is not wielded. This is sort of pain when trying to add a bunch of skills that require certain weapon types.
def make_item_list
@data = @actor ? @actor.skills.select {|skill| include?(skill) } : []
end
I have a feeling I need to put an if check here, but I can't seem to figure out the right syntax or whatever.
Right now if I have a long sword wielded I want just the long sword skills to display, not also all the ones that are with an axe or a spear. It ends up listing a whole mess of random skills that are translucent.
Thanks.
I am trying to just NOT list a skill in the skill combat menu if it is disabled. This would mean if a character was not wielding a weapon type it would not be displayed. Maybe I am missing something, but when I assign a skill to require a weapon type it is displaying in the skill window during combat even when the weapon is not wielded. This is sort of pain when trying to add a bunch of skills that require certain weapon types.
def make_item_list
@data = @actor ? @actor.skills.select {|skill| include?(skill) } : []
end
I have a feeling I need to put an if check here, but I can't seem to figure out the right syntax or whatever.
Right now if I have a long sword wielded I want just the long sword skills to display, not also all the ones that are with an axe or a spear. It ends up listing a whole mess of random skills that are translucent.
Thanks.