- 9
- Posts
- 9
- Years
- Sinnoh
- Seen Feb 20, 2016
Hi! Sorry if this post is a bit scatterbrained, but I've never really participated in a forum before. Anyways, I'm trying to make an event where you write a certain message on a shrine to trigger a wild Shaymin battle. So far I have it to work up to where you can enter a message, but it doesn't trigger anything. I don't really have much experience in RPG Maker XP so I apologize if the answer is really easy.
This is what I would like to do the message input: youtu.be/sByOsZ6myFU?t=31s (sorry for bad quality, I couldn't find another video for it)
I'm pretty sure that the Conditional Branch is the part the part that is not working, but I'm not sure how to say "if message === "pure"". Thanks in advance.
Code:
@>Text: A small wooden monument has multiple messages scrawled on it.
@>Text: Write something?
@Show Choices: Yes,No
: When[Yes]
@>Script: message=pbEnterText(_INTL("What will you write?")0,7,_INTL(""))
@>Conditional Branch: Script: message== "pure"
@>Change Battle BGM: '(file w/ long name which I'm not going to bother putting here)'
@>Wait: 10 frame(s)
@>Screen Flash: (255,255,255,255), @5
@>Wait: 5 frame(s)
@>Play SE: '492Cry_1', 100, 100
@>Script: pbWildBattle(PBSpecies::SHAYMIN,20)
@>Control Switches: [0059: Shaymin battle] = ON
@>
: Else
@>
: Branch End
@>
: When [No]
@>
: Branch End
@>
This is what I would like to do the message input: youtu.be/sByOsZ6myFU?t=31s (sorry for bad quality, I couldn't find another video for it)
I'm pretty sure that the Conditional Branch is the part the part that is not working, but I'm not sure how to say "if message === "pure"". Thanks in advance.
Code:
@>Text: A small wooden monument has multiple messages scrawled on it.
@>Text: Write something?
@Show Choices: Yes,No
: When[Yes]
@>Script: message=pbEnterText(_INTL("What will you write?")0,7,_INTL(""))
@>Conditional Branch: Script: message== "pure"
@>Change Battle BGM: '(file w/ long name which I'm not going to bother putting here)'
@>Wait: 10 frame(s)
@>Screen Flash: (255,255,255,255), @5
@>Wait: 5 frame(s)
@>Play SE: '492Cry_1', 100, 100
@>Script: pbWildBattle(PBSpecies::SHAYMIN,20)
@>Control Switches: [0059: Shaymin battle] = ON
@>
: Else
@>
: Branch End
@>
: When [No]
@>
: Branch End
@>