Gw Temp

Menu

Tutorial - 'Mind Read Skill' by siba

An item about RPGMaker 2000 posted on

Blurb

If you ever wanted to have psychics in your game, be sure to check this one out.

Body

Mind Read Skill
by: Siba

In this tutorial I will help you create a mind read skill that allows you to read an NPC's minde (random messeges) when the skill is known.

--------------------
Skill
--------------------
1. Creat a new skill (Mind Read)

--------------------
Common Event
--------------------
1. Make a common event. (name it mind read or something of the sort)
2. Make it "Call".
3. The code:

<>Branch if "HERO" Mind Read Skill useable
<>Variable Oper: [#:Mindread Random] Set, Rnd [1-5]
<>Branch if Var [#:Mindread Random] is 1
<>Messege: [whatever you want it to say]
<>
: END
<>Branch if Var [#:Mindread Random] is 2
<>Messege: [whatever you want it to say]
<>
: END
<>Branch if Var [#:Mindread Random] is 3
<>Messege: [whatever you want it to say]
<>
: END
<>Branch if Var [#:Mindread Random] is 4
<>Messege: [whatever you want it to say]
<>
: END
<>Branch if Var [#:Mindread Random] is 5
<>Messege: [whatever you want it to say]
<>
: END
<>
: END
<>


What this does...is makes a random messege...steps to get this:

1. Make a conditional branch
2. Hero >> Can use "Mind Read" skill
3. Uncheck Custom Handler

[rest of commands go inside this branch]

4. Make a variable opperation
5. Single Variable - Make a variable called Mind Read
6. Set to equal
7. Random Number between 1 and 5

[you can enlarge..or decrease..if so add or remove step:8]

8. Make another conditional branch
9. Variable - [#:Mind Read] (The one you made on step 5
10. Number is 1
11. Uncheck custom handler

[inside this conditional branch]

12. messege: [whatever you want it to say]

[back to inside first conditional branch]

13. repeat steps 8-12 four more times, changing step ten to "Number is 2".."Number is 3".."Number is 4".."Number is 5"..

[**To make more random messeges, on step 7, make it Random number between 1 and "#", then on step 13 repeat the steps however mane more times.**]

--------------------
NPC
--------------------
1. Make an even beside an NPC
2. Make its Trigger Condition - Touched by Hero
3. Make it "Below Hero"
4. The code:

<>Branch if "HERO" Mind Read Skill useable
<>Messege: Do you wish to 'Mind Read'?
<>Show Choices: Yes/No
: [Yes] Handler
<>Call Event: Mind Read
<>
: [No] Handler
<>
: END
<>
: END
<>


- Copy and paste like behind the npc...so that you mind read in secret

what this does is makes it where when you step on the square around the NPC it asks you if you want to mind read...IF YOU HAVE THE SKILL...choose yes...and a random messege appears..