score and different points

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
User avatar
fire olli
Super Star
Super Star
Posts: 1176
Joined: Wed Mar 22, 2006 10:40 am
Location: Chorley, Lancashire

score and different points

Post by fire olli »

I am helping the ribble warriors put together some rules for the ribble rumble.

I am going to use score! Is there a way of changing the settings so you can have different points scoring systems.

Eg

12-12 tie
16-8 win by one TD
19-5 win by two TD
22-2 win by three TD
24-0 win by four TD.

Similar for case as well.

Olli

Reason: ''
Image
User avatar
Darkson
Da Spammer
Posts: 24047
Joined: Mon Aug 12, 2002 9:04 pm
Location: The frozen ruins of Felstad
Contact:

Re: score and different points

Post by Darkson »

You can, but you'll need to work out the forumla.

From the help file:

Code: Select all

Scoring Formulas
The Scoring Formulas are used when calculating a team's score. There are four formulas that can be edited in the Tournament Settings Screen. There is an individual formula to calculate the score for winning, drawing, losing or conceding a game. Scoring formulas are simple calculations and allow addition (+), subtraction (-) or multiplying (*) some numbers. Numbers can be typed in directly or taken from the games. To do the latter you can use the following variables: tdconceded, tdmade, nettd, casconceded, casmade, netcas. 

In addition, you can use the following four functions:
limit(v1,v2,v3):	returns v1 if it is between v2 and v3. If it is smaller then v2 is returned, if v1 is greater v3 is returned.
max(v1,v2):				returns the greatest of the two values.
min(v1,v2):				returns the least of the two values.
is(v1>v1), is(v1=v2), is (v1<v2): 	returns 1 of the expression within the parenthesis is true, 0 if it is false.

These formulas can be embedded within each other to perform complex calculations. For example to give a player between a point for every casualty if he wins on casualties up to a maximum of 3 use max(min(cn,3),0). This is actually the same as the formula limit(cn,0,3), but both should work equally well. If you want to give a player 2 points of he scored 2 or more touchdowns use is(tf>1)*2. 

The controls that allow you to enter a formula do a very basic syntax check, if it finds something wrong with it the text is coloured red.

Valid variables are:
new notation 	(old notation)		what it does
tf		tdmade			touchdowns for
ta		tdconceded		touchdowns against
tn		nettd			netto touchdowns
cf		casmade		touchdowns for
ca		casconceded		touchdowns against
cn		netcas			netto touchdowns
b		bonus			bonus points scores
ba		bonusagainst		bonus points scores by opponent

I'm sure someone can sort it for you. ;)

Reason: ''
Currently an ex-Blood Bowl coach, most likely to be found dying to Armoured Skeletons in the frozen ruins of Felstad, or bleeding into the arena sands of Rome or burning rubber for Mars' entertainment.
Post Reply