Project Zomboid

Project Zomboid

633 次評價
Injury Indicator
2
2
3
   
獎勵
加入最愛
已加入最愛
移除最愛
檔案大小
發佈於
更新時間
306.874 KB
2023 年 1 月 21 日 下午 3:36
2023 年 6 月 27 日 上午 11:29
11 項更新註記 (檢視)

訂閱以下載
Injury Indicator

描述
Adds pop-up text over the character's head when an injury occurs, indicating the injured body part.
If using the default pop-up text format, there is an option to also notify when an injury is healed.
Detects injuries from all sources for all body parts.


Why this mod?
This mod aims to present information that should be more easily accessible.
In other words, we should be able to tell where we were injured before we look at it.
Since our character and our focus are mostly at the center of the screen, the pop-up text will swiftly inform us about our injuries.

How does it work?
It scans all body parts and checks if any of them are injured.
If so, it fires a "skill up" notification text.
While not required, ModOptions can be used to toggle between 2 different pop-up formats (Skill up/Speech text).

To do
(maybe...)
  • Translation text as variables(%1%2)
    (For speech text, so it's possible to use possessive adjectives)
  • Indication of the injury type
    (the game has variables for it, just gotta add a few checks)

Notes
  • There should be no conflicts with anything.
  • Safe to add/remove mid-save.
  • Works in multiplayer.
  • Feedback/Suggestions are welcome.
Supported Languages

Recommended mods
ModOptions - To be able to configure this mod.
Check out my other mods




                                                [www.buymeacoffee.com]
This is my second mod. Although the code is a lot shorter then the previous one, I had to dig into the game code to figure it out.
I spent a whole day for the initial release. It was exhausting.
                                                       


Workshop ID: 2921642476
Mod ID: InjuryIndicator
熱門討論 檢視全部(1)
0
2023 年 1 月 22 日 下午 10:59
置頂: Translations
BOBcat
47 則留言
Neo 🦎 9 月 21 日 下午 2:59 
Awesome mod ! thx for this one. :cherrypie:
:spiffo:
red-unicorn 3 月 3 日 上午 10:08 
@Kras I believe Mini Health Panel tells you when bandages get dirty
viceroy102 1 月 22 日 下午 6:21 
merhaba bro ! yardımına ihtiyacım var- bu güzel modu kullanmak istiyorum amma bir türlü başaramıyorum)
Agitatio 2023 年 11 月 23 日 上午 12:21 
Wish heal pop-up could be forced off through sandbox options, for servers.
BOBcat  [作者] 2023 年 8 月 19 日 下午 11:24 
No. There is for when an injury heals though.
Kras 2023 年 8 月 19 日 下午 4:46 
Is there a feature to let you know when your bandages get dirty?
BOBcat  [作者] 2023 年 8 月 12 日 上午 1:41 
Hey there @Diakon ! Glad you enjoy the mod.
I'm not really a coder by trade and learned Lua only for modding the game.

I don't know the difference between calling the functions with " . " or " : " , I used whichever worked.

About global variables, it made sense to make them global, maybe not so much for this specific mod but anyway.
Some of my other mods depend on variables being global and nobody reported anything about breaking.

If you can fix the problem you encountered with this mod, please send me the edited code and I'll review it and update the mod.
Diakon 2023 年 8 月 10 日 上午 4:58 
Hello! We're playing on a big modpack over at UdderlyRP server. Your mod is fantastically helpful! So it pains me to say that somehow it broke for us! I don't know why exactly, the error log seems... non-sensical, I can send it over to you... I have looked at the code, and the only two issues I have noticed is that the functions are called with a "." instead of a ":" but that would've broken them a long time ago... Also, your script-wide variables are global, meaning any script could override them by accident! Please declare the variables as local to make it safer!
BOBcat  [作者] 2023 年 8 月 6 日 上午 6:55 
Good to hear it's helping!
Description updated.
SpennyBeastly [NiYE] 2023 年 8 月 6 日 上午 6:53 
Can confirm it does work in MultiPlayer - and holy crap, what was life like before this mod! Thanks so much!