Announcement
Announcement
| Crystal Fantasy takes 1st as the 2013 2nd Quarter Contest Winner!!! See the Community Announcements section. |
New threads (complete scripts) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
![]() ![]() |
Dec 13 2011, 10:21 PM
Post
#1
|
|
![]() Whats this? ![]() Type: Designer Alignment: Lawful Good |
Simple Area Extender Version: 1.0 Introduction Another small script that will make your life easier with selfswitches and events. Ever wanted a big area the player could enter and it will active a certain selfswitch? Well, with this script you get the possiblity to do so. Features
Screenshots No, not for this. How to Use Instructions how to use it can be find inside the script. 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 Fixed a future bug if someone would type E in the area name as selfswitch for instance. The script now only allows the right self switches. Credit Do credit me, Nicke, if you are planing on using this script. Thanks. Also, a small thanks to Bulletxt for his idea. This post has been edited by Niclas: Jan 4 2012, 03:29 PM -------------------- Current game: Soon... :)
Scripts: Spoiler: "Fortunes smiles upon you..." |
|
|
|
Dec 20 2011, 02:34 AM
Post
#2
|
|
![]() The Handyman ![]() Type: Designer Alignment: Neutral Evil |
O.o This can come in very handy for something I'm eventing, once I find out how to check if an event is in an area.
-------------------- ![]() ![]() ![]() ![]() Graphics/Teams GunSlinger Logo|Game Overs|Mythology: Fall of Olympus|Asturia Myths: Zenon Affiliates OmegaDev |
|
|
|
Dec 20 2011, 06:20 PM
Post
#3
|
|
![]() Whats this? ![]() Type: Designer Alignment: Lawful Good |
@rgangsta: Yeah, that could also work but I have to change the script if you want that option.
-------------------- Current game: Soon... :)
Scripts: Spoiler: "Fortunes smiles upon you..." |
|
|
|
Dec 21 2011, 11:05 AM
Post
#4
|
|
![]() ![]() Type: Designer Alignment: Unaligned |
Oh, the Self-Switch idea is nice!
If you're OK with this I'll add this to the Area Script of BulletXT and me as well. Link: http://www.rpgmakervx.net/index.php?showtopic=51301 -------------------- Leg dich nie mit einem BAOD an, oder du bist selber dran.
Das Leben ist grausam. Wenn es mal nicht grausam ist, ist es grausamer. ![]() |
|
|
|
Dec 21 2011, 11:41 AM
Post
#5
|
|
![]() Whats this? ![]() Type: Designer Alignment: Lawful Good |
@Digioso: Yeah, sure!
-------------------- Current game: Soon... :)
Scripts: Spoiler: "Fortunes smiles upon you..." |
|
|
|
Dec 22 2011, 12:00 AM
Post
#6
|
|
![]() The Handyman ![]() Type: Designer Alignment: Neutral Evil |
@rgangsta: Yeah, that could also work but I have to change the script if you want that option. Can you really? That would be much appreciated! I needed help with this and no one helped so far. Just so you get what I'm eventing,here's the scenario: Spoiler: -------------------- ![]() ![]() ![]() ![]() Graphics/Teams GunSlinger Logo|Game Overs|Mythology: Fall of Olympus|Asturia Myths: Zenon Affiliates OmegaDev |
|
|
|
Dec 22 2011, 05:30 PM
Post
#7
|
|
![]() Whats this? ![]() Type: Designer Alignment: Lawful Good |
@rgangsta: Mind telling me how you solved it? Then I can implement it to my script as well. I noticed you solved it yourself so
-------------------- Current game: Soon... :)
Scripts: Spoiler: "Fortunes smiles upon you..." |
|
|
|
Dec 23 2011, 03:59 AM
Post
#8
|
|
![]() The Handyman ![]() Type: Designer Alignment: Neutral Evil |
@rgangsta: Mind telling me how you solved it? Then I can implement it to my script as well. I noticed you solved it yourself so I didn't really solve it myself, IMP1 made a script for me back at Omega-Dev. Here it is. Spoiler: It works like a charm except that I want to use the area's ID instead of name. Because if I name two or more areas the same name, there might be problems. This is only in theory. No time to try it. -------------------- ![]() ![]() ![]() ![]() Graphics/Teams GunSlinger Logo|Game Overs|Mythology: Fall of Olympus|Asturia Myths: Zenon Affiliates OmegaDev |
|
|
|
Dec 23 2011, 03:39 PM
Post
#9
|
|
![]() ![]() Type: Designer Alignment: Unaligned |
@Digioso: Yeah, sure! Thanks and I started working on it a couple of minutes ago. But it didn't take me long to find out that this is not going to work. With the current setup in my script I only have one "layer". The switch or event. For self switches I'd need two: The Event and the Self Switch. And for this I'd have to basically make a copy of everything I have, edit it for self switches and then paste it. In that case - your script already exists so no need to try to make a copy of it. But I found one possible bug in your script. area.name.scan(/<ss (\d+)\s+([A-Z]+)\s+(true|false)>/) Your're checking for [A-Z] here. I didn't test what the game does if it encounters a self switch > D. My guess is that it crashes. So the best thing is to not even allow this. I didn't check what area.name.scan returns when the regex isn't matched. If it returns false then you could do a [A-D] instead of [A-Z] here and do a if(area.name.scan ...). If it doesn't return anything usable you could check the content of s2 after s2 = $2.to_s and see whether there's only A-D in there. And if not do a print or whatever so that the developer sees that he did something wrong. And you could add an /i at the end of the scan to allow lower case as well. I don't know if the game allows the self switches to be lowercase. If it doesn't you have to convert it to uppercase (with s2.upcase) again but at least the user has the option to use lowercase. Anyway, good work and I'll keep this script in mind in case I need it. More options are always good. This post has been edited by Digioso: Dec 23 2011, 03:42 PM -------------------- Leg dich nie mit einem BAOD an, oder du bist selber dran.
Das Leben ist grausam. Wenn es mal nicht grausam ist, ist es grausamer. ![]() |
|
|
|
Dec 23 2011, 04:27 PM
Post
#10
|
|
![]() Whats this? ![]() Type: Designer Alignment: Lawful Good |
@Digioso: Oh, thanks for that. I am gonna change it then.
-------------------- Current game: Soon... :)
Scripts: Spoiler: "Fortunes smiles upon you..." |
|
|
|
Jan 4 2012, 12:04 PM
Post
#11
|
|
![]() ![]() Type: Designer Alignment: Unaligned |
You're welcome.
-------------------- Leg dich nie mit einem BAOD an, oder du bist selber dran.
Das Leben ist grausam. Wenn es mal nicht grausam ist, ist es grausamer. ![]() |
|
|
|
Jan 4 2012, 03:30 PM
Post
#12
|
|
![]() Whats this? ![]() Type: Designer Alignment: Lawful Good |
OK updated the script, thanks to Digioso.
-------------------- Current game: Soon... :)
Scripts: Spoiler: "Fortunes smiles upon you..." |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 19th June 2013 - 11:02 PM |
|
|