Jump to content


Photo

Simple Self Switches

self switches event

  • Please log in to reply
9 replies to this topic

#1 Nicke

Nicke

    Pure Evil

  • Ace Member
  • 521 posts
  • LocationSweden
  • RM Skill - Coder

Posted 02 January 2012 - 08:44 PM

Simple Self Switches

Version: 1.0a.

Introduction
Change your Self Switches easy by using this script. Simply use the call script function to change self switch of the Event ID to true or false.

Features
  • Plug and play.
  • Easy to change Self Switches.
  • Use a variable to change Self Switches on another map.
  • Set all Self Switches of an Event ID to true/false with a single call script.
  • Check if a Self Switch is on using a Conditional Branch.
Screenshots
No.

How to Use
To install this script, open up your script editor and copy/paste this script to an open slot below Materials but above Main. Remember to save.

Script
Spoiler


Updates
Released 1.0a. Should be pretty easy now changing a self switch on another map.

Credit
Credit me, Nicke, if you are going to use it. Thanks.
Can be use in a commercial project.

Edited by Niclas, 18 February 2012 - 05:46 PM.


#2 rgangsta

rgangsta

    The Handyman

  • + Premium Members
  • 401 posts
  • LocationBrooklyn, New York
  • RM Skill - Designer

Posted 02 January 2012 - 10:10 PM

Nice script you got there. I love Self Switch scripts because I hate using control switches for simple things Self Switches can fix.
Definitely using this.

245j75u.jpg


#3 Nicke

Nicke

    Pure Evil

  • Ace Member
  • 521 posts
  • LocationSweden
  • RM Skill - Coder

Posted 03 January 2012 - 03:35 AM

@rgangsta: Thanks. I've updated it now too since I forgot to add the option to change self switches on another map. :P

#4 BulletPlus

BulletPlus

    A True Gunfighter

  • Ace Member
  • 51 posts
  • RM Skill - Designer

Posted 03 January 2012 - 11:08 PM

a very useful script. thank you.
Do not challenge me to a duel or the last thing you see will be my rifle...

#5 Chantal

Chantal

    Advanced Member

  • Ace Member
  • 128 posts
  • LocationNetherlands
  • RM Skill - Jack of All Trades

Posted 03 May 2012 - 05:42 PM

One of the most usefull scripts out there. To be honest I'm having difficulty understanding why RPG Maker doesn't come with this function build in.
Thank you for making this :)

userbar_by_master_pixel-d7uo592.png <-- The best logo shop you'll ever see. 


#6 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 6,422 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 03 May 2012 - 05:51 PM

They do. They give you 4 self-switches lol
My Scripts. Go here for Bugs and Requests.
Want to write a tutorial? Submit a community tutorial!

himeworks011.png

Like on Facebook: HimeWorks
Follow me on Twitter for the latest updates! @HimeWorks

#7 Nicke

Nicke

    Pure Evil

  • Ace Member
  • 521 posts
  • LocationSweden
  • RM Skill - Coder

Posted 04 May 2012 - 03:01 AM

I think he meant the options to do as the script I made. That it should have been in the default scripts already.

#8 Bird Eater

Bird Eater

    WHAT

  • Ace Member
  • 37 posts
  • LocationThe Netherlands
  • RM Skill - Designer

Posted 06 May 2012 - 08:47 AM

I think he meant the options to do as the script I made. That it should have been in the default scripts already.

But it's not really that different from what's already built in, right?

$game_self_switches[map_id,event_id,switch] = true/false
Isn't that much harder to type out than

setSelfSwitch(map, eID, selfSwitch, trueFalse)

Still pretty useful for those who don't know the syntax, though.

Edited by Bird Eater, 06 May 2012 - 08:47 AM.


#9 Nicke

Nicke

    Pure Evil

  • Ace Member
  • 521 posts
  • LocationSweden
  • RM Skill - Coder

Posted 13 May 2012 - 10:36 AM

Yeah I guess. But I found it easier using my script if you want to change an events self switch on another map :)

#10 KevinFrost

KevinFrost

    Phrostbyte

  • Ace Member
  • 417 posts
  • LocationNorthern Utah, USA
  • RM Skill - Jack of All Trades

Posted 22 September 2013 - 03:31 PM

I love this script! So useful! :D Got a question though, would it be possible to make it so with a script call command you could make it so it changes all self switches based on mapID to false/true? Instead of having to specify every single event you want to change the self switch for?

 

Edit: 

For example: setAllSelf(8, false)

 

Instead of

setAllSelf(8, 1, false)

setAllSelf(8, 2, false)

setAllSelf(8, 3, false)

setAllSelf(8, 4, false)

Etc.

Because I have a lot of events (30+) on almost every map (planning a couple hundred.) in my project that I have reset when you leave that map. And having to type in that same script call for every event is very time consuming.


Edited by KevinFrost, 22 September 2013 - 03:35 PM.

Current Projects At SircleSoft Studios (Website) (Blog)

Nyan%20Cat%20Button.jpg Shallows%20Island%20Button.jpg

Nyan%20Cat%20GIF.gif

 

RPG Maker VX Ace "Let's Make" Tutorials

Spoiler

 

Want to see a penguin walking back and forth?

Spoiler





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users