PRI and KEY

In-depth review

You may have seen me talk about the PRI command in the beginners section,

well now i'm going to get into more details about it.





Base descriptions:



PRI - Lock player controls and freeze game action.



KEY - Lock player controls and hide status bars until END.





Now these 2 commands stop the player from moving and hide the status bars until the script reaches the END command.

But there is one major difference between them.





PRI will completely freeze all action happening in the game with the exception of message boxes.



KEY will disable player movement, but it won't freeze the game.





So when would you want to use one over the other?



You would want to use PRI for something like opening a chest in a room filled with enemies.

Because if you used KEY, the enemies would be able to shoot at the player to no effect, while they were in the message

box.

Which would look weird and be highly inconvenient for the player once they were done with the event.

*The KEY command will make the player invincible until the scripted event ends

Using PRI in that situation would stop the enemies and allow the player to go through the scripted event without having to

worry about them.





You would want to use the KEY command for something like cutscenes.

Remember, PRI COMPLETELY FREEZES ALL GAME ACTION, that includes things like animating npc's to move around

during a cutscene.

All the KEY command would do, is just stop the player from moving, but it would still let everything else move.

Previous Section: Order matters

Next Lesson: MSG, MS2, and MS3

Table of Contents