Charlie Fleed
Member
That's quite a strange error. Would you PM me this project so that i can take a look at it?
Charlie Lee":2sltakk3 said:@Admiral_Stalfos19
I posted a demo. Copy the three pages "Tag 1.0" "Enhanced Weapons" and "Scene Enhance" above Main and see if you get this error.
omegax":108x3bj0 said:i have a little problem...
i can have everything working except i cant see any letters in my game
everything else works perfectly :P
Charlie Lee":vs2twf7d said:Notes for scripters that want to create patches.
This script creates new weapons in the database, with new IDs of course. I use this technique because every enhanced weapon needs to be unique in order to store different sets of attached enhancements.
Since elements are copied during the duplication process, all the scripts that use element-tagging should work fine.
On the other hand, all the scripts that use a configuration with weapons' IDs written in some arrays cannot work properly without a patch. However the patch is usually simple. Infact, all the enhanced weapons contain a value "ref_id" that is the ID of the database weapon from which the enhanced weapon was generated. When the script checks if the ID of a weapon is included in some array, it needs to check if the weapon is an Enhanced Weapon (by using is_a? for example) and if this is the case, it must verify if ref_id (and not id) is included in that array.
If you need a patch you'd better ask to the author of the script to be patched, because he(she) knows where to insert the changes needed better than me.
Charlie Lee":1hs8xm7o said:Notes for scripters that want to create patches.
On the other hand, all the scripts that use a configuration with weapons' IDs written in some arrays cannot work properly without a patch. However the patch is usually simple. Infact, all the enhanced weapons contain a value "ref_id" that is the ID of the database weapon from which the enhanced weapon was generated. When the script checks if the ID of a weapon is included in some array, it needs to check if the weapon is an Enhanced Weapon (by using is_a? for example) and if this is the case, it must verify if ref_id (and not id) is included in that array.
# Because the one below is one example to the last
# Please make it originally.
class Weapon
#--------------------------------------------------------------------------
# Weapon sctions. Set what weapons are a stand still weapon.
#--------------------------------------------------------------------------
def battle_actions
case @id
when 21 # Ranged Weapons
return BattleActions::Actions["One step advancement Attack"]
end
return BattleActions::Actions["Normal Attack"] # default
end
end
class Skill
# Because the one below is one example to the last
# Please make it originally.
ranged = "Ranged"
$data_system = load_data("Data/System.rxdata")
$r_element_id = $data_system.elements.index(ranged)
class Weapon
#--------------------------------------------------------------------------
# Weapon sctions. Set what weapons are a stand still weapon.
#--------------------------------------------------------------------------
def battle_actions
if $data_weapons[id].element_set.include?($r_element_id)
return BattleActions::Actions["One step advancement Attack"]
end
return BattleActions::Actions["Normal Attack"] # default
end
end