<triggers>
<trigger
enabled="y"
group="DICE GAME"
match=""Winner!, We have a winner!" cries the manager with excitement."
name="WINNER"
script="DICEWIN"
sequence="100"
sound="C:\Program Files\Ahead\Nero\Trumpet1.wav"
>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="* Throw the dice and beat two to win!""
name="TWO"
sequence="100"
>
<send>throw dice</send>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="* Throw the dice and beat three to win!""
name="THREE"
sequence="100"
>
<send>throw dice</send>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="* Throw the dice and beat six to win!""
name="SIX"
sequence="100"
>
<send>cut dice</send>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="* Throw the dice and beat one to win!""
name="ONE"
sequence="100"
>
<send>throw dice</send>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="*"You lose", cries the manager, with unmistakable glee in his voice."
name="LOSER"
sequence="100"
sound="C:\Program Files\AIM95\Sounds\moo.wav"
>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="* Throw the dice and beat four to win!""
name="FOUR"
sequence="100"
>
<send>cut dice</send>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="* Throw the dice and beat five to win!""
name="FIVE"
sequence="100"
>
<send>cut dice</send>
</trigger>
<trigger
enabled="y"
group="DICE GAME"
match="*You tell the manager you would like to cut, and take back half your stake of"
name="CUT"
script="DICECUT"
sequence="100"
sound="C:\Program Files\Ahead\Nero\DingDong.wav"
>
</trigger>
<trigger
enabled="y"
expand_variables="y"
group="DICE GAME"
match=""New game!", cries the manager of the dice table, "Place your bets now!""
name="BET"
sequence="100"
>
<send>bet @wager</send>
</trigger>
</triggers>
<variables>
<variable name="WAGER">500</variable>
</variables>
Dim WAGER
Sub DICECUT (sName, sLine, wildcards)
WAGER = world.GetVariable ("WAGER")
WAGER = WAGER + 500
If WAGER > 4000 then
WAGER = 4000
End if
world.SetVariable "WAGER", WAGER
world.note WAGER
End Sub
Sub DICEWIN (sName, sLine, wildcards)
WAGER = world.GetVariable ("WAGER")
WAGER = 500
world.SetVariable "WAGER", WAGER
world.note WAGER
End Sub
Sub DICELOSE (sName, sLine, wildcards)
WAGER = world.GetVariable ("WAGER")
WAGER = WAGER * 2
If WAGER > 4000 then
WAGER = 4000
End if
world.SetVariable "WAGER", WAGER
world.note WAGER
End Sub
All Seems to be working now. thanks flannel |