List of interesting eventing points (XP)

Started by Zeriab, August 24, 2009, 07:59:38 am

Previous topic - Next topic

Zeriab

Hey all!
I made a list of what I considered important points in event or points which could take a long time to discover on your own. (If you discover it at all)
Feel free to add your points ^_^


  • Set Move Route overrides previous move route for the player or given event
  • Set Move Route and Player Touch
  • Wait for Move's Completion issue
  • New Event Tab cancels Move Route
  • Reluctance of events moving onto other events
  • Tileset events and Through
  • Parallel/Autorun events loops
  • Common events on parallel trigger restart on map change
  • Force action does not work on turn 0 in battles
  • Defending actor + force action
  • Self-switches in common events
  • 'This event' in common events


Set Move Route overrides previous move route for the player or given event
I have seen a lot of support questions regarding which is due to this.
A typical cause are evented dash systems. You have to set a move route to change the speed of the player.
You can for example set a move route for the player to do something in a cutscene. The dash system then sets a new move route for the player and the player stops after one step or so.
The same holds for any events. Note that each event has their own move route (or none).
Note that events and the player don't have to have a move route. This is important for the following issue:

Set Move Route and Player Touch
If you have a passable event on Player Touch trigger, the event will NOT trigger if the player walks over the tile using a Set Move Route. If the player stops on the tile the event will trigger, but it will not trigger if the player continues.
You can fix this by setting the event trigger to Event Touch.

Wait for Move's Completion issue
Its wait until the player and no event have a move route. If you set a move route for an event which is on repeat action, then it never ends.
This can cause the game to practically freeze. As a general rule don't use Wait for Move's Completion. It can lead to hard-to-spot freezes which in the worst case can appear to happen randomly.

New Event Tab cancels Move Route
Let's say you have an event with two tabs, each with the same character.  The condition on the second tab is not true (so the first tab is 'active').
You have another event that executes a "Set Move Route" on this character event.  The character starts moving across the screen.
If the condition on the second tab becomes true while the character is in the middle of the move route, the move route will be cancelled and he will stop walking.

Reluctance of events moving onto other events
An event will not move onto a tile occupied by another event unless either of them has Through ON. (Or both)
The same holds for the player. The player basically treated as an event when other events move around.

Tileset events and Through
The passability settings are ignored for events which has Through ON. The same holds for the player.
Tileset events are interesting in this regard because they can turn impassable tiles to passable tiles.
Let's say you have a tileset event which turn an impassable tile into being passable. If we set Through ON for the event then its passability settings will be ignored. Yes, the passable tile will now not be passable anymore.
It is something to keep in mind. Especially for bridges that will be built some time into the game.
If you events to be able to cross the bridge without having Through ON then you must make the tiles underneath passable and use blocking events for when the bridge is out. Let the pages displaying the bridges have Through ON.

Parallel/Autorun events loops
When a parallel or autorun event has finished processing it will be processed again (next frame in case of parallel events).
Typical issues happens when you use event commands which takes several frames to complete.
For example showing an animation or moving an event or the player with a parallel event. Only the first few frames are shown over and over with the show animation and only the first move command is considered.
The solution simple to change the condition so that it doesn't loop after it has finished processing the event, which can be done by erasing the event or changing the page. Or in terms of common events, turning off the triggering switch.
In this aspect the Exit Event Processing command may lead to confusion since it ends the processing of the event. You may therefore get unwanted loops. Just change the conditions before the exit event processing command.

Common events on parallel trigger restart on map change
A typical case where this is a problem is if you want to have an invisible time running across maps.
If you have a Wait 999 frames event command, then it'll start over each time you transfer to a new map. (A solution for this is to wait say 4 frames, add to a variable and Exit Event processing if the variable is not over some value (conditional branch))

Force action does not work on turn 0 in battles
You can for example not have an item which causes on of the actor to attack immediately, nor can you have the monsters attack immediately. (I.e. before you can run away)
You can mimick it with animations and deal damage, but it's very tedious.

Defending actor + force action
This may not be an issue, but it's worth noting.
Let's say you set Actor 2 to defend and have a force action which causes Actor 2 to attack in Normal sequence. (Let's say the force action is in a common event triggered by the skill of Actor 3)
If Actor 2 acts before Actor 3 then Actor 2 will not attack when Actor 3 acts, but Actor 2 will not defend anymore. This means more damage for monsters attacking Actor 2 after Actor 3 has acted.

Self-switches in common events
I have wrote a tutorial about this matter ~ http://forum.chaos-project.com/index.php?topic=2425.0

'This event' in common events
It refers to the map event calling that common event (either directly or indirectly)
If there's not a map event calling that common event then the event command has no effect.



Special Thanks
Animus
Kipe
Regi
Shaz

*hugs*
- Zeriab

Blizzard

I think this topic is more suited in Tutorials. What do you think?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

RoseSkye

Quote from: Blizzard on August 24, 2009, 01:29:04 pm
I think this topic is more suited in Tutorials. What do you think?


*Pinches Blizz's butt*

;)

Seven spectacular sages sees some surprising sex sensually.

Zeriab

I was considering putting it in Tutorials, but it's more of a 'stuff important to know' rather than 'how to do stuff'.
I think it's more suited here for people making or intending to make event systems.

Blizzard

Still a tute. That's what tutes are for. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Zeriab

I consider it a gray area. I think that it could really be both places.
Place it wherever the benefit is greatest XD

Rezca

Late post...

But one thing I have noticed in eventing is when two tabs of an event meet the same conditions, it can lead to an infinite loop during a cutscene. With my cutscene, the player crosses an Event Touch tile. It moves over to the second tab which has a condition of a switch that the first tab turns on. The cutscene plays and then switches Self Switch A on to 'turn off' the cutscene. Now the player can move about, but when he moves over the tile that triggered the cutscene, it fires the event back up an plays the events all over again. Shortening it to two pages where Page 1 is the cutscene and Page 2 is a blank page requiring a switch to be turned on from the first page. This kept the events from looping endlessly via a flawed event layout.

Magus

LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Calintz

I'm gonna go ahead and "LVL" you up for this Zeriab.

Zeriab

I don't mind late posts when they provide contents :3
I guess I should write about how the order of event pages work.
I didn't even imagine there could be trouble understanding how that worked. This shows the problem of someone very experienced making a topic like this  :'(
On the bright side it's nice I have people telling me about them :D

The page in use is the highest page with it's preconditions fulfilled.
I don't have more time to write a more detailed explanation. Hopefully I won't forget it and write it within a week or two.

@Calintz: Thanks <3

*hugs*