Game Development Reference
In-Depth Information
achTotGold++;
}
if(Amount >= 500 && Amount < 999)
{
if(achTotGold != 3)
achTotGold++;
}
if(Amount >= 1000 && Amount < 4999)
{
if(achTotGold != 4)
achTotGold++;
}
if(Amount >= 5000 && Amount < 9999)
{
if(achTotGold != 5)
achTotGold++;
}
if(Amount >= 10000)
{
if(achTotGold != 6)
achTotGold = 6;
}
if(achTotGold == 6)
getTotGold = false;
}
}
Tracking the gold spent
This tracker will track how much gold the player spent on items during the time they
played the game:
void GoldSpent(int Amount)
{
if(getGoldSpnt)
{
Search WWH ::




Custom Search