Difference between revisions of "Talk:A beginner's guide, lesson 5 - Anatomy of a quest, part 2"

imported>SmokingRope
imported>SmokingRope
Line 15: Line 15:
However, in stage 100 and beyond there is no indication of how or why the door is ever unlocked again. Some investigation led me to the door MS02BenirusSecretDoor and it's script aptly titled MS02SecretDoor.
However, in stage 100 and beyond there is no indication of how or why the door is ever unlocked again. Some investigation led me to the door MS02BenirusSecretDoor and it's script aptly titled MS02SecretDoor.


   ''Scriptname MS02SecretDoor''
   '''Scriptname MS02SecretDoor'''
    
    
   ''[[Begin]] [[OnActivate]]''
   '''[[Begin]] [[OnActivate]]'''
   '';Activation Capability for door after stage 88 and post quest''
   ''';Activation Capability for door after stage 88 and post quest'''
 
 
   ''if ( [[GetStage]] MS02 >= 110 ) && ( [[IsActionRef]] [[Player]] == 1 )''
   '''if ( [[GetStage]] MS02 >= 110 ) && ( [[IsActionRef]] [[Player]] == 1 )'''
   ''  [[Activate]]''
   '''  [[Activate]]'''
   ''elseif( [[GetStage]] MS02 >= 90 ) && ( [[IsActionRef]] VelwynBenirusRef == 1 )''
   '''elseif( [[GetStage]] MS02 >= 90 ) && ( [[IsActionRef]] VelwynBenirusRef == 1 )'''
   ''  [[Activate]]''
   '''  [[Activate]]'''
   ''endif''
   '''endif'''
 
 
   ''end''
   '''end'''
 
 
   ''[[Begin]] [[GameMode]]''
   '''[[Begin]] [[GameMode]]'''
   ''  [[Unlock]]''
   '''  [[Unlock]]'''
   ''end''
   '''end'''


I'm still slightly confused as to how this script works as the 'begin gamemode' portion indicates to me the door would be unlocked every time the player clicked on the door, thus making it quite easy for the player to get through the door after each frame and when the player clicks on the door!  
I'm still slightly confused as to how this script works as the 'begin gamemode' portion indicates to me the door would be unlocked every time the player clicked on the door, thus making it quite easy for the player to get through the door after each frame and when the player clicks on the door!  


However it is obvious that once the player has reached stage 110 they would be able to get through the unlocked door due to the explicit call to [[Activate]].
However it is obvious that once the player has reached stage 110 they would be able to get through the unlocked door due to the explicit call to [[Activate]].
Anonymous user