|
Thread: Castle Upgrtading script | |
|
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
|
|
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?
|
|
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.
|
|
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*
|
|
|
|