agi-game:leisuresuitlarry:reference-timer

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
agi-game:leisuresuitlarry:reference-timer [2021/05/02 21:34] – [varClearStatusSeconds [v68]] frateragi-game:leisuresuitlarry:reference-timer [2021/05/02 21:42] – [varTimerBreathSpraySeconds [v80]] frater
Ligne 62: Ligne 62:
     }     }
 </code>     </code>    
-==== v72 & v71 ====+==== varTimerSprayMinutes [v72varTimerSpraySeconds [v71====
  
-The timing Handler decrease the v71 value until it's reach 0 (it can'nt be negative).+The timing Handler decrease the //varTimerSpraySeconds// [v71value until it's reach 0 (it can'nt be negative).
  
-If the v72 is > 0; the handler decrease v72, and reset v71 to 60.+If the //varTimerSprayMinutes// [v72is > 0; the handler decrease //varTimerSprayMinutes// [v72], and reset //varTimerSpraySeconds// [v71to 60.
  
-It's somehow related to alcool usage (0:04) and breath spray (10:00)...+It's somehow related to breath spray (10:00)..
 + 
 +when v71 == 1 and v72 == 0 (timer is over), then handler raise flag //boolMouthSmellBad// [f107] and reset //boolMouthOK// [f66].
  
-when v71 == 1 and v72 == 0 (timer is over), then handler raise flag f107 and reset f66. 
 it display message 157 to 160, and preset the next message in the list, loop to 157 if message > 160. it display message 157 to 160, and preset the next message in the list, loop to 157 if message > 160.
  
-==== v80 ====+<code c> 
 +    if (varTimerSprayMinutes > 0 &&  
 +        varTimerSpraySeconds <0) 
 +      { 
 +      --varTimerSprayMinutes; 
 +      varTimerSpraySeconds 60;   
 +      } 
 +         
 +       
 +    if (varTimerSpraySeconds == 1 &&  
 +        varTimerSprayMinutes <= 0) 
 +      { 
 +      reset(boolMouthOK); 
 +      set(boolMouthSmellBad); 
 +      print.v(varMouthMessage); 
 +      ++varMouthMessage; 
 +      if (varMouthMessage > 160) 
 +        { 
 +        varMouthMessage = 157; 
 +        } 
 +      } 
 +</code> 
 +==== varTimerBreathSpraySeconds [v80====
 The timing Handler decrease the value until it's reach 1. The timing Handler decrease the value until it's reach 1.
  
-It's started when Larry use his breath spray when boolDisabledRoomJump (f48) is set or in the currentRoom 0.+It's started when Larry use his breath spray when //boolDisabledRoomJump// (f48) is set or in the currentRoom 0.
  
 When this timer hit 1 second left, the player re-gain the larry's control. When this timer hit 1 second left, the player re-gain the larry's control.
  
-it's also reset f34 flag.+it's also reset //boolKeepCycling// [f34flag. 
 + 
 +<code c> 
 +    if (varTimerBreathSpraySeconds == 1) 
 +      { 
 +      reset(boolDisabledRoomJump); 
 +      reset(boolKeepCycling); 
 +      set.view(ego, Larry_StandAndWalk); 
 +      start.motion(ego); 
 +      reset(boolDisablePlayer); 
 +      accept.input(); 
 +      print("Ahhh."); 
 +      } 
 +</code>      
  • agi-game/leisuresuitlarry/reference-timer.txt
  • Dernière modification : 2022/06/09 20:37
  • de frater