I got a 403 error downloading the game.

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
adjustskillforexp(STRENGTH, expSTR, 2); //so STRENGTH is attempted raised whenever two exp. points in that
//skill with a certain spell, skills go from 0 to 100.
int spellBAKECAKE;
export spellBAKECAKE;
int expBAKECAKE; //experience with the same spell
export expBAKECAKE;
//here we insert the characteristics of the spell BAKECAKE into a function and add toughness for how much exp it takes to attempt to raise the stat:
function adjustskillforexp(int Characteristic, int expCharacteristic, int toughness)
{
while (expCharacteristic >= toughness) //the higher the toughness, the more exp needed to do that random check and see if skill is raised.
{
expCharacteristic -= toughness; //when doing the random check, the exp is lost, regardless of the result
if (Random(100) > Characteristic)
{
Characteristic += 1; //in this case, skill raised
}
}
return Characteristic; //return the modified value
}
function adjustallskillsforexp()
{
STRENGTH=adjustskillforexp(STRENGTH, expSTR, 2); //so STRENGTH is attempted raised whenever two exp. points in that skill are gained.
ALERTNESS=adjustskillforexp(ALERTNESS, expALE, 2);
spellBAKECAKE=adjustskillforexp(spellBAKECAKE, expBAKECAKE, 1); //and our spell BAKECAKE is attempted raised whenever one exp point in that skill is gained.
}
Quote from: Snarky on Thu 25/04/2013 13:08:42
Yeah, but there used to be an annoying scaling bug in the AGS Direct3D renderer...
if(!scrollDelay>0){
Quote from: selmiak on Sun 31/03/2013 14:28:56Actually if you just want to do it with integer maths, the correct way is:
numberofsavedchildren / maxnumberofchildren * 100
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 3.740 seconds with 15 queries.