That's perfect, thank you!
Ruby/RGSSx questions that don't deserve their own thread
RGSSx Script SupportActually, what you suggested @Howard_Bentley is the opposite of what the OP intended to achieve here. The ! bang symbol negates stuff in Ruby.
Unless restrict_eval is meant to block stuff in a negative way (don't get that state! in the code provided by the OP), which could be the case but I'm not used to Yanfly products, it shouldn't work because it'd be asking the actor not to get that specific state.
Unless restrict_eval is meant to block stuff in a negative way (don't get that state! in the code provided by the OP), which could be the case but I'm not used to Yanfly products, it shouldn't work because it'd be asking the actor not to get that specific state.
@kyonides The Yanfly Skill Restrictions script will prevent the skill from being usable if the eval is true, so the ! is actually necessary here.
Removing it would prevent the skill from being used if the state is applied, which is the opposite of what the OP wants.
Removing it would prevent the skill from being used if the state is applied, which is the opposite of what the OP wants.
Not sure if I can bump this but... bump? 😅
It isn't a map specific variable but one exclusive for the Game_Map class. That's why it won't work for any other map after you leave the first one.
So do I have to register it in RPG::Map then?
You could but it will get lost once you exit your current game session.
I would prefer to use a hash that will store the map ID as a key an a true value if visited.
An array with just the ID's of the maps you've visited so far could also work there.
By the way, Game_Map's @variables are already included as part of your save game's data so you won't need to alter anything else.
I would prefer to use a hash that will store the map ID as a key an a true value if visited.
An array with just the ID's of the maps you've visited so far could also work there.
By the way, Game_Map's @variables are already included as part of your save game's data so you won't need to alter anything else.
Would making a script that allows ShowText or ShowChoices to use arrays be possible?
Eg. \v[1] works by default, but \v[1][1] currently doesn't work.
Alternatively, is it possible to use script in ShowText/Choices? As that would solve the problem as well.
Eg. $game_variables[1][1]
Edit: Found two scripts that allow use of Code in Messages
https://rmrk.net/index.php?topic=44527.0
https://himeworks.com/2013/11/convert-code-eval/
Eg. \v[1] works by default, but \v[1][1] currently doesn't work.
Alternatively, is it possible to use script in ShowText/Choices? As that would solve the problem as well.
Eg. $game_variables[1][1]
Edit: Found two scripts that allow use of Code in Messages
https://rmrk.net/index.php?topic=44527.0
https://himeworks.com/2013/11/convert-code-eval/
I've been using THIS script for adding custom options to the battle command list. Would it be possible to use that script to transfer the escape command to the battle command menu? If not, what script can?
If any mod is hearing this please delete this message. I've transferred the question to it's own thread
Heya, I tried to use the search feature both on the board and throughout this thread. I'm looking to find where the dungeon generation scripts used by the vanilla VX Ace settings are so I can try to manually tweak them.
Searching for "dungeon generation" didn't produce any results from this thread, and only seemed to reference some Saba Kan's pre-existing script, but honestly I kinda wanted to try to work on my own modifications to fine tune results.
Is any of that accessible through scripts, or is it some other thing locked away entirely beyond user access?
Searching for "dungeon generation" didn't produce any results from this thread, and only seemed to reference some Saba Kan's pre-existing script, but honestly I kinda wanted to try to work on my own modifications to fine tune results.
Is any of that accessible through scripts, or is it some other thing locked away entirely beyond user access?
It would be part of the engine and changing it would be reverse engineering the program so an automatic license violation.
Using scripts to generate dungeons is perfectly fine, so you can use those to help you fine tune what you want to do, but keep in mind scripts primarily work only during gameplay and without a lot of knowledge you won't be able to save your dungeons.
But I think I remember one set of scripts that allowed you to build a map in game and save it.
I don't have much else positive to offer you except good luck.
Hi im experiencing issues with this script by Dekita, " ". Error comes on at line 411 NAMEERROR 'uninitialised constant SPDS::Text_Color'. im not sure if theres more errors cause i cant get past this one. thanks in advance
It says right in the script header that it needs the d13 core.
Do you have that script in your project and above this script?
oh i do not have d13 core or know what that is.
Many popular script makers use core scripts to have common functions available through all of their other scripts. It's so that they don't repeat code many times.
Victor Sant did this, Yanfly did this, Dekita did this and more.
If you went up a level to Dekita's main github you would have seen all the scripts he has.
Dekita's Pastebin - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Then you would see the core script.
core
Hello, sorry if this is a stupid question, or the wrong place to ask this; I did try looking around, but I did not look too carefully or for too long and probably missed better threads/my question answered, because of time; again sorry for my newbish-ness, and selfishness.
In the Manual for VX ACE, under Audio, under Module Methods, it says that in order to not have a delay when playing MIDI tracks, one must call Audio.setup_midi, and although it says it's for RGSS2, the title for the section has next to it in small letters "RGSS3", so I assume it should still be fine.
Main point: how does one use this ability to bypass the delay by calling this method? I'd prefer not to convert to OGG if possible, so that is why I'm asking to eliminate the delay.
And, I don't know much about the programming language or really programming at all besides very, very basic things, so even though the Manual probably answers my question it's pretty much unintelligible to me, so if my question is there please excuse my ignorance and redundancy.
Thank you.
In the Manual for VX ACE, under Audio, under Module Methods, it says that in order to not have a delay when playing MIDI tracks, one must call Audio.setup_midi, and although it says it's for RGSS2, the title for the section has next to it in small letters "RGSS3", so I assume it should still be fine.
Main point: how does one use this ability to bypass the delay by calling this method? I'd prefer not to convert to OGG if possible, so that is why I'm asking to eliminate the delay.
And, I don't know much about the programming language or really programming at all besides very, very basic things, so even though the Manual probably answers my question it's pretty much unintelligible to me, so if my question is there please excuse my ignorance and redundancy.
Thank you.
I'm using Yanfly's Ace Equip Engine script, which overwrites the Change Equip script call. I'm versed enough to know that, but not what the new script call would be. Can anyone show me how it'd be written? Thanks in advance.
That's not why that method exists at all. What it does is initializing DirectMusic to let it handle the midi files. It has nothing to do with MP3 nor OGG files.
Hey, probably a dumb and ugly question:
Can I make a pointer/reference to an integer/boolean attribute of an object ?
I want to make a settings menu that changes attributes that I've created from $game_system, since many values are toggles and I may add more, I would like (if possible) to reference the attribute from $game_system, fetch it and save it at some point (having apply/cancel buttons, I need to store the changes locally first), I would like to avoid doing conditional branches for a lighter code.
I'm also considering making an hash table of symbols in $game_system if my original question is not solvable.
Can I make a pointer/reference to an integer/boolean attribute of an object ?
I want to make a settings menu that changes attributes that I've created from $game_system, since many values are toggles and I may add more, I would like (if possible) to reference the attribute from $game_system, fetch it and save it at some point (having apply/cancel buttons, I need to store the changes locally first), I would like to avoid doing conditional branches for a lighter code.
I'm also considering making an hash table of symbols in $game_system if my original question is not solvable.
something = $game_system.dup
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/