• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Stamina System

Status
Not open for further replies.
Level 1
Joined
Jul 28, 2014
Messages
6
Hello guys, i have been making a Horror Game and i need a sytem called Stamina which will drained your mana when you are walking and when the mana (Energy) is low the speed of an unit will slow... i really need the Stamina System... I will credit the person who will help me with this System...
 

Ardenian

A

Ardenian

There is a system: http://www.hiveworkshop.com/forums/spells-569/gui-run-walk-movement-system-1-01b-227666/?prev=search%3Drun%26d%3Dlist%26r%3D20

It is not exactly what you are searching for, but maybe it helps you.

If you want it simple, the trigger isn't very complicated and you should learn how to create it.
Create an instant ability removing the stats, like 'Berserk'.
If the unit casts this ability, then you add an ability with negative mana regeneration and additional movement speed to the triggering unit.
If the unit casts the ability again, then you remove the negative mana regeneration and the movement speed bonus.

If you need help, then think about asking in the WEHZ for getting help to get started with the trigger.

The first step of becoming a successful map-maker is doing it yourself.
 
Level 10
Joined
Apr 4, 2010
Messages
509
I thought that making this sprint ability should be easy. But I spent ages trying to figure out how to make a unit instantly deactivate immolation when they cast it. I don't think there is a way. You can look at the map and see what you can learn from it.
 

Attachments

  • Sprint.w3x
    20.3 KB · Views: 59

Ardenian

A

Ardenian

To cast an ability instantly you have to, obviously, set its cooldown to 0.
Additionally, the so called 'Casting Point' (?) of the unit should be set to 0 or -1, cannot recall what it was.

It works, I use this for my stacking orbs system, the instant casting abilities.
 
Level 10
Joined
Apr 4, 2010
Messages
509
To cast an ability instantly you have to, obviously, set its cooldown to 0.
Additionally, the so called 'Casting Point' (?) of the unit should be set to 0 or -1, cannot recall what it was.

It works, I use this for my stacking orbs system, the instant casting abilities.
Unless you prove it to me in a test map, there is no way to instantly deactivate immolation as soon as you turn on immolation.
 

Ardenian

A

Ardenian

I have no clue about immolation, but it works with other abilities like frostnova, acidbomb, curse, ...
 
Level 31
Joined
Jul 10, 2007
Messages
6,306
Uhm, I made a Stamina system long ago as well as a unit movement detection system that can detect native unit movement not caused by scripts. It was part of Footmen Wars Empires project. It's all in vJASS and relies on old outdated systems. If you'd like it as a point of reference, I think it's on my github, which is linked to in my signature.

*edit*
Yea, it's there. API doc is a little backwards on return types I think, lol. Get returns real, set returns nothing. As the script is old, I likely won't fix docs to reflect script until I update it and its dependencies to follow modern thingies.

Have fun : )
 
Status
Not open for further replies.
Top