Hi!
I1m trying to use Neon Black's Composite Characters for my game, but unfourtunately one of the script calls isn't working properly.
Whenever I try to use the script call "composite_force" it doesn't matter what I write in it, it doesn't seem to find the spritesheet.
Eg: composite_force(01, :hair, "Short", 0)
It should change the hair layer of the actor (01) to the handler Short (Hair1U.png) with hue 0, but it doesn't. It just shows the character bald (clearly not finding the correct spritesheet).
When I delete the part about searching for a handler, it changes the hue ok.
The script call "composite_custom" works just fine, but it doesn't work with what I'm trying to do.
That's the documentation on how to use it:
And that's the actual script part that searches for the handler
Any help would be highly appreciated!
Script: https://forums.rpgmakerweb.com/inde...e-characters-in-game-character-creation.5775/
I1m trying to use Neon Black's Composite Characters for my game, but unfourtunately one of the script calls isn't working properly.
Whenever I try to use the script call "composite_force" it doesn't matter what I write in it, it doesn't seem to find the spritesheet.
Eg: composite_force(01, :hair, "Short", 0)
It should change the hair layer of the actor (01) to the handler Short (Hair1U.png) with hue 0, but it doesn't. It just shows the character bald (clearly not finding the correct spritesheet).
When I delete the part about searching for a handler, it changes the hue ok.
The script call "composite_custom" works just fine, but it doesn't work with what I'm trying to do.
That's the documentation on how to use it:
Ruby:
## composite_custom(id, handler, name, hue)
## - Changes composite "id"'s layer "handler" into file "name" with a hue of
## "hue". This occurs on the same priority level as the character creation
## screen, so it is covered by armour and can be modified by the player.
## "id" must be a value from NAMES, "handler" a layer from COMPOSITE, "name"
## a file from FILE_HANDLERS, and "hue" a number from 0 to 255.
## composite_force(id, handler, name, hue)
## - Similar to the command above, but this takes the highest priority when
## being drawn and cannot be changed by the player.
And that's the actual script part that searches for the handler
Ruby:
def get_composite_handler(key) ## Complex method to find the file handler.
block = @composite_male ? 0 : 1
if @forced_composites.include?(key) && Composites.include_block?(block,
@forced_composites[key][0])
hues = @forced_composites[key][0]
elsif @equip_hashes.include?(key) && Composites.include_block?(block,
@equip_hashes[key][0])
handler = @equip_hashes[key][0]
elsif @editor_changes.include?(key) && Composites.include_block?(block,
@editor_changes[key])
handler = @editor_changes[key]
elsif actor.composite_init.include?(key) && Composites.include_block?(block,
actor.composite_init[key][0])
handler = actor.composite_init[key][0]
elsif Composites.get_first_handler(block, key)
handler = Composites.get_first_handler(block, key)
else
handler = nil
end
return handler
end
Any help would be highly appreciated!
Script: https://forums.rpgmakerweb.com/inde...e-characters-in-game-character-creation.5775/