Help - Search - Members - Calendar
Full Version: conditional branch
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
AlmerzaGrsh
hey everybody,

I have a difficult time on using

conditional branch [skill] learned whenever I use this nothing happen why?



for instance I make my character learn heal on level 2 and I made on common event conditional branch when the character learn heal money increase by 100+.

so when I start the game and kill the enemy and become level2 and learn heal skill the money still as it's 0 why?

(the moneyskill) is can't be use whether on battle or on the menu.


any suggestion?

Unka Josh
I think that you may be misunderstanding how Common Events work-- they don't run unless they are either 1) Autorun or Parallel Process, with the switch that controlled them "on," or 2) called by an Event command in another Event.
AlmerzaGrsh
QUOTE (Unka Josh @ Jun 16 2010, 08:25 PM) *
I think that you may be misunderstanding how Common Events work-- they don't run unless they are either 1) Autorun or Parallel Process, with the switch that controlled them "on," or 2) called by an Event command in another Event.


thanks for your reply, but can you give an example?





DespairReigns
You can choose to use a common event in normal eventing, or you can set the trigger of the common event to autorun, or parallel process. Parallel process allows other things to be going on while everything is happening, so I suggest you go with that... don't forget to add a way to end the event too! Wouldn't want 99999 gold by letting an event run it's course.
Blood_RzR
lol I'm a total noob but.... what IS common events been hearing them all over the place can you give me a little explanation, and if they are important? if they are I'll just google as i've got to sleep now so i thought i'd post this here wink.gif
AlmerzaGrsh
QUOTE (DespairReigns @ Jun 16 2010, 11:07 PM) *
You can choose to use a common event in normal eventing, or you can set the trigger of the common event to autorun, or parallel process. Parallel process allows other things to be going on while everything is happening, so I suggest you go with that... don't forget to add a way to end the event too! Wouldn't want 99999 gold by letting an event run it's course.



can you make an example? please
Kread-EX

See ? I used a Parallel Process trigger with a switch to activate it (don't bother with the names of the actor and skill, it's an example made in my game project).
Legacy
@Blood_RzR

Common Events are just a way of saving time, they are there to help youspend less time creating the same event over and over again, theres not really much more to it.
Unka Josh
QUOTE (Blood_RzR @ Jun 17 2010, 04:13 AM) *
lol I'm a total noob but.... what IS common events been hearing them all over the place can you give me a little explanation, and if they are important? if they are I'll just google as i've got to sleep now so i thought i'd post this here wink.gif


Important? I find them to be. Sure, you can get by without them in some games... mostly. But they have uses that nothing else will replace.

Here's the deal:

A Common Event is an event that is not tied to a specific map location. Instead, it can be called from anywhere in the game.

There are three types of Common Events-- Called, Parallel Process, and Autorun.

Autorun and Parallel Process both work the same way-- the event is activated by a switch, and they immediately start the event running when the switch is ON. Remember, of course, that they will continue to cycle as long as that switch is on. Therefore, for any event that you do not want to run continuously, include a code to turn the switch off. (Also bear in mind that Autorun events, when running, forbid the player from doing anything. An Autorun event that has no "Off" switch will therefore lock the game.)

For example, if you want to have a game in which the characters automatically fully recover after every battle, you could have a Parallel Process Common Event, triggered by a Switch that is turned on at the beginning of the game, that continually uses Recover Party. Parallel Processing events don't run during battles, so you'd constantly recover after battles no matter what map you are on.

Called Common Events are, in many ways, the most useful. A Called Common Event is Called by coding elsewhere, using, for example, the Call Common Event command. One major use of this is to save yourself from recreating a complex series of event commands that you'll be using frequently-- especially things like Battle Events that run during every fight.

However, there are two other ways to trigger Called Common Events that there is no replacement for in the game.

1: Items. If you look at Items, you will see that they can trigger a Common Event. This means that you can, if you want to, create an Item to do anything-- it's how you create maps, teleport rings, technique scrolls, and cell phones that let you call the base for further instructions.

2: Skills. Yes, skills can call a Common Event in addition to their normal effects. Note that if you do this, the Common Event will run after the regular effects of the skill have all finished. This is key to interesting and original Skill creation-- use this to summon monsters, cast spells that protect the party while cursing the monsters, create life drains without needing a script, or have the entire screen shake during an Earthquake spell.

Another note about Common Events: You can refer to Self-Switches and "This Event" in Called Common Events, and it's very useful. What will happen is the event will use them to refer to the Event running the Call Common Event command. It comes in handy if you're creating guards that are looking for the player, or free-roaming monsters that attack you if they see you.
AlmerzaGrsh
Unka Josh,

Thanks a lot for the explanation.


Kread EX,

thanks for the example I have a good understanding now about it but:

1- I am a little confused does your example or screen shot from RPG Maker VX? because it's not similar to XP?
2- the only thing I still can't understanding is [Trigger and Trigger Switch] on the upper your screen shot? how can I use the Trigger Switch? for what? when? why? can you give an example?

thanks in advance man,
Unka Josh
QUOTE (AlmerzaGrsh @ Jun 17 2010, 02:50 PM) *
1- I am a little confused does your example or screen shot from RPG Maker VX? because it's not similar to XP?
2- the only thing I still can't understanding is [Trigger and Trigger Switch] on the upper your screen shot? how can I use the Trigger Switch? for what? when? why? can you give an example?

thanks in advance man,


That's either a screenshot of VX, or the illegal, pirated Postality Knights version of XP. sad.gif

If you go to the Database and look at Common Events, you'll see Trigger (which is None, Parallel, or Autorun) and something called "Condition Switch."

The Trigger determines the kind of Common Event, as I explained above. If it is set to "None," the event can only be Called, as I explained before.

If not, there must be a switch that enables the Common Event. You select which switch that is, and that is the Condition Switch. (When the Condition Switch is ON, the Common Event runs.)

Then, elsewhere in the game, you have an event of some kind turn that switch ON. This immediately causes the Common Event to start running.

Kread-EX
I have actually 4 versions of RMXP on my computer (depends of the OS). This caption is from the old PK edition, indeed because it is the one that works the best on Linux. That's why it's a little different.
AlmerzaGrsh
thanks for your explanation I understand now and i'll try to do it.

thanks man
Unka Josh
Hey, no problem. Glad to help.
Blood_RzR
yes thank you Josh! helped me out alot smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.