Charas-Project
Game Creation => Requests => Tutorials => Topic started 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?
-
Read the help file.
-
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.
-
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.
-
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
-
(http://charas-project.net/forum/showthread.php?threadid=17908&forumid=22&catid=8)
That might help if you're still stuck.
-
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
-
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.
-
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