Moo

Gold Carryover

The place to post your WML questions and answers.

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.
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Gold Carryover

Post by tribes45 »

Okay, so I'm making a Strictly low gold scenario, and each time I try to disable gold carryover, this happens:
Spoiler:

here what I put in the Prestart event.

Code: Select all

[gold_carryover]
                bonus=no
				carryover_percentage=0
            [/gold_carryover]
Thanks for the help, Appreciate it.
"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
User avatar
Alarantalara
Art Contributor
Posts: 784
Joined: April 23rd, 2010, 8:17 pm
Location: Canada

Re: Gold Carryover

Post by Alarantalara »

You're probably looking for something more like:

Code: Select all

[scenario]
    victory_when_enemies_defeated=yes
    carryover_percentage=0
    ....
[/scenario]
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.
User avatar
The_Other
Posts: 189
Joined: February 3rd, 2012, 10:05 pm
Location: UK

Re: Gold Carryover

Post by The_Other »

Try this...

Code: Select all

carryover_percentage=0
This doesn't go in an [event] tag, but inside [scenario] and outside all other tags.

EDIT: Alarantalara obviously types faster than I do...
Nothing is true; everything is permissible.
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Re: Gold Carryover

Post by tribes45 »

Thanks guys, I was basing it on Heir to the throne ;)
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
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: Gold Carryover

Post by alluton »

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
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Re: Gold Carryover

Post by tribes45 »

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
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Gold Carryover

Post by zookeeper »

Maybe you have it in the wrong scenario then.
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Re: Gold Carryover

Post by tribes45 »

zookeeper wrote:Maybe you have it in the wrong scenario then.
I checked that, just incase I did it put it in both scenarios. It still carryovers gold.
"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
User avatar
rmj
Posts: 256
Joined: July 4th, 2010, 5:21 am

Re: Gold Carryover

Post by rmj »

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
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Re: Gold Carryover

Post by tribes45 »

rmj 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?
Gold=75
"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
User avatar
Elvish_Hunter
Forum Moderator
Posts: 1444
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

Re: Gold Carryover

Post by Elvish_Hunter »

tribes45 wrote:here what I put in the Prestart event.

Code: Select all

[gold_carryover]
                bonus=no
				carryover_percentage=0
            [/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.
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]
Also, Alarantalara's solution (carryover_percentage inside a [scenario] tag) won't work if you specified victory_when_enemies_defeated=no.
Current maintainer of these add-ons:
1.14: The Sojournings of Grog, A Rough Life, The White Troll (co-author), Wesnoth Lua Pack
1.12: Children of Dragons
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Re: Gold Carryover

Post by tribes45 »

Elvish_Hunter wrote:
tribes45 wrote:here what I put in the Prestart event.

Code: Select all

[gold_carryover]
                bonus=no
				carryover_percentage=0
            [/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.
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]
Also, Alarantalara's solution (carryover_percentage inside a [scenario] tag) won't work if you specified victory_when_enemies_defeated=no.
Thanks. :)

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
User avatar
Coffee
Developer
Posts: 180
Joined: October 12th, 2010, 8:24 pm

Re: Gold Carryover

Post by Coffee »

tribes45 wrote:EDIT NONE of these work..
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:

Code: Select all

[endlevel]
	result=victory
	carryover_add=true
	carryover_report=no
	bonus=no
	carryover_percentage="0"
[/endlevel]
User avatar
Pentarctagon
Project Manager
Posts: 4508
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Gold Carryover

Post by Pentarctagon »

Coffee wrote:
tribes45 wrote:EDIT NONE of these work..
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:
0 and 1 are no longer considered boolean values, so that could be at least part of it.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Elvish_Hunter
Forum Moderator
Posts: 1444
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

Re: Gold Carryover

Post by Elvish_Hunter »

tribes45 wrote:EDIT NONE of these work..
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. :)
Current maintainer of these add-ons:
1.14: The Sojournings of Grog, A Rough Life, The White Troll (co-author), Wesnoth Lua Pack
1.12: Children of Dragons
Post Reply