Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

SetStamina() ?

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Danger Ross
Posts: 92
Joined: Thu Mar 31, 2016 12:56 am
Title: Competition
SFD Alias: Danger Ross
Started SFD: first day of pre-alpha

SetStamina() ?

Post by Danger Ross » Sat Dec 03, 2016 8:41 pm

This is probably one of the more important features that should be in the script API, but isn't.
I don't even know how this feature could be overlooked... There needs to be a a method that allows users to manipulate stamina the same way you would manipulate health.

With this I could, for example, punish players for using an ability from my script too much by costing them stamina... or I could make an attack to drain someone's stamina as some sort of unique power. This could also be applied in my script (where players can be revived as zombies), I want to make a zombie type be slower than players, the best way of doing this would be to disable their stamina regeneration.

This was also mentioned in a post on the "planned script API features" thread by Motto!
7 x
sorry bucko, you can't punch with swords 8-)

Post Reply