Difference between revisions of "A beginner's guide, lesson 5 - Anatomy of a quest, part 2"
A beginner's guide, lesson 5 - Anatomy of a quest, part 2 (edit)
Revision as of 16:56, 30 June 2006
, 16:56, 30 June 2006modifying identation on long lines
imported>Juharfalvi m (modifying identation on long lines) |
imported>Juharfalvi m (modifying identation on long lines) |
||
Line 330: | Line 330: | ||
'''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 337: | Line 339: | ||
'''set GhostKill to 1''' | '''set GhostKill to 1''' | ||
'''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 )''' | ||
Line 344: | Line 348: | ||
'''endif''' | '''endif''' | ||
'''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''' |