Charas-Project

Game Creation => Requests => Tutorials => Topic started by: Nickwii2112 on May 26, 2008, 08:15:56 PM

Title: Common events, switches, wtf?
Post by: Nickwii2112 on May 26, 2008, 08:15:56 PM
I don't understand anything that has to deal with Common Events and switches. They confuse my brain and makes it go asplode (explode)

Can SOMEBODY help me out here?
Title:
Post by: Phayre on May 26, 2008, 08:30:15 PM
Read the help file.
Title:
Post by: Moosetroop11 on May 26, 2008, 08:58:54 PM
I'd forget about common events for now but switches are really important, and pretty easy. We almost certainly have a tutorial somewhere... Hold on.
Title:
Post by: Prpl_Mage on May 26, 2008, 08:59:20 PM
Don't do anything hasty.

What are you trying to do? Common events are used to avoid repeating coding wich isn't used that often.

Switches on the other hand are really usefull. You can add a second page to NPCs in the game and add the condition to be "Switch is ON" and then have a switch called "Dark beast defeated".

So let's say this shopkeeper goes all "dude, you can't buy **** from me. I have to take care of my children as long as that evil dark shadowy and black beast haunts the road."
So after defeating him you make a switch be turned on.
So returning, the second event page with the condition will now overlapp the original one and he will say. "Greetings traveler, ain't it sunny and nice? Care to look at my wares?"

Really easy.
Title:
Post by: Ian-TheResourceMaker on May 26, 2008, 09:03:01 PM
Quote
Originally posted by Prpl_Mage
Don't do anything hasty.

What are you trying to do? Common events are used to avoid repeating coding wich isn't used that often.

Switches on the other hand are really usefull. You can add a second page to NPCs in the game and add the condition to be "Switch is ON" and then have a switch called "Dark beast defeated".

So let's say this shopkeeper goes all "dude, you can't buy **** from me. I have to take care of my children as long as that evil dark shadowy and black beast haunts the road."
So after defeating him you make a switch be turned on.
So returning, the second event page with the condition will now overlapp the original one and he will say. "Greetings traveler, ain't it sunny and nice? Care to look at my wares?"

Really easy.


What he said. xD
Title:
Post by: Moosetroop11 on May 26, 2008, 09:17:17 PM
 (http://charas-project.net/forum/showthread.php?threadid=17908&forumid=22&catid=8)

That might help if you're still stuck.
Title:
Post by: Ben on May 26, 2008, 09:37:29 PM
search our tutorials section for a day/night and game clock system. Those two will show you how to use Common Events, Switches AND variables
Title:
Post by: Nickwii2112 on May 26, 2008, 09:44:51 PM
Quote
Originally posted by Prpl_Mage
Don't do anything hasty.

What are you trying to do? Common events are used to avoid repeating coding wich isn't used that often.

Switches on the other hand are really usefull. You can add a second page to NPCs in the game and add the condition to be "Switch is ON" and then have a switch called "Dark beast defeated".

So let's say this shopkeeper goes all "dude, you can't buy **** from me. I have to take care of my children as long as that evil dark shadowy and black beast haunts the road."
So after defeating him you make a switch be turned on.
So returning, the second event page with the condition will now overlapp the original one and he will say. "Greetings traveler, ain't it sunny and nice? Care to look at my wares?"

Really easy.
XD Thanks dude.
Title:
Post by: Ben on May 26, 2008, 10:05:18 PM
Or in the case of say, a treasure chest....


You press the action button, and the chest gives you a potion.
And it shows a text box that says
:You got potion X 1:

If add a switch here at the end of that,call it, for example "chest_001" and create a new page in the event that appears only when the switch "chest_001" its activated... it will keep the chest from giving the player the potion over and over and over and over again