Code: Select all
##### definition for image #####
def equip_rand_img(m_img):
m_img.img = Composite(
(600, 1000),
(0, 0), "chr_design/player.png",
(0, 0), "chr_design/p_body_{}.png".format(m_img.p_b),
(0, 0), "chr_design/p_pants_{}.png".format(m_img.p_p),
(0, 0), "chr_design/p_gloves_{}.png".format(m_img.p_h),
(0, 0), "chr_design/p_shoes_{}.png".format(m_img.p_f),
(0, 0), "chr_design/p_main_hand_{}.png".format(m_img.p_mh),
(0, 0), "chr_design/p_off_hand_{}.png".format(m_img.p_oh),
)
##### Screen #####
......
for m in monster_slot[1:2]:
fixed:
if not m.dead:
imagebutton at m.anim:
focus_mask True
hover im.MatrixColor(m.img, im.matrix.brightness(0.1))
idle m.img anchor (0.5,1.0)
...
#### traceback ####
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 49, in script call
call battle
File "game/game_engine/battle_engine/battle.rpy", line 35, in script
show screen display_monsters with diss
File "renpy/common/000statements.rpy", line 551, in execute_show_screen
renpy.with_statement(eval(transition_expr))
File "game/game_engine/battle_engine/battle.rpy", line 118, in execute
screen display_monsters():
File "game/game_engine/battle_engine/battle.rpy", line 118, in execute
screen display_monsters():
File "game/game_engine/battle_engine/battle.rpy", line 119, in execute
fixed:
File "game/game_engine/battle_engine/battle.rpy", line 121, in execute
for m in monster_slot[0:1]:
File "game/game_engine/battle_engine/battle.rpy", line 122, in execute
fixed:
File "game/game_engine/battle_engine/battle.rpy", line 123, in execute
if not m.dead:
File "game/game_engine/battle_engine/battle.rpy", line 124, in execute
imagebutton at m.anim:
File "game/game_engine/battle_engine/battle.rpy", line 124, in keywords
imagebutton at m.anim:
File "game/game_engine/battle_engine/battle.rpy", line 126, in <module>
hover im.MatrixColor(m.img, im.matrix.brightness(0.1))
Exception: Expected an image, but got a general displayable.