DefaultCash. For a player or for all?

Dune 2000

Information and discussion for custom maps and mods.
Post Reply
Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

DefaultCash. For a player or for all?

Post by Adrian »

There is value DefaultCash in the file rules.yaml.
It defines start money for the player. For a human player.

In original Dune 2000, every side can receive own sum (of money).
For example, Atreides 5000, Ordos 7000, etc.

If here, in OpenRa, in the file rules.yaml, for example
DefaultCash: 7000
then who will receive the sum?
Is it for human player only or for all?

abcdefg30
Posts: 641
Joined: Mon Aug 18, 2014 6:00 pm

Re: DefaultCash. For a player or for all?

Post by abcdefg30 »

It will be for all players.

User avatar
MustaphaTR
Posts: 203
Joined: Mon Aug 04, 2014 6:38 am
Location: Kastamonu, Turkey

Re: DefaultCash. For a player or for all?

Post by MustaphaTR »

You can use Lua if you want a player to start with a different value than the default. If you want so you can make a code that scales accordingly.

Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

Re: DefaultCash. For a player or for all?

Post by Adrian »

Thank you very much, MustaphaTR.

I found "Map Script Making Tutorial" here, about using Lua, thanks to you.
And this is really possible — to define different sums for different players.
I already test it.

Post Reply