This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum 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.
Locked
User avatar
Danger Ross
Superfighter
Superfighter
Posts: 154
Joined: Thu Mar 31, 2016 12:56 am
Title: Dangerous
SFD Alias: Danger Ross
Started SFD: 14 june 2012 (launch day)
Location: California
Gender:
Age: 25

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-)

Locked