Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Castle Upgrtading script
Thread: Castle Upgrtading script
Khadras
Khadras


Famous Hero
posted February 05, 2014 08:17 AM
Edited by Khadras at 08:23, 05 Feb 2014.

Castle Upgrtading script

Hi everyone! I play Era II and the new castle upgrading script does not increased the cost of every upgrade thet i made. I found castle script in Wog Revised 2.0 where the cost of  upgrading is increased with every upgrade made. But when i enabled errors appears. I see it was used different variable and the code are much diferent from original script. I don't know how to make it works. Any ideas?
This is the script from WoG Revised 2.0:
http://snk.to/f-c7nfo8s9

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
krokots
krokots

Tavern Dweller
posted July 12, 2014 06:15 PM

Unfortunately i have the same problem. Sad, because castle upgrading is one of my favourite scripts. In old WoG install i've got (allinone) the script is better, and prices are rising. In ERA, the script is useless. Does someone have a working version?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
krokots
krokots

Tavern Dweller
posted July 13, 2014 01:41 AM
Edited by krokots at 12:19, 13 Jul 2014.

Ok, i fixed this myself.

Here is a upgraded version, with proper rising prices. Working with Era II.
https://dropbox.uconn.edu/dropbox?n=33%20wog%20-%20castle%20upgrading.erm&p=LKkV7ylZkYykZlNTa


For human player:
Gold price starts from 5000 and 2000 times 2 to the power of the upgrade level you want to buy, minus one.

So, if it's first upgrade, it would cost 5000+2000*2^0=7000.
2nd upgrade: 5000+2000*2^1=9000
3rd: 13000
And so on.
Mithril upgrades work the same way
1st - 2
2nd - 4
3rd - 8

I made no changes in AI. But taken a look in the script, seems like AI's get (if possible - buildings built) 1 free (no resources taken) random upgrade per day.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
krokots
krokots

Tavern Dweller
posted July 21, 2014 11:45 PM
Edited by krokots at 23:45, 21 Jul 2014.

New version. I did not see earler that dwelling prices are not rising. Fixed. In original WoG, resource cost was linear (10 wood->20 wood->30 wood), now i changed it to be potential (10 wood->20 wood->40 wood) I may change it though.

https://dropbox.uconn.edu/dropbox?n=33%20wog%20-%20castle%20upgrading.erm&p=LFbtldHAMTTbZWPMX

*ERA II Compatibile*

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0234 seconds