我不明白为什么它没有为播放器显示攻击消息,有人可以帮助我吗?

问题描述 投票:-3回答:1

I highlighted the area where it says to print the player's attack message

python
1个回答
0
投票

正如@CoryKramer所说,您需要调用print才能打印一个值(这与自动打印的Matlab不同)。因此,例如:

if critchance > critover:
    print(f'Your attack was a critical hit, you did {1.5 * playdam} damage!')
© www.soinside.com 2019 - 2024. All rights reserved.