Post by Ethan Hawkeye on Aug 28, 2004 16:36:38 GMT -5
First You must have a picture made of what it is you intend to have your hero read. There are several empty parchment pictures around and all you can simply do is open one in paint or Idraw and edit it to have words written upon it. Save the picture and put it into the picture folder in your game's folder. Next in your game make an event of a piece of paper lying somewhere and you can place it wherever you want the hero to find it, such as on a desk. Set the EVENT START CONDITION to PUSH KEY and the POSITION to SAME LEVEL AS HERO. Next in the event commands box put in a message saying something like READ LETTER? Then under that make a SHOW CHOICES command with two choices reading something like YES and NO, Leave the NO command blank. Last in the command box, under the :[YES] case put in a CHANGE SWITCH command and make the switch something like PAGE1 if you like and set it to ON. So in the command box what you should have is
<>Message: READ LETTTER?
<>Show Choice: YES/NO
:[YES] Case
<>Change Switch: Var[00??AGE1] Switch ON
<>
:[NO] Case
<>
:End Case
<>
The ?? representing the number of switch you use. That's all you need to do in this event box. Now go into the DATABASE and into COMMON EVENTS and make a new event such as LETTER1. Set the common event to PARRALEL PROCESS and make the appearence condition switch the same switch you used in the last event, so we used PAGE1 so that would be the same switch to use as the appearence condition switch. Now in the event commands area this is the coding we're going to put in. First make a SHOW PICTURE command and set the picture to whatever picture you made earlier with writing on parchment and you can leave the positioning and rest alone as the defaul settings and click ok now. Next make an ENTER PASSWORD command and set the variable to something like READPAGE and check off WAIT UNTIL KEY HIT, DECISION(5) and CANCEL(6) leave DIRECTION(1,2,3,4) unchecked and now click ok. Last command to put in is an ERASE PICTURE command to erase whatever pic number was the picture you just placed, the default setting is pic one. That's all the coding there is, you can't go wrong with it, though there are simpler ways and shorter ways this is one of your best bets in my opinion to go with. So the coding for the common event will look somewhat like this is the end...
<>Show Picture:ID:1 PAGE1(160,120)
<>Enter Password: Var[??:READPAGE]
<>Erase Picture:ID:1
<>
<>Message: READ LETTTER?
<>Show Choice: YES/NO
:[YES] Case
<>Change Switch: Var[00??AGE1] Switch ON
<>
:[NO] Case
<>
:End Case
<>
The ?? representing the number of switch you use. That's all you need to do in this event box. Now go into the DATABASE and into COMMON EVENTS and make a new event such as LETTER1. Set the common event to PARRALEL PROCESS and make the appearence condition switch the same switch you used in the last event, so we used PAGE1 so that would be the same switch to use as the appearence condition switch. Now in the event commands area this is the coding we're going to put in. First make a SHOW PICTURE command and set the picture to whatever picture you made earlier with writing on parchment and you can leave the positioning and rest alone as the defaul settings and click ok now. Next make an ENTER PASSWORD command and set the variable to something like READPAGE and check off WAIT UNTIL KEY HIT, DECISION(5) and CANCEL(6) leave DIRECTION(1,2,3,4) unchecked and now click ok. Last command to put in is an ERASE PICTURE command to erase whatever pic number was the picture you just placed, the default setting is pic one. That's all the coding there is, you can't go wrong with it, though there are simpler ways and shorter ways this is one of your best bets in my opinion to go with. So the coding for the common event will look somewhat like this is the end...
<>Show Picture:ID:1 PAGE1(160,120)
<>Enter Password: Var[??:READPAGE]
<>Erase Picture:ID:1
<>