Hi all.
So I'm still learning what I can do... Here's what I've done tonight, I was wondering if anyone would review how I've gone about things and suggest any better ways. This solution works, but is the best way? I don't know.
My Aim: have an area in the middle of my map (a room). Make this an area where if the user presses the action button, the rooms description or a cryptic clue is displayed.
What I didn't want to do is create an event and copy/paste it over a heap of tiles. that just seemed lazy and inefficient.
How I have done it is placed a set of Region1 ID's in the middle of the room, created a parallel process that when it detects my player is in the RegionID, moves the RoomDescription event and places it under the Player
For the first room, I wanted the Player to get a notification and a hint to say "Hey, look around" Here's what I've done so far for the first room (Which is working):
and a simple event for the room text
For every other room, i don't want to display the light bulb or the text, I just want to move the event.
So I thought, this is probably best suited to a Common Event as I don't want to copy/paste and edit this for every room...
I changed my Autorun to have:
and set up the Common Event
WOOHOO. This worked.
so what I am left with is creating an event called RoomDesc on every room and setting up the text inside it.
Based on the fact that word wrapping doesn't exactly play a part of the text boxes, I assume that this is the best way for me to put in my room info and have decent control over how it looks.
I considered if it was a possibility to have the parallel process create a RoomDesc event in the map when the player enters it and populate it with the text for the room from scripts - but this doesn't seem feasible.
or is it?
Have I gone about this the right way? Is there a better way to do this?
So I'm still learning what I can do... Here's what I've done tonight, I was wondering if anyone would review how I've gone about things and suggest any better ways. This solution works, but is the best way? I don't know.
My Aim: have an area in the middle of my map (a room). Make this an area where if the user presses the action button, the rooms description or a cryptic clue is displayed.
What I didn't want to do is create an event and copy/paste it over a heap of tiles. that just seemed lazy and inefficient.
How I have done it is placed a set of Region1 ID's in the middle of the room, created a parallel process that when it detects my player is in the RegionID, moves the RoomDescription event and places it under the Player
For the first room, I wanted the Player to get a notification and a hint to say "Hey, look around" Here's what I've done so far for the first room (Which is working):
Code:
Event: EV001 Trigger: Parallel Process on Autorun
Control Variables: [0003:PlayersX] = Player's Map X
Control Variables: [0003:PlayersY] = Player's Map X
Conditional Branch: Script: $game_player.region_id == 1
Show Balloon Icon: Player, Light Bulb
Conditional Branch: Variable [0001:Helped] == 0
Text: The centre of a room is a good place to
Press [Action button] to look around
Control Variables: )0001:Helped] ++1
Else
Branch End
Set Event Location: [RoomDesc], Variable [0003][0004]
Else
Branch End
Wait 5 Frame(s)
and a simple event for the room text
Code:
Event: RoomDesc Trigger: Action Button
Text: The room's text goes here
For every other room, i don't want to display the light bulb or the text, I just want to move the event.
So I thought, this is probably best suited to a Common Event as I don't want to copy/paste and edit this for every room...
I changed my Autorun to have:
Code:
Control Switches: [0003:RoomText] = ON
Call Common Event: [RoomInfo]
Control Select Switch: A =ON
and set up the Common Event
Code:
CommonEvent: RoomInfo. Trigger Parallel Process. Condition Switch 0003:RoomText
Control Variables: [0003:PlayersX] = Player's Map X
Control Variables: [0003:PlayersY] = Player's Map X
Conditional Branch: Script: $game_player.region_id == 1
Set Event Location: [RoomDesc], Variable [0003][0004]
Else
Branch End
Wait 5 Frame(s)
WOOHOO. This worked.
so what I am left with is creating an event called RoomDesc on every room and setting up the text inside it.
Based on the fact that word wrapping doesn't exactly play a part of the text boxes, I assume that this is the best way for me to put in my room info and have decent control over how it looks.
I considered if it was a possibility to have the parallel process create a RoomDesc event in the map when the player enters it and populate it with the text for the room from scripts - but this doesn't seem feasible.
or is it?
Have I gone about this the right way? Is there a better way to do this?