Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Dec 31, 2013

Daily Life Project (part 1 - time and lighting)

It feels a bit strange that, after all this time, I finally get to repost the script that started this blog, a long while ago, long before I had made myself a name - that is, long before the ACMS. :p The loop is getting looped, and it feels like a nice parting gift with all of my faithful RMXP followers.

The Daily Life project initially is my own attempt as a day/night system. If you would like a day/night system and...
  • you think most of those look ugly or otherwise unrealistic
  • you would like to control the flow of time
  • you would like to make variations on events based on the time of the day or day of the week
OR
  • if you would like a realistic, dynamic lights system
Then it is exactly what you need.




Features



Event-controlled time.

  • time does not advance automatically - unless you command it to with a parallel event. You get to control how time changes with game variables, down to the second.


  • a wide range of variables and switches allows you to set event to appear/occur only at specific times - specific hours and/or days in the week and/or months and/or years...


Natural-looking day and night.
  • progressive transition between dawn, day, dusk and night
Progressive change in daylight on a summer solstice
  • progressive change of daytime duration according to the season (daytime lasts longer in summer)
Progressive change in daylight on a winter solstice
  • fading overlay effects according to time of the day (sunbeams at noon and haze at night)
  • events named "Shadow" automatically fade out as night gets closer
  • day/night can be disabled when inside closed spaces, and luminosity set manually
Closing the curtains forces the luminosity to zero despite the fact it is noon

Realistic, dynamic lights
  • any number of light sources can be set and blend naturally into each others
  • real-time calculation allows light sources to flicker and even move around
  • adjustable radius and strength
  • lights tear through darkness but do not overlay ambient light




Known issues



  • This script is known to make the interpreter lag, depending on the user's machine. It is not the script's fault. RPG Maker's graphic engine has such poor performances, that how the script works will necessarily confront it to its limits sooner or later. It is pointless to ask me for an optimization, since there's absolutely nothing more I can do to address this issue. However, here are a few guidelines to avoid lagging:
  1. More light sources mean more calculations - do not make too many of them
  2. Map scrolling requires recalculation at each frame - avoid making maps that exceed the screen size
  3. Having light sources flicker or move around also requires frequent reclaculation - do not overuse those effects
  4. The darkening overlay which gives the illusion of night is arranged in small blocks. The DARKNESS_PRECISION constant in the Constants - Custom entry controls the size of said blocks - the smaller they are, the better the quality and the worse the lagging. It is set to 2 by default, which I found to be the best quality/performance ratio. Setting it to 1 will make the overlay appear blocky but will cut the load in quarter.
  5. The DARKNESS_FRAME_SKIP constant in the Constants - Custom entry allows to force the calculations to wait for a set amount of frames, thus effectively cutting the load. It is set to 0 by default (no skipping) but you can set it to small numbers (like 4 or 5) so that the overlay does not appear too jumpy, and you gain a little performance boost.



Download



The following link provides a script bundle meant to be used along with the Script Manager. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated.


The following link provides a demo for said script.

Dec 29, 2013

The Variables Binder or How I Made Something Easy Even Easier

Faithful users of my works know that I like event-controlled system, when appliable. For example, my Balloon Messages System relies not on clumsy commands input in messages or stuff like that, but rather on regular switches and variables, which are easier to handle. Those switches and variables are then read by the scripts which in turn do their job. To achieve this, the scripts have to know which switches/variables were appointed to this or that purpose, because from one project to another, a same switch/variable may very well have a different ID - like, if I use switches #2 and #3 in my demo, they might already be allocated, and you'd like to use other ones instead.

Up to now, you had to manually set up constants for that purpose. You had to choose free switches/variables in your project editor, then you had to open the script where the constants were set and replace each of them with the ID you'd chosen, and then it was all cool and easy. That was, until I decided I was too lazy to do the manual part anymore. I decided it was not that hard for the scripts to find the matching switches/variables after all and they could very well do it on their own. From that decision, a new script was born. Behold... here's the Variables Binder!



So what does it do?

Basically, automate the process of binding switches/variables as set in the project editor with the scripts. Say you install the Balloon Messages System to your project, you run it just after, then return to your project editor and poof! a couple of variables and switches which control this system have installed themselves in free slots, saving you the trouble of naming them manually. From then on, those switches/variables will automatically be recognised by the script you've just installed and you don't need to worry about that anymore. So, in short, it's simple as 1-2-3.



Any recommendations?

The Variables Binder will never ever mess with switches/variables which already have a name so it's absolutely safe to use on a project you have already started a while ago - however, it decides whether a switch/variable is free based on whether its name is empty or not, so make sure all of the switches/variables you're using at this time have a name, otherwise you could get surprises.

You can see that your newly named switches/variables have got a tag before their name. This makes it easier to see which variables group together, but it also works as an identification code. That is, you're free to rename the switch/variable as long as you keep its tag intact.

If you were already using one of my event-controlled scripts prior to the arrival of the Variables Binder, please make sure the variables you've set manually have the exact same name (without the tags) as in the original demo, since when the tag is absent, the Variables Binder will identify them based on their name, and automatically add the matching tag - so you end up with the exact same settings as if starting a fresh new project with the scripts' latest version.

If the switches/variables have not been installed prior to the Variables Binder's first launch, it will claim the first free slots it can find, so you might want to have several of them in a row so that they don't get scattered. Also, make sure you have set the maximum number of items so that there's enough room for the newcomers in the first place!



What if I still want to set the variables manually?

If you're not satisfied with the Binder's automated setup for whatever reason, there's nor problem at all. Just cut/paste the name of the variable you want to move to another slot. Since the setup is dynamic, the script will recognize the newly named variable as if it had set itself up on the next time you run the game.



Where can it be found?

The Variables Binder is part of the latest version of my Common pack. You should re-download it to ensure compatibility with my future scripts.

Nov 25, 2012

Moonpearl's Animated Battlers

So, the least you could say is that battles have never been my thing. Proof is, I've never ever made anything for battles along my scripting career. Until today.

No custom battle system yet, just animated battlers, but animated in a nice way. I don't like how all CBS around here all feel so static, so I decided and try myself at making something that would make battles spring to life. For that I drew inspiration (mainly) from Valkyrie Profile, and I have to say that I'm pretty satisfied so far.

I should credit Holder for making the spritesheets I decided to make use of, and while I'm there I recommend you take a look at his site be cause he's a really talented spriter.




Features


  • Lively animations

  • Horizontal scrolling with camera and perspective effect

  • Voice acting support
  • Thoroughly customizable - create battle animations setting up various parameters (pose, jump/rush, range, knockback strength...) and freely bind them to weapons/skills/items
  • Theoretically compatible with any battle systems that comply with RPG Maker XP's base engine specifications


Video showcase courtesy of DrQuijano (only the first part)


Planned features
  • Enhanced battle interface with the Animated Custom Menu System
  • A new battle system while I'm at it




Known issues




  1. For some reason, the script tends to lag at the end of battle animations (mostly when the target falls back to the ground after being hurled in the air). I have absolutely no idea at the moment why it does that, I will however keep an eye for a solution. I'm experiencing such lags on my laptop, though, so i'm confident that users with more powerful computers are not likely to notice it at all.




Additional Credits



Battlers by Holder

Voices from Valkyrie Profile





Download



The following link provides a script bundle meant to be used along with the Script Manager. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated.

May 12, 2012

Party Interaction

If you'd like to have your party members show on the map and follow you, and...
  • you think caterpillars make your party look like a bunch of perfect idiots
  • you'd like to interact with them
  • you'd like to take control of them
  • you'd like to program different responses according to the map you're navigating
Then Moonpearl's Party Interaction script is exactly what you need.




Features



Natural movement - party members automatically turn to the player, and follow him only when he walks away.



Interaction - your party members are perfectly regular events which you can program through the eventing system like any others. Thus, copies on each map may exhibit a different behavior.



Share control - you may have the player switch from their current leader to any party members, for example to program different responses from objects according to which party member is being controlled.




Auto place party members - automatically warp party members behind the player whenever transferring to a different map.



Easy to use - fully interfaced with the eventing system - control everything using only variables and switches, no script calls or edits required whatsoever.




Download



The following link provides a script bundle meant to be used along with the Script Manager. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated.


The following link provides a demo for said script.

May 10, 2012

Single-Character Main Menu For ACMS

Hello to all of ACMS fans. Today, here's a special preview of ACMS's upcoming features. It's a small tweak which makes the main menu character-oriented - that is, instead of selecting an option, then selecting an actor, you select an actor using L and R buttons and all options will apply to them. I thought of that when looking at some people's feedback, saying they wouldn't use ACMS because their game only featured a single character. So, now, no matter how many characters your game has, you may choose between both interfaces.

Donwload and put in your project's Script/MP Animated Custom Menu System folder (create it if needed). This also serve as a demonstration of how a shared script can be expanded/modified locally, without altering the shared copy.



Moonpearl's Scripts Compilation

I just realized a few days ago that I'm starting to have quite a bunch of scripts, and there might be some of you who know you want them all and wish they wouldn't need bother and go through all posts to re-download them with each update. Also, I noticed MediaFire had a "share folder" option, so I thought I could put it to some good use. :p

Anyways, here are permanent links from which you can download all of my works at once. This way, you ensure that, at the moment you download them, you get the latest version for each of them.

Links are provided without any descriptions or instructions here. This section is for people who know what they're looking for.

May 6, 2012

The Script Manager

The Script Manager is a tool that was initially designed to automate script installation and get rid of the troublesome copy/paste process. If you:
  • have only one RPG Maker project
  • don't mind copying.pasting scripts in the first place
  • aren't a scripter yourself
  • don't understand the first thing about this post
Then don't bother trying it, it is no longer needed to use my scripts like it used to be.

It is useful, however, if you:

  • wish to use the same script(s) in a variety of projects/demos and keep all of them up-to-date at all times
  • wish to experiment with installing or uninstalling scripts without actually modifying your projects
  • are a scripter and wish to test scripts in development withtout actually modifying your projects
  • have lots of scripts and wish to automate their extraction/installation




What's That?!


The Script Manager is a developer's tool that is useful when you wish to share scripts across several projects. Using it, instead of having a copy of your scripts in each and every project of yours, you can install a single, central copy all projects will then feed upon, pretty much like the RTP packages do with multimedia resources.





What For?


I initially designed the Script Manager to make my life as a scripter easier. I had this pack of scripting tools I called Moonpearl's Common, I kept updating (and am still updating every now and then) and I found it annoying to copy the newer version to all of my demos with each tiny change - plus, I sometimes wasn't able to tell which project had which version. Now I don't have this problem anymore because there's only one copy of those scripts on my hard disk, which all of my projects use at any time.






Should I Use It?


The Script Manager is essentially a scripter's tool. This means that as a casual RPG Maker user, trying and get it to work is probably too much trouble for you. It used to be a necessary feature for hits blog's demo, but starting with the latest update, it isn't anymore. Demos are now hybrid - that is, they have their own built-in copy of the custom scripts they use, which you can simply copy/paste to your own projects, and also meaning that they are stand-alone - but on the other hand, if a Script Manager is present on your system, they can also use it and override their internal scripts, allowing you to take advantage of its benefits.

For example, when I update one of my scripts, you can simply download the new version and replace your older copy with it in your RTP folder, and all Script Manager-using projects will automatically run the newer version instead of the older one they still have in memory, which saves you a lot of copying & pasting. In the end it's completely up to your own preference, now both ways work without hindering each other.





Will I Be Able to Distribute My Project?


Of course. While using the Script Manager, your project shall feed on script that are installed in your shared folder, meaning they're not in the project as such. However the Script Manager Project Builder will automatically (re)install all scripts into your project's script editor. So you can safely experiment with adding/removing scripts without changing your project's scripts until you're sure.





Can I Make My Own Scripts Compatible With the Script Manager?


Of course! And I would be delighted if you would do so! Especially considering it's not that difficult, you just have to make each entry into a .RB file (plain text file with the .RB extension) and write a setup file which will tell the Script Manager in which order the entries need to be loaded (if it matters at all). Since projects are now hybrid, you can release both your regular demos with built-in scripts, and a separate scripts package for people who want to use the Script Manager.





Known Issues


  • There's a stupid bug when forcing game exit (clicking the red cross or pressing Alt+F4). This doesn't bring any harm since you were going to exit the game anyway. I promised I would fix this issue but  I still don't have the faintest idea as to why it occurs.




Instructions



  1. Go to your RTP folder (default Program Files/Common Files/Enterbrain/RGSS/Standard) and create a new folder called Scripts. This will be referred to as the shared scripts folder.
  2. Download the ZIP file and extract it to the shared scripts folder.
  3. Go to your project's folder and create a new folder called Scripts. This will be referred to as the local scripts folder.
  4. If you already have scripts installed in your project, drag-and-drop your project's folder onto the Script Manager Project Exporter shortcut. This will create a Local folder in your local scripts folder.
  5. Create a new file called Script Manager.ini inside the local scripts folder.
  6. Download the script bundles you wish to install to your projects and unzip them to the shared scripts folder.
  7. Edit your project's Script Manager.ini file and name the scripts you wish to install to your project (one per line). At this time your project's scripts have not been modified
  8. Drag-and-drop your project folder onto the Script Manager Project Loader shortcut to run it.This will load your project using the scripts you have previously named - this will not modify your project's scripts.
  9. When everything works fine and you are ready to replace your project's scripts with the selection you have made with the Script Manager, drap-and-drop your project's folder onto the Script Manager Project Builder shortcut. From then on loading your project with the Script Manager or running the Game.exe file will have the same outcome.




Downloads



You can find all scripts bundles of mine on the My Scripts Compilation page. You should download those three first since they will be required by virtually any of the others:


Note: remember to update the Common bundle once in a while, as it may potentially be expanded with each new release of mine. An outdated Common bundle is a common cause of problem.

Mar 1, 2012

Miscellaneous Scripts

This is a collection of small tweaks I use for RPG Maker XP. Bundles for the Script Manager are distributed separately, but there's a single demo for all of them. Just add/remove the appropriate entries from the Script Manager.ini file to test them individually.



Moonpearl's Confirm Decisions



This allows the game to prompt the user for confirmation when performing important actions, such as exit the game or overwrite a previously saved game.






Moonpearl's Improved File Menus



This replaces the minimalist, slow Load and Save menus with a more powerful interface, which allows you to load savegames by calling the save menu in-game, and also delete savegames you have no longer use for.





Moonpearl's Skip Title



Pretty self-explanatory, this tiny script skips the title scene and calls the first map directly in a clean, minimalist way. Ideal for testing projects with a long intro.





Moonpearl's New Game Plus



Enables a "New Game +" option on the title screen when at least one savegame is flagged as completed. The number of times the game has been completed in a row is stored into a game variable, which allows you to program events to behave differently based on whether you're in Plus mode, and also how many times the game was completed.






Demo



Click the following link to download this script. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated. 

Feb 26, 2012

Balloon Messages

While looking around for balloon messages sytemes, I noticed two things - first, the  balloons are often ugly and second, they are often part of a broader custom messages system, which forces you to use that system. So I wondered if there was possible to make a  balloon system that would be independant of any custom messages system, and how to make visually appealing graphics for  balloons. And here's the result.



Features



  • Fully customizable font type and size - see the balloon adapt dynamically around your constraints.
  • Fully interfaced with RMXP's eventing system - no script call or any funny stuff like that ever.
  • Fully emulates RMXP's standard messaging functions, including color change and actor name substitution.
  • Customizable, full-color graphics for  balloons using a unique Balloonskin module - which works pretty much like Windowskins. Three Balloonskins (normal, thinking, angry) featured by default.
  • Multiple  balloons may be displayed simultaneously.
  • Theoretically compatible with other custom messages systems.



Screenshots


Hebergeur d'image

Hebergeur d'image

Hebergeur d'image






Download



The following link provides a script bundle meant to be used along with the Script Manager. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated.


The following links provide demos for said script. Please install the script bundle beforehand to have it run properly.

Download Balloon Messages v1.01 Demo (223 KB)



Share It!



If you like this work and wish to share it with friends or communities, you may use this widget, along with a link to this page.

Feb 24, 2012

Biography Menu


This is menu which allows you to display a bio for each actor, which is entirely customizable. It was already available as part of the Animated Custom Menu System, but now I'm releasing it as a stand-alone for those of you who would like to use with your own menu system.



Features



  • Very flexible and easily customizable system, allowing you to display any pair of feature/data in the order you like
  • Long descriptions are automatically broken into several lines
  • You may hide some data from an actor's bio in case it contains spoilers, and reveal it only later in the game



Screenshots


Hebergeur d'image

Hebergeur d'image

Hebergeur d'image





Download



Click the following link to download this script. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated. 

Verbal Interaction System


Verbal Interaction takes the Keywords system one step further. It's still about using keywords, but now actions are also keywords - meaning you'll have to specify whether you want to examine, open, pick up objects, just like in good ol' Lucas Arts. This is perfect for puzzles because the player is forced to give a little thinking to what he does, clicking anywhere like crazy doesn't accomplish anything, unlike in your everyday RPG.



Features



  • Programming responses to actions with the eventing system is as easy as: if selected action is PICK UP, then change items ("Potion" +1)
  • Cycle through known actions using the HUD
  • Each object is assigned a default action with a specific button as shortcut
  • You may also eaasily combine items from your inventory with objects



Screenshots


Hebergeur d'image

Hebergeur d'image

Hebergeur d'image





Download



Click the following link to download this script. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated. 

Download Verbal Interaction System v1.00 (247 KB)



Share It!



If you like this work and wish to share it with friends or communities, you may use this widget, along with a link to this page.

Feb 23, 2012

RGSS Charset Maker

Ever tried using a character maker? I have, and have found out that most makers have too few materials, or lack essential features, or can't be used with custom images, or use graphics which clash with RMXP's style, or which are otherwise ugly... and sometimes all of that. Making my own was an option I had been considering for a long time, so when a pal at rmxpunlimited.net asked whether someone would come up with a complete and handy maker, I felt it was the right moment for me to show off. :p That's how, within a few days, I'd completed this utility I'm pretty proud of.



Features



  • Edit the hue, brightness and position of each feature individually, or edit all features at once
  • Preview changes before applying them
  • See your character animated while editing it
  • Change the superposition order at will
  • Render your characters as .PNG images or assign them to the player to test them live
  • Save your characters as presets and reload them later to make new variations rather than start again from scratch
  • Expand the libraries with your own custom graphics by simply adding files to the image folders, the program autodetects them
  • Growing and collaborative materials database, updated regularily with new resources



Screenshots


Hebergeur d'image

Hebergeur d'image

Hebergeur d'image




Download



Click the following link to download this script. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated. 


Only a few graphics are included in this package as a preview. Download JonBon's materials database to get the most of Charset Maker. The database is still expanding, so please check for updates.

Download RMXP RTP Charset (permanent link)




Credits



This program uses Zeus81's Bitmap Export - thanks to him for enabling this core feature.
The materials database is provided and maintained by JonBon.




Share It!



If you like this work and wish to share it with friends or communities, you may use this widget, along with a link to this page.

Jan 7, 2012

Pathfinder

After running around dozens of maps for hours and hours trying to find the place I was supposed to go to, and of which location the game designers assumed was completely obvious, I had enough and said to myself "Instead of giving those damned NPCs such lame, useless quotes, why couldn't they have them simply GIVE DIRECTIONS?". So I sat at my desk and a few hours later I'd done it (which proves how easy a feature it is to implement). And today I'm sharing it with you, so that I don't spend hours looking everywhere when playing your own projects. :)



Features


  • Just name the events connecting your maps as "Exit", and the script automatically searches for those connections.
  • The pathfinder always returns the shortest way to go from one map to another.
  • It is possible to ask for directions from a different map than the one you're in.
  • Use along with the Keywords System to make asking for a destination even easier.



Screenshots



Maps as defined in the project

Instant in-game result




Download



Click the following link to download this script. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated. 

Download Päthfinder v1.00 (228 KB)





Share It!



If you like this work and wish to share it with friends or communities, you may use this widget, along with a link to this page.

Jan 5, 2012

Keywords System

How do you make up a puzzle in a standard RPG? Since there's so little interaction (only a single button and choice between 3 options, 4 at best), it usually goes this way:

  • get stucked and be given an obvious hint that you must find a way through
  • find a random NPC who gives you an obvious clue you've never asked for
  • go back to the place you were stucked at and get an obvious choice between use the obvious clue or do nothing
  • flatter your own intelligence, while you've actually done nothing but run around randomly

What's wrong in there? It's that you get things incidentally; without actually being required to investigate, that's what I call a "self-unfolding game" - it's just a matter of clicking around until it works, even a dumb computer could do it.

Now what if you could give virtually any answer to a given riddle, rather than choose between X options you had not even imagined yourself? What if NPCs would wait for you to prompt them with a topic, and give you clues only in response to the appropriate one? Well, my Keywords System does exactly that.



Features



  • Programming responses to keywords with the eventing system is as easy as: if selected keyword is LIBRARY, then say "This is where I work"
  • Define your own keywords list, as well as those which appear by default - all the others require the player to input them manually at least once
  • Players are automatically prompted with a list of most recent keywords to re-access them easily
  • Keywords lookup may be restricted using tags so that players are only prompted with relevant entries



Screenshots


Hebergeur d'image

Hebergeur d'image

Hebergeur d'image





Download



Click the following link to download this script. Terms of use and instructions are provided within. Please credit me if you use it in your own project. A nice comment is always appreciated. 

Download Keyword System v1.00 (222 KB)



Share It!



If you like this work and wish to share it with friends or communities, you may use this widget, along with a link to this page.