The Tournament Director Forums

Main => Help Me => Topic started by: mcfrojd on January 18, 2012, 07:16:55 AM

Title: prize index token shows even if no prize
Post by: mcfrojd on January 18, 2012, 07:16:55 AM
Im using the following tokens:

<prize index="1" showName="false">
<prize index="2" showName="false">
<prize index="3" showName="false">

if i only buy in 1-4 players, all 3 tokens shows the first (and only) prize amount
if i buy in 5-6 players the 3:rd prize token shows 2:nd prize amount when sholud be none.


Having the following prizestructur in autoPrizes.xml

1-4 players = 1 prize
5-6 players = 2 prizes
7-20 players = 3 prizes
Title: Re: prize index token shows even if no prize
Post by: Corey Cooper on January 18, 2012, 05:06:16 PM
If the index provided to the <prize> token is too large, you'll get the last prize in the prize list.  For example, if you have 3 prizes, and you provide an index of 5, you'll get prize 3.

If you provide an index that is non-numeric, it will default to 1 (the first prize in the list).

So what you are seeing is in fact the intended behavior.  You've asked it to display prize number 3, but there's only 1 prize, so it displays prize 1 instead.

I can add an option to display nothing if the index is invalid.
Title: Re: prize index token shows even if no prize
Post by: mcfrojd on January 19, 2012, 12:04:36 AM
To show nothing or any editable label would be to prefer. (no prize)

If possible i would like to see an "bounty" token that can display the name of the one person you have choosen to set an bounty on, on the prize tab.

To day if i add an bounty prize and lock it, it becomes prize nr 2, 3 or 4 depending on number of players and therefor number of payout prize, witch makes me have to edit the token in the layout for every tournament. (running multiple small tournaments per night with dirrfent number of entrants each time.
Title: Re: prize index token shows even if no prize
Post by: Corey Cooper on January 19, 2012, 07:12:58 AM
To day if i add an bounty prize and lock it, it becomes prize nr 2, 3 or 4 depending on number of players and therefor number of payout prize, witch makes me have to edit the token in the layout for every tournament. (running multiple small tournaments per night with dirrfent number of entrants each time.

Set your Automatic Prizes to add prizes to the bottom of the prize list.  Then your bounty prize won't move.
Title: Re: prize index token shows even if no prize
Post by: mcfrojd on January 19, 2012, 07:37:15 AM
Set your Automatic Prizes to add prizes to the bottom of the prize list.  Then your bounty prize won't move.

That worked like a charm, thanks..
Title: Re: prize index token shows even if no prize
Post by: mcfrojd on January 19, 2012, 07:41:31 AM
I can add an option to display nothing if the index is invalid.

That would be great, then i would not have to edit the layout at all depending of the number of prizes.
Title: Re: prize index token shows even if no prize
Post by: Corey Cooper on January 19, 2012, 10:10:39 AM
It's already added for 3.1.
Title: Re: prize index token shows even if no prize
Post by: mcfrojd on January 19, 2012, 11:10:41 AM
It's already added for 3.1.

Thanks..

Solved it for now by adding an extra cell that i ticked "hide cell" in so that i can switch manually.