Does anyone have the source code or know how to get it for the built in modules of Ruby in VX. Examples of these are RPG::Skills, RPG::Itmes, RPG::States etc. I have a list of the definitions in these modules but I'd really like to see the code for these. To my knowledge I've never seen it and I've never heard of anyone that has been able to find out what it is.
__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author
Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed
You'll find the greater majority of these in the help file that nobody reads - with the exception to certain classes such as Tilemap, Bitmap, Sprite, etc. That's because they're written in C and compiled with the dll, mainly due to the fact that compiled code runs faster than interpreted.
I don't recommend you make changes to them because they strongly integrate with the editor itself. But, if you really really want to make an edit, you just copy the class as you see it in the help file and put it above all other scripts, with the single exception of an F12 thread reset script.
__________________________
Got 30 minutes? Then you've enough time to play this awesome game: - potentially promising project page - thanks holder
Well, I very frequently read the help file. The deal is I want to modify something in the RPG::States module and the help file ONLY has the definitions and the variables listed but not the code itself. I'd really like to see the code if it's at all possible. There is something I need to change but I don't know what that code is.
__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author
Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed
Well, see that is the thing, the RPG modules are merely a data storing method, much like an Array, or Sprite, or String. If there's something you want to change about the way that States work, you're not going to find it in the RPG modules, you'll find it somewhere in the provided scripts.
If you tell us what exactly you want to change, we'll be able to help more.
__________________________
Got 30 minutes? Then you've enough time to play this awesome game: - potentially promising project page - thanks holder
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
Actually, what you see in the help file concerning the RPG module is really everything there is to it. Those are blank objects representing the data structure of the database entries. Modifying them is useful in order to add new properties but aside from that, it's not necessary. What exactly are you trying to do with the states?
ITT: What Nightshade said.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.
Ok, that makes better sense. I need to modify state turns. I'm using Yggdrasil as my battle system and when you have a state applied it shows on the main menu and has the amount of time listed the states will last (in seconds); since Yggdrasil is an action based system rather than your standard RPG the states have second counters to tell how long they'll last.
My problem is, if I have a state the has a time limit of 15 seconds but it has a CHANCE of not being removed (such as poisoned) then when the original timer reaches 0 seconds on the state and the chance is not met and it is not removed the timer stays at 0 (instead of reseting to a value) until the state is finally removed. I'd like to modify it to where if the chance is not met and the state remains it sets another x turns (x being whatever I want) and is then removed.
__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author
Does anyone know where I can find this? I've looked and couldn't find it (check previous post if you don't know what I'm talking about). That's why I thought it'd be in some module somewhere.
__________________________
"If your mind goes blank don't forget to turn off the sound." Unknown Author