Going Bankrupt
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.
Going Bankrupt
Alright, so, Im trying to make it so that when one's gold goes down to zero or below, they lose. This is for a multiplayer scenario, so I used "kill" instead of "endlevel", btw.
i looked it up on the forums, and got the exact same thing that I was using, but neither seem to work.
pls help
i looked it up on the forums, and got the exact same thing that I was using, but neither seem to work.
pls help
Code: Select all
[store_gold]
side=1
variable=sideonegold
[/store_gold]
[if]
[variable]
name=sideonegold
less_than=0
[/variable]
[then]
[kill]
side=1
canrecuit=1
[/kill]
[/then]
[/if]
The dragons are all colour-coded,
Some consider this system outmoded.
This was not preordained
Gary Gygax explained,
"My box of Crayolas exploded."
Some consider this system outmoded.
This was not preordained
Gary Gygax explained,
"My box of Crayolas exploded."
Code: Select all
[kill]
side=1
canrecuit=1
[/kill]
Yes?zookeeper wrote:...Code: Select all
[kill] side=1 canrecuit=1 [/kill]
The dragons are all colour-coded,
Some consider this system outmoded.
This was not preordained
Gary Gygax explained,
"My box of Crayolas exploded."
Some consider this system outmoded.
This was not preordained
Gary Gygax explained,
"My box of Crayolas exploded."
"canrecuit"?
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
-
- Posts: 676
- Joined: July 20th, 2006, 4:45 pm
- Location: Germany
Re: Going Bankrupt
So when is this going to be activiated?TheLost1 wrote:Alright, so, Im trying to make it so that when one's gold goes down to zero or below, they lose. This is for a multiplayer scenario, so I used "kill" instead of "endlevel", btw.
i looked it up on the forums, and got the exact same thing that I was using, but neither seem to work.
pls help
Code: Select all
[store_gold] side=1 variable=sideonegold [/store_gold] [if] [variable] name=sideonegold less_than=0 [/variable] [then] [kill] side=1 canrecuit=1 [/kill] [/then] [/if]
It should be, as an example, like this:
Code: Select all
[event]
name=new_turn
[store_gold]
side=1
variable=sideonegold
[/store_gold]
[if]
[variable]
name=sideonegold
less_than=0
[/variable]
[then]
[kill]
side=1
canrecruit=1
[/kill]
[/then]
[/if]
[event]
And by the way, this only makes the leader get killed. This isn't a real problem, but you might want to kill the entire side instead. For this, just remove the 'canrecruit=1'.
Code: Select all
first_time_only=yes