Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:start:{
- nick Severus
- s irc.zen-attitude.org
- }
- On *:connect:{ ns id 1234567 }
- On ^1:text:*:*:{
- if !joueur == $1 {
- if ($2 ison $chan && $3 ison $chan) {
- mode $active +vvm $2 $3
- set %j1 $2
- set %j2 $3
- msg $active Le match peut donc commencer les participants sont %j1 et %j2 $+ .
- msg $active Nous allons déterminer qui va commencer le duel par un Pile ou Face, c'est simple tapez !pile ou !face
- }
- set %resul $rand(1,2)
- .timer 1 10 definir_tour_et_bonus
- }
- }
- Dans pile_face.ini :
- On ^1:text:*:*:{
- if (!pile == $1 && !%rand) {
- if $nick == %j1 { set %resulj1 1 | set %resulj2 2 }
- else { set %resulj2 1 | set %resulj1 2 }
- set %rand
- }
- if (!face == $1 && !%rand) {
- if $nick == %j1 { set %resulj1 2 | set %resulj2 1 }
- else { set %resulj2 2 | set %resulj1 1 }
- set %rand
- }
- }
- Dans alias.ini :
- alias definir_tour_et_bonus {
- if %resul == %resulj1 {
- set %depart %j1
- }
- else {
- set %depart %j2
- }
- say $active Le match va bientôt commencer. Nous allons tout d'abord définir les Bonus.
- set %j1_pv $calc(20+ $rand(1,6))
- set %j1_pm $calc(40+ $rand(1,6))
- set %j2_pv $calc(20+ $rand(1,6))
- set %j2_pm $calc(40+ $rand(1,6))
- .timer 1 5 say $active Le joueur 1 possède donc %j1_pv PV et %j1_pm PM.
- .timer 2 5 say $active Le joueur 2 possède donc %j2_pv PV et %j2_pm PM.
- .timer 3 10 Nous pouvons désormais commencer, par %depart $+ .
- }
Add Comment
Please, Sign In to add comment