Jump to content


Photo

How to turn a switch on?

Switches

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1 Venomsoar

Venomsoar

    Newbie

  • Members
  • 4 posts

Posted 02 September 2012 - 04:03 PM

Hi,

Okay I know the title is a little dumb. I know how to turn on a switch using an event. I want to know how to start the game off with switches automatically turned on using scripts. I have no idea about scripting; but I noticed that I've used scripts, in which you can turn on, or off switches from the script.

It's just that in my game, I need lots of switches turned on from the beginning; to trigger comment events at any time. Seems more easy and practical just to use the script to have switches turned on from the beginning rather than about 50 events running on a parallel process in the background constantly.

If you can help out, I will greatly appreciate it!

BTW I'm in no way a pro when it comes to even eventing never mind scripting. However, I have some basic knowledge about it and I am willing to learn.

Thank you!

#2 Xenophil 2.0

Xenophil 2.0

    Tutorialist =3

  • Members
  • 363 posts

Posted 02 September 2012 - 04:08 PM

when making an event, on page 1 of the event command, click "Control Switches..." then select which switch you want to turn on. Simple as that ^^

#3 Venomsoar

Venomsoar

    Newbie

  • Members
  • 4 posts

Posted 02 September 2012 - 04:15 PM

when making an event, on page 1 of the event command, click "Control Switches..." then select which switch you want to turn on. Simple as that ^^


Please read my post and not just the title please. :)

#4 Xenophil 2.0

Xenophil 2.0

    Tutorialist =3

  • Members
  • 363 posts

Posted 02 September 2012 - 04:20 PM

Ah sorry xD so used to threads that arent so detailed. And wouldnt it just be as easy to make 1 event which turns the switches on and off when needed?

#5 Venomsoar

Venomsoar

    Newbie

  • Members
  • 4 posts

Posted 02 September 2012 - 04:25 PM

Ah sorry xD so used to threads that arent so detailed. And wouldnt it just be as easy to make 1 event which turns the switches on and off when needed?

Hmm yeah I guess. Maybe I was over-thinking things.

#6 Xenophil 2.0

Xenophil 2.0

    Tutorialist =3

  • Members
  • 363 posts

Posted 02 September 2012 - 04:26 PM

If that dosnt work then feel free to pm me : o

#7 celebrus

celebrus

    Advanced Member

  • Members
  • 248 posts

Posted 02 September 2012 - 04:27 PM

I like your idea, Venomsour.

I have several common events that I'd like to always have running and are triggered when a switch is turned on. That switch turns on when you start the game normally, but not if I'm starting somewhere else during testing. Sometimes I'm chasing down bugs that don't exist because my common events aren't running!

Edited by celebrus, 02 September 2012 - 04:34 PM.


#8 Dagny

Dagny

  • Banned
  • 1,369 posts

Posted 02 September 2012 - 05:01 PM

I want to know how to start the game off with switches automatically turned on using scripts. I have no idea about scripting; but I noticed that I've used scripts, in which you can turn on, or off switches from the script.



you don't need a script! use an autostart event at the very beginning of the game that will turn on the switch.

That switch turns on when you start the game normally, but not if I'm starting somewhere else during testing. Sometimes I'm chasing down bugs that don't exist because my common events aren't running!



the F9 switch/variable menu while playtesting is incredibly useful.

also:

read these

http://finalbossblue...d-variables-p1/

http://finalbossblue...d-variables-p2/

Edited by needles, 02 September 2012 - 05:03 PM.

finalbossblues.com podcasts, tutorials, articles


#9 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 4,977 posts

User's Awards

        

Posted 02 September 2012 - 05:01 PM

I wrote a script because I was too lazy to change my events when I wanted to test different switches.

I also didn't want to mess around with the database/add new events for the purpose of testing, only to forget to revert the changes later.

http://forums.rpgmak...est-play-setup/

Edited by Tsukihime, 02 September 2012 - 05:03 PM.

My Scripts. Go here for Bugs and Requests.

himeworks011.png

Like on Facebook: HimeWorks
Follow on Twitter: @HimeWorks

#10 Bird Eater

Bird Eater

    Boredom is just another thing you want to avoid

  • Members
  • 147 posts

Posted 02 September 2012 - 05:04 PM

Edit: Nevermind, good job, Tsukihime.

Edited by Bird Eater, 02 September 2012 - 05:05 PM.


#11 Venomsoar

Venomsoar

    Newbie

  • Members
  • 4 posts

Posted 02 September 2012 - 05:26 PM

I wrote a script because I was too lazy to change my events when I wanted to test different switches.

I also didn't want to mess around with the database/add new events for the purpose of testing, only to forget to revert the changes later.

http://forums.rpgmak...est-play-setup/

Thanks alot. This is exactly what I wanted. Thanks!!!
:)

#12 PK8

PK8

    I prefer cake.

  • Members
  • 497 posts

Posted 02 September 2012 - 06:07 PM

Here: Initial Switches and Variables

CALLING ALL SCRIPTERS

Let's improve $imported!
$imported Expansion | $imported[:SCRIPT_LIST]


200x40_1b.png
Click that (^) to check out my Script & Resource Site.


Creator of the Self Data Suite -- The Most Extensive Set of Scripts Around (also available for RPG Maker XP and VX)

Who called it a Hash?
Spoiler

#13 Celianna

Celianna

    VX/Ace tileset artist

  • Global Moderators
  • 6,657 posts

User's Awards

        

Posted 03 September 2012 - 01:51 AM

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

new_logo_small_zpsae8f2402.png
A new dungeon-themed tileset in the works.