Gold Carryover
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Gold Carryover
Okay, so I'm making a Strictly low gold scenario, and each time I try to disable gold carryover, this happens:
here what I put in the Prestart event.
Thanks for the help, Appreciate it.
Spoiler:
here what I put in the Prestart event.
Code: Select all
[gold_carryover]
bonus=no
carryover_percentage=0
[/gold_carryover]
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
- Alarantalara
- Art Contributor
- Posts: 786
- Joined: April 23rd, 2010, 8:17 pm
- Location: Canada
Re: Gold Carryover
You're probably looking for something more like:
No event or tag required.
You can also put it in [endlevel] if you decide you want to give/not give a bonus depending on player actions.
Code: Select all
[scenario]
victory_when_enemies_defeated=yes
carryover_percentage=0
....
[/scenario]
You can also put it in [endlevel] if you decide you want to give/not give a bonus depending on player actions.
Re: Gold Carryover
Try this...
This doesn't go in an [event] tag, but inside [scenario] and outside all other tags.
EDIT: Alarantalara obviously types faster than I do...
Code: Select all
carryover_percentage=0
EDIT: Alarantalara obviously types faster than I do...
Nothing is true; everything is permissible.
Re: Gold Carryover
Thanks guys, I was basing it on Heir to the throne
EDIT: It still is caring gold over.. :/
EDIT: It still is caring gold over.. :/
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
Re: Gold Carryover
If its still carrying gold over. Did you start the scenario all over? Or used save game?
"This game cured me of my real life addiction."
-Flameslash
-Flameslash
Re: Gold Carryover
I tried both. I started from the first scenario, and then went to the last testing it, carryover still took place. - And I tried loading a begining .gz no auto save 1 just gz.
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
Re: Gold Carryover
Maybe you have it in the wrong scenario then.
Re: Gold Carryover
I checked that, just incase I did it put it in both scenarios. It still carryovers gold.zookeeper wrote:Maybe you have it in the wrong scenario then.
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
Re: Gold Carryover
I believe the default is 100 gold for a scenario. Are you specifying the amount of gold for the side with gold=0 or some other value?
rmj
Re: Gold Carryover
Gold=75rmj wrote:I believe the default is 100 gold for a scenario. Are you specifying the amount of gold for the side with gold=0 or some other value?
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
- Elvish_Hunter
- Posts: 1575
- Joined: September 4th, 2009, 2:39 pm
- Location: Lintanir Forest...
Re: Gold Carryover
This part is perfect to be placed inside an [objectives] tag, to warn the player that no gold will be carried over; but this has no practical effect on the scenario.tribes45 wrote:here what I put in the Prestart event.Code: Select all
[gold_carryover] bonus=no carryover_percentage=0 [/gold_carryover]
What may really interest you is the [endlevel] tag. Example:
Code: Select all
[event]
name=enemies defeated
[endlevel]
result=victory
bonus=no
carryover_percentage=0
[/endlevel]
[/event]
Current maintainer of these add-ons, all on 1.16:
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
Re: Gold Carryover
Thanks.Elvish_Hunter wrote:This part is perfect to be placed inside an [objectives] tag, to warn the player that no gold will be carried over; but this has no practical effect on the scenario.tribes45 wrote:here what I put in the Prestart event.Code: Select all
[gold_carryover] bonus=no carryover_percentage=0 [/gold_carryover]
What may really interest you is the [endlevel] tag. Example:Also, Alarantalara's solution (carryover_percentage inside a [scenario] tag) won't work if you specified victory_when_enemies_defeated=no.Code: Select all
[event] name=enemies defeated [endlevel] result=victory bonus=no carryover_percentage=0 [/endlevel] [/event]
EDIT NONE of these work..
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
Re: Gold Carryover
I've had similar issues also. Sometimes Wesnoth likes quote marks around text, sometimes it will respond to "yes" differently to true or 1, etc. Try:tribes45 wrote:EDIT NONE of these work..
Code: Select all
[endlevel]
result=victory
carryover_add=true
carryover_report=no
bonus=no
carryover_percentage="0"
[/endlevel]
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Gold Carryover
0 and 1 are no longer considered boolean values, so that could be at least part of it.Coffee wrote:I've had similar issues also. Sometimes Wesnoth likes quote marks around text, sometimes it will respond to "yes" differently to true or 1, etc. Try:tribes45 wrote:EDIT NONE of these work..
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
- Elvish_Hunter
- Posts: 1575
- Joined: September 4th, 2009, 2:39 pm
- Location: Lintanir Forest...
Re: Gold Carryover
OK, at this point every suggestion that we can give you will be only wild guessing, as we don't really know what are you doing (yet). Please post the whole content of your scenario, or the whole campaign compressed in a zip file, so we can take a look.tribes45 wrote:EDIT NONE of these work..
Current maintainer of these add-ons, all on 1.16:
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)