Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Unit - Cause JG_Caster to damage JG_Target, dealing (Random real number between 250.00 and 350.00) damage of attack type Spells and damage type Normal
This over here should make that when a hero casts a spell the target will take random damage from 250 to 350. The problem is the damage is always 317. Why is that shouldn't it be random??
Nope. The purpose of this is that things will go exactly the same each time you test, so you could track down errors easier or when testing AI that it will only be affected by the changes in the AI itself, not by chance.
When coding cinematics you should also use fixed seeds so that the combat results end always the same. It would be stupid if you show an army fighting but some times the side that is meant to win (and even announced so) ends up losing due to bad RNG results.
Seed in multiplayers starts out random. Additionally humans introduce a source of randomness to the seed through their actions. You can also disable fixed seed during map tests in the editor preferences.
When coding cinematics you should also use fixed seeds so that the combat results end always the same. It would be stupid if you show an army fighting but some times the side that is meant to win (and even announced so) ends up losing due to bad RNG results.
Seed in multiplayers starts out random. Additionally humans introduce a source of randomness to the seed through their actions. You can also disable fixed seed during map tests in the editor preferences.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.