[MT] Percent Health Module 
16 comments
Hello! I've created this health module that can be quite easy to integrate into pretty much any script. (As long as you have the Lua knowledge to do so.)
You'd need to have a decent knowledge in Lua in order to make good use of this module!
Video: https://youtu.be/JZo9QqSp42c
edited 8×, last 06.07.21 11:54:45 pm

Comments
16 comments



Log in!
You need to log in to be able to write comments!Log in
@
The Dark Shadow: that would be pointless, the script is small enough that if you really want it you'd be better off using the debug function from the core script you're using.
This is more of a proof of concept.

This is more of a proof of concept.

Very nice code to study on, but you did a mistake related to its performance, You have to make a specified function to print [DEBUG].

Check links - it may be useful
https://www.lua.org/gems/sample.pdf
http://lua-users.org/wiki/OptimisationCodingTips
https://springrts.com/wiki/Lua_Performance
https://www.lua.org/gems/sample.pdf
http://lua-users.org/wiki/OptimisationCodingTips
https://springrts.com/wiki/Lua_Performance
@
Mami Tomoe: Please don't take
Grand Master seriously, he's fucking trolling.


I don't know what you're talking about @
Grand Master: , the code was meant to be as efficient as possible.
Can you show me some examples?

Can you show me some examples?

@
Mami Tomoe: Wanna know what did @
Pagyra: mean, He meant you added some extra spaces between the words, extra statements, extra variables to make the code (easier to read and understand). The Lua Script would work faster without it.





