Strategy question: Gold or Experience

The new Heroes games produced by Ubisoft. Please specify which game you are referring to in your post.

Moderator: Moderators

User avatar
Apocalypse
Conscript
Conscript
Posts: 242
Joined: 17 Mar 2007

Postby Apocalypse » May 11 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 14 guests