Author Topic: List of global variables  (Read 551 times)

Tags:
  • All members
  • Posts: 59
List of global variables
« on: 06 May 2022, 16:56 »
I did the whole trigger request thing, and it works exactly how I asked it to work (thanks Oxa).

I'm just testing it now and trying to make small tweaks, and I'm struggling a bit because I don't really know what I'm doing.

I've been reading the manual, but it doesn't provide (or I haven't come across) a list of the global variables that are available to use.

I am working on a tennis trigger that makes a lay early in Set 2.

I'm tweaking the exit, and I would like to figure out which player has been layed and how many points each player has for this current set.

I can see I have access to these:
tennis_player_games_won
other_tennis_player_games_won

If I call the layed player "LAYED" and the other player "OTHER" and the score in the current set is LAYED 4-2 OTHER.

How can I do:
if LAYED == OTHER: FALSE
if LAYED != OTHER: TRUE
if LAYED >= OTHER: TRUE
if LAYED > OTHER: TRUE
if LAYED <= OTHER: FALSE
if LAYED < OTHER: FALSE

I know I could have just asked Oxa directly in my trigger thread, but I felt as though this information would be useful for anyone getting into building their own triggers.

  • Administrator
  • Posts: 8821
  • Gender: Female
*
Re: List of global variables
« Reply #1 on: 08 May 2022, 21:55 »
Hi!

The list of global variables (general variables) are on page 177, section "9.4.7.1 General".

But the ones you need are tennis market variables, they are on page 191, section "Tennis Score Variables. Only valid in Tennis markets."

The player who was layed will have lay_matched > 0.
Also, you can get that selection by checking the condition:

Trigger {name of trigger that did the laying} Number of runs per selection is greater than 0

You can check the scores of each players in this way:

Trigger {name of trigger that did the laying} Number of runs per selection is greater than 0
AND
  OR
    Selection's Index is equal to 1
    and Selection's Trigger Expression tennis_player1_games_won is greater than tennis_player2_games_won
  OR
    Selection's Index is equal to 2
    and Selection's Trigger Expression tennis_player2_games_won is greater than tennis_player1_games_won

So you're saying, if my (layed) selection is the first in list, its number of games will be in tennis_player1_games_won, otherwise it will be in tennis_player2_games_won.
Use this logic to add more conditions or request a new trigger to add more requirements.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 59
Re: List of global variables
« Reply #2 on: 09 May 2022, 13:24 »
Thanks Oxa.

 

Please note, BetFair is seems to be currently OFFLINE