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

m
formatting the code list
imported>Juharfalvi
imported>Juharfalvi
m (formatting the code list)
Line 310: Line 310:
  '''MS02BenirusGhostFRef.Enable'''
  '''MS02BenirusGhostFRef.Enable'''
  '''MS02BenirusGhostGRef.Enable'''
  '''MS02BenirusGhostGRef.Enable'''
 
  This Enable a whole bunch of ghost creatures
  This Enable a whole bunch of ghost creatures
  Each has this script attached to them.
  Each has this script attached to them.
 
  '''Scriptname MS02BenirusGhosts'''
  '''Scriptname MS02BenirusGhosts'''
 
  '''short GhostKill'''
  '''short GhostKill'''
   
   
Line 322: Line 322:
  '''if ghostKill == 1'''
  '''if ghostKill == 1'''
       '''Return'''
       '''Return'''
 
  ''(This ends the processing of the '''entire script''' for 1 frame. It will try again next frame, but all the lines below this one are not processed following the '''return''' command)''  
  ''(This ends the processing of the '''entire script''' for 1 frame. It will try again next frame, but all the lines below this one are not processed following the '''return''' command)''  
     '''endif'''
     '''endif'''
Line 331: Line 331:
  '''Endif'''
  '''Endif'''
  ''(This '''if block''' is used to get rid of the ghost near the end of the quest. It also sets ghostKill ==1 so that the return statement kicks in and prevent this script from running every frame)''
  ''(This '''if block''' is used to get rid of the ghost near the end of the quest. It also sets ghostKill ==1 so that the return statement kicks in and prevent this script from running every frame)''
 
  '''if ( GetDisabled == 0 ) && ( GetDead == 1 )'''
  '''if ( GetDisabled == 0 ) && ( GetDead == 1 )'''
       '''if ( Getstage MS02 >= 40 ) && ( getstage MS02 < 90 ) && ( Player.GetInCell AnvilBenirusManor == 0 )'''
       '''if ( Getstage MS02 >= 40 ) && ( getstage MS02 < 90 ) && ( Player.GetInCell AnvilBenirusManor == 0 )'''
Line 338: Line 338:
  '''endif'''
  '''endif'''
  (''This block checks that the ghosts have been enabled (not disabled , and that you have killed a ghost and you are in the manor. It then resurrects the ghost. This means they will keep coming back'')
  (''This block checks that the ghosts have been enabled (not disabled , and that you have killed a ghost and you are in the manor. It then resurrects the ghost. This means they will keep coming back'')
 
  '''end'''
  '''end'''


Anonymous user