Having already put together a script to manage character stats, let's take the script one step further and add some basic inventory management.
在整合了管理角色统计信息的脚本后,让我们进一步丰富脚本并且添加一些基本武器清单管理功能。
Now that you can calculate damage, let's look at keeping track of some basic character stats, like you might use if you were running a game with several NPCs.
现在已经可以计算破坏力,让我们查看如何跟踪一些基本任务统计信息,这种功能在要运行带有多个NPC的游戏时可能需要使用。
Another being every item you wear, as items and their stats play a big role in how your character is defined.
另外就是装备系统,物品和他们的属性点将会在很大程度上定义你的人物。
应用推荐