Strategy question: Gold or Experience

The new Heroes games produced by Ubisoft. Please specify which game you are referring to in your post.
User avatar
Apocalypse
Conscript
Conscript
Posts: 242
Joined: 17 Mar 2007

Unread postby Apocalypse » 11 May 2007, 15:58

(GoldOnHand<50k?gold:(xpToLevel>15k?gold:(atXpCap?gold:XP)))
The code doesn't recognize 50k as 50000! Shame on you! :D

Also, for more noobs at programming:

Code: Select all

if(GoldOnHand < 50000 || // 50k seems too much though
   xpToLevel > 15000 ||
   atXpCap == true)
{
  TakeGold();
}
else
{
  TakeExp();
}
Hide, listen, watch, learn… And when the time is right, strike from the shadow.


Return to “Heroes V-VI”

Who is online

Users browsing this forum: No registered users and 40 guests