Search the Community
Showing results for tags 'rpg maker vx ace'.
Found 1,849 results
-
Updating Terms to show up during Battle Processing
Ferry66 posted a topic in Editor Support and Discussion
Terms can be edited easily from the Database section of RPGMaker VX Ace. Let's say, if you want the resource you spend during battle to be named SP instead of MP you can change it no problem. But during battle processing these terms will show up as standard and will not be updated. How do you update Terms so they show up in battle processing as well? In the attached image the change is shown in MP when the Terms I have the "mana" resource named as HGR. -
Hello everyone! I have a problem, you see, I am scripting and making adjustments to my menu, and I wanted to draw some variables on the weapons within the inventory, the variable appears, but now it also does with the other weapons. I have tried to use derivations such as "If / Elsif", or use it as a "Case" and try with "When" but I have not been able to solve it, the variable continues to appear on all weapons. Here's the code and a screenshot. I enclosed the value in red and as it is repeated, I have no idea what I am doing wrong.
-
How to make a Chasing Event Through Multiple Maps - Tutorial & DEMO
TheRamenGirl posted a topic in Tutorials
Hello everyone! I found a kinda easy and 100% working way for Chasing Event(s) Through Multiple Maps and i decided to share it with everyone since the 2-3 tutorials/videos i found were kinda hard, and I read many comments "complaining" about them not working properly.. I'll try to explain it as easily as I can, even though it's my first tutorial, I hope everyone will understand it! (It's not hard, really! I believe it's the simplest and easiest method.) By the way, if someone has a suggestion for improving it, Please feel free to tell me. I am not going to include any scripts since the tutorial works just fine with game's default system. But i am going to recommend optionally, Pathfinding and Event Chase Player Script by TheoAllen. I recommend it because this script simply determines/calculates the shortest path for the wanted destination without any distractions or without having to use move route's movement commands. In this tutorial and demo, i am using the system's default "Approach" Autonomous Movement on the "Chaser" but if anyone wants to use the Pathfinding Script, Set the Autonomous Movement type to "Fixed" (Or leave Approach for random movement) and make a comment inside the "chaser" event, contents and write <chase player> in it. I want to Thank very much Cootadude because in one of his screenshots he posted on one thread, he showed the variable settings i had to put and the correct settings inside the conditional branch for making it to work. This helped me ALOT. Here's a preview GIF of the demo: DEMO (Without RTP) DOWNLOAD LINK DEMO (With RTP) DOWNLOAD LINK What we going to need: 2 Switches: Chasing Start Chasing Stop 2 Variables: Player's Map X Player's Map Y 5 Events: The "Chaser" The Chaser's Settings The Chaser's Trigger "Lever" The Chaser's Stop "Lever" The Transfer Player Event(s) Step 1) Setting/Making the Events, Switches and the Variables: Make and name the 5 Events. Make and name the 2 Switches. Make and name the 2 Variables. Step 2) Setting the "Chaser's Trigger "Lever" Set the Event "The Chaser's Trigger "Lever" with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq. In the Contents set "Control Switches" Command and select the "Chasing Start" Switch to be on. Below the Switch Command put a "Wait 10 frames" Command. Below the "Wait 10 frames" Command put "Set Event Location" Command for the Chaser Event and set it where it will appear for the first time (It's a one-time thing). Below the "Set Event Location" Command put a "Move Route" Command for the Chaser Event and select the Graphic/Sprite it will have when it's enabled. Below the "Move Route" Command put a "Self Switch "A" to be on. On the same Event make a second page with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq. On the Conditions Set the Self Switch A On. Inside the Contents make Conditional Branch with the Variable "Chasing Stop" to be On, Check for "Set Handling when conditions do not apply". Inside the Conditional Branch put a text to appear when the player have turn off the chasing event. On the "Else" box Below, put a text to appear when the player haven't turn off yet, the chasing event. The Event Should look like this: Step 3) Setting the "Transfer Player" Event: Set the Event "Transfer Player" with "Player Touch" Trigger and "Below Characters" Priority. Save the X and Y of the positions you will place it. (They are down the map at the very end of the RPG Program) Inside the Contents make a "Move Route" Command for the Chaser Event and select the Graphic/Sprite (None). Below the "Move Route" Command put a "Set Event Location" For the Chaser Event, and place it somewhere far the player. (I usually put it very high on the map, next to the setting event). Below the "Set Event Location" Command Put a "Transfer Player" Command and set the next map for the player to go to. The Event Should look like this: Step 4) Setting the "Chaser's Settings" Event: Set the Event "The Chaser's Settings" with "Parallel Process" Trigger, "6: 4x Faster" Speed and "5: Highest" Freq. On the Conditions set on the switch and select the "Chasing Start" Switch. Inside the Contents Put 2 Variables Commands and Set/Connect the 2 Variables (Player's Map X & Player's Map Y) Each one on their own, with "Player's Map X and Y". Make 1 Conditional Branch with the "Player's Map X" Variable, Equal to the X number of the map (where the "Transfer Player" Event/Command is, so the Chaser will appear when the player enters the map.) Below the variable (inside the conditional branch), Make 1 More Conditional Branch with the "Player's Map Y" Variable, Equal to the Y number of the map (where the "Transfer Player" Event/Command is). If you have Multiple paths make those conditional branches as many as the paths with their X and Y. (I have example on the demo in the map 2). If you want, set a wait 60 frames command so the player can earn a little time to move ahead of the chaser. Below and inside the second Contitional Branch, Put a "Set Event Location" for the Chaser right on the "Transfer Player" Event. Below the Event Location Command, Put a Move Route for the Chaser event and select the Graphic/Sprite it will have when it's enabled. Below the Move Route put a "Erase Event" Command. On the same Event make a second page with "Parallel Process" Trigger, "6: 4x Faster" Speed and "5: Highest" Freq. On the Conditions set on the switch and select the "Chasing Stop" Switch. Inside the Contents make a "Erase Event" Command. The Event Should look like this: Step 5) Setting the "Chaser" Event: Set the Event "Chaser" with "Event Touch" Trigger, Priority "Same as Characters", Type as "Approach" and "4: Normal" Speed and "5: Highest" Freq. On the Conditions set on the switch and select the "Chasing Start" Switch. Optionally, Inside the Contents make a "Game Over" Command. On the same Event make a second page with "Parallel Process" Trigger, Priority "Below Characters" Type as "Fixed" and "6: 4x Faster" Speed and "5: Highest" Freq. On the Conditions set on the switch and select the "Chasing Stop" Switch. Inside the Contents make a "Erase Event" Command. The Event Should look like this: Step 6) Setting the "Chaser's Stop "Lever": Set the Event "Chaser's Stop "Lever" with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq. Inside the Contents make a "Conditional Branch" with Switch "Chasing Start" On. Check for "Set Handling when conditions do not apply". Inside and below the Conditional Branch, Make a Switch with "Chasing Stop" On. Below the Switch put a text to appear when the Chasing Stops. Below the Text Put a Self Switch "A" On. Below the "Else" box, put a text to appear when the Chasing isn't yet turned off. On the same Event make a second page with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq. On the Conditions set on the Self Switch "A" On. Inside the Contents make a text to appear when the Chasing is turned off. The Event Should look like this: That's all. Just set all those on every map you want the chasing event to be and remember to change the names of all the events in the commands when you paste them, because on every different map the names of the events are changing/being reset. I have some notes that i have to mention. (Suggestions are open). If a map that the Chaser is enabled on, has multiple transfer paths, make sure to set the Chaser to appear on all of those paths, because when the player leaves but returns to the map, if it doesn't have settings that applied to the path the player went, the Chaser becomes invisible and goes to the player. (If you have game over command on the chaser, it's gonna happen). Sometimes, if the player enters a map that the Chaser is enabled on, and Player doesn't move at all, the Chaser stays still until the player takes at least 1 step. (I kinda fixed that by setting the Chaser's movement type to "approach" instead of "fixed") In "Step 3) Setting the "Transfer Player" Event:" on the 4 and 5 line numbers, if you don't set up those 2 steps, when the player re-enters a map that the chaser is enabled in there, the chaser will be on the spot the player left it. So if it's near the transfer event, it's likely that the Chaser will go right on the player.-
- 1
-
-
- chasing event through maps
- chase event
- (and 5 more)
-
I'm simply looking to have an arbitrary value change based on if an actor (preferably party member) has any features that contain a specific notetag, but I keep running into error after error, and it has led me to and past the 'toss the keyboard and mouse at the wall' level of frustration. I've actually tried using previous scriptlets but none of them are doing me any damn bit of good. I currently have a module set up with a single value; this I want to be altered if the notetag calls for it. I'll provide more detail if this gets any traction; as is there's not a lot more detail to provide.
-
Hi there! Need some help with a particular problem using some menus, specifically the CSCA - Achievements menu script. Problem: If a set of text is too long, it gets, well, "squished". I'm looking to include some line breaks, but nothing's working. Including a screenshot so you know what I mean. The text is SUPPOSED to read "See all Warren-related events (missable after Chapter 12.)", however, everything just gets horribly squished. As you can see in the screenshot, there's plenty of space under the circled text to include a line break. I've tried \n, I've tried a combo with "text1" + "text2", I've tried simply pressing enter to start a new line (I knew that won't work but hey, might as well do it so I can say I tried)... I know that's not nearly every option but I can't really figure this one out. While I can make decent graphics, I'm not the brightest tool in the shed when it comes to the coding side of things. I'm clearly missing something. And while I know where to go to change the width of some menu's texts, or the height, I don't know how to add extra lines or anything like that. If anyone has any ideas, any code snippets or "try this" or anything, I'd be grateful. Text-based scripts using: Mithran's Text Cache Yanfly's Ace Message System The menu in question: CSCA Achievements (and of course, if anyone needs more information from me, please let me know.)
- 3 replies
-
- script help
- vxace
-
(and 2 more)
Tagged with:
-
Noyemi K's Dynamic Music System Version: 1.0 Author: Noyemi K Date: February 16, 2015 Version History Version 1.0: Original ScriptPlanned Future Versions None (though perhaps it can be extended to include menu music too and have more user-friendly ways to add variations) Description This script allows you to switch between various versions of a BGM, dynamically. For example, you have a version of the track that's just a backbeat, a version with the bass and the backbeat, and a version with all of that plus the melody. It switches between them without restarting the track, just by using a Control Variable event. An easy, customizable naming convention allows you to get more descriptive, but the default uses numbers. I made this with adventure games and ABS RPGs in mind, but it could work with anything really. Features Switch between different variations on one BGM using a variable that you specify in the script Easy editing of variation names Works with auto-start BGM on maps Works only with OGG files or PCM (WAVs) Instructions Place this into its own script above main. You can look in the script for additional instructions. Script #--------------------------------------------------- # Noyemi K's Dynamic Music System #--------------------------------------------------- # Description: # A dynamic music system that switches tracks on-the-fly # without restarts. Useful for creating ambience that # builds throughout various situations in an area. #--------------------------------------------------- module DynamicMusicSystem #--------------------------------------------------- # Editable Region #--------------------------------------------------- # Specify the variable ID used to store the song variation variable. SONG_VARIATION_ID = 1 # Specify the variation extensions # "0", "1", "2", "3"], ["Normal", "Tense", "Puzzle"], etc. Can accomodate any # number of variations up to the variable limit. # ALSO: MAKE SURE YOUR FILENAMES CORRESPOND TO THIS ARRAY # For example, for variations on "Forest.ogg", you might want to use # "ForestNormal.ogg", "ForestCombat.ogg", or "ForestPuzzle.ogg" VARIATION_EXTENSIONS = ['', '1', '2', '3'] end #--------------------------------------------------- # Engine Region. DO NOT mess with anything beyond this point. #--------------------------------------------------- class MusicVariations def initialize super @extensions = DynamicMusicSystem::VARIATION_EXTENSIONS #msgbox(@extensions) #DEBUG end def cache_BGM @variationID = $game_variables[DynamicMusicSystem::SONG_VARIATION_ID] @songpos = Audio.bgm_pos if @variationID == 0 $bgm_name = ('Audio/BGM/' + RPG::BGM.last.name) end end def check_variations if @extensions[@variationID] == nil @play = @last else @play = $bgm_name + @extensions[@variationID] @last = @play end Audio.bgm_play(@play, 100, 100, @songpos) end end #--------------------------------------------------- # Starts the engine at the title #--------------------------------------------------- class Scene_Title #------------------------------------------------------------------------- # * Alias Main to initialize the data class upon startup #------------------------------------------------------------------------- alias start_dms start def start start_dms # Initialize $dms = MusicVariations.new end end class Game_Player alias update_dms update def update update_dms $dms.cache_BGM $dms.check_variations end end Credit Noyemi K. The script is free for commercial or non-commercial use. Just credit me and/or provide a link to my site. Support Let me know if there are any bugs or improvements and I will update the script to reflect that. Known Compatibility Issues There shouldn't be any compatibility issues, unless some other script uses $bgm_name as a global variable. Demo Check Here Author's Notes I got the idea for this script from Soul Reaver's sound design, and I wanted to make that possible and modular and easy to use for RMVXA developers!
-
My request is two-fold. Main request: I need to know if there is a script/set of them that emulates the spell maker from the early Elder Scrolls games. Secondary: If so, who made them and where can I find them. If not, how complicated would it be to make this. For those that do not know what in the name of Mercy I am talking about, the spell maker is a Mages' Guild shop where one takes various spell effects, assigns the casting type (for self/target/range/etcetera), saving throw (save versus j/s/v/x/z attribute), and most importantly, sets the various stats for each effect (chance/duration/efficacy/etcetera), which in turn alters the cost (in gold bits) to craft the spell and the casting cost (in MP) of the spell.
-
Victor Engine - Visual Equip This script allows to change the graphic of the chacter according to the equips and other conditions. It adds specific bitmaps to the character sprite. It’s possible to set custom graphics to actors, classes, weapons armors and events. Download: Victor Engine - Visual Equip Credits: Author: Victor Sant Terms of Use
-
rpg maker vx ace icons as sprites All RPG Maker VX ACE Icons as Sprites
TheRamenGirl posted a topic in VX Ace
Hello! Ever want to use an icon in a event as sprite/character? I recently found a script that does that automatic for each on you want, But if you need them for any reason just as sprites, Here they are! Free to use (Only credit Enterbrain). Download Rar File RPG Maker VX ACE Icons as Sprites.rar or Save from uploaded pictures. Do not remove the $ in front of the pic names.-
- 1
-
-
- rpg maker vx ace
- vx ace
- (and 6 more)
-
Identify Item -Tsukihime This script allows you to implement a system where items are not known unless you identify them somehow. Unidentified items will appear as an unknown item, with an unknown name. All references to these items will appear that way until they have been identified. Download Script: Download here Usage Use the following note-tags to indicate how they can be identified. <identify: event> -item is identified through an event. This is just a reminder for you <identify: use> -item is identified on use. <identify: equip> -item is identified once it is equipped You can explicitly identify items using script calls: $game_party.identify_item(obj)Where obj is an RPG inventory object (item, weapon, armor, etc)Some convenience methods have been provided in the interpreter identify_item(item_id)) identify_weapon(weapon_id) identify_armor(armor_id) You can specify how sort items are ordered in the item lists in the configuration. There are three sort options. You can use the following script call to change the unknown sort type $game_party.unknown_sort_type = x The different types are described in the configuration
-
I was looking for side doors and i didn't find any, so i made them. Here they are, free to use. (Only credit Enterbrain because i don't want any trouble). Find Them Here and for XP. Opening Preview: They are in both left and right sides. Plus Sprites With Shadows RPG Maker VX ACE - XP Animated Side Doors.rar
-
Advanced Game Time v1.2 By V.M. of D.T. Introduction The Advanced version of the Game Time script. This version features customizable time increments, seconds, minutes, hours, days, weekdays, months, years, you can set them all however you want. As well as a new tinting system, no more taking control of the built in tint, this one uses it's own and comes with support for Khas's lighting effects script (since that's a big deal). And last but not least, message codes to include time variations in your messages! Features - Customizable time increments - Customizable tints - Message codes! Screenshots None at the moment How to Use Plug and play and customize if needed. Script Click here for the handy pastebin! Want to go the extra mile? Click here instead! Some extra custom times I threw together for fun: Harvest Moon-esque Olden times RPG thingy (kinda?) FAQ None yet. Credit and Thanks - By V.M. of D.T. - Free to use in any non commercial and commercial project. Author's Notes This script hasn't been thoroughly tested but works for the most part. I'm sure there are some bugs remaining. Give it time. Donations always accepted and appreciated through Paypal: sumptuaryspade@live.ca History V1.2 - Fixed KHAS no tint bug - Multi-line custom clocks! - Changed the way notint maps work (notetags instead of an array now) V1.1 - Save/load time - Custom clock setups - Year post (AD/BC/etc...) - Fixed KHAS bug - Allow use of tint in battle - no tint maps actually no tint - Clock in the Menu - Map Note tag to stop time - Option to sync with PC time Want a feature that you don't see here put in? Feel free to comment and I'll see what I can do!
- 247 replies
-
- 15
-
-
-
Map Drops Author: Tsukihime Overview This script allows you to discard items from your inventory and onto the map. You can then pick it up later. Features Drop an item onto the map, either manually or using script calls Dropped items can disappear overtime (decay time) Customize decay times for individual items and equips Dropped items are displayed using their icons Add map drops using script calls Usage Go to your item menu and press the A key (game "X") to drop an item Then see it on the map. To add a map drop using script calls, use add_map_drop('w23', amount) add_map_drop('a12', amount) add_map_drop('i1', amount) Where the "w" means weapon, "a" means armor, and "i" means item. You can specify a specific x,y position on some map. By default, the position is your player's current position, and the map ID is the current map's ID. add_map_drop(string, amount, x, y, map_id) add_map_drop('a3', 1, 4, 5, 2) #create item in map 2 at position (4,5) add_map_drop('i1', 2, 3, 3) #map_id is omitted add_map_drop('w2', 1) # x, y, and map_id omitted) If decay time is not 0, it will disappear after that many seconds.You can choose whether dropped items will disappear or not. To specify decay times for individual items or equips, tag them with <drop-decay: n>Some configuration options available: Default_Disable - dropping items from inventory is disabled by default. Access this through $game_system.mapdrop_disabled through script calls if you need to change this throughout the game. Enable_Maps - you can only drop items in certain maps Enable_All - you can drop items on any map (overrides Enable_Maps options) Download Script: Download here Notes Does someone want to improve the script by providing a nice confirmation window as well as a number input when discarding? Also, creating the chest opening animation is kind of tedious. Someone want to do that? It's basically printing out the page list for an existing chest event and then copying all of that in script.
-
Need help finding a script that allows the game to control two players at the same time
-
I've been banging my head against a wall trying to find a solution to this problem in VX Ace, although it seems almost insurmountable - how in the world can I animate busts speaking, while also not using facesets, but rather pictures? My dialogue system uses pictures heavily to animate things easily. I've completely ruled out finding a solution using the event editor - no matter what I do, autorun or parallel process, any attempt will end up stopping after text is displayed. Even if I place it in a loop, it's non functional. Obviously, it destroys the illusion. Moreover, even if I were to figure out a way to do that, I would have to individually time every single line of dialogue in the game - absolutely horrendous. No one would want to do that. I don't know how to do it...and it seems from my fervent google searches that if anyone else knows how, they're not sharing. All I want to do is display a small 2 frame picture loop over other pictures, and time it to the every other text character being drawn to create the illusion of talking, and when the text stops displaying, the animation stops. I truly feel like I'm going insane attempting to find a solution, so I'm just admitting that I need help here!
-
Haven't had any luck asking for help elsewhere so figured I'd ask here too. Essentially, I'm using the Composite Graphics script (found here) by Modern Algebra. The script itself works just fine, but I can't find a way to let me change the graphic being used for armour under different conditions, like a control switch being activated, a state being inflicted, etc. I mainly want to use this for cutscenes. I.e., the player is wearing their custom clothes/armour, but then when the player sits down in a chair, their clothing looks out of place due to being meant for the basic standing/walking animation. I'd like to be able to somehow use alternative 'sitting' variants of the clothing here, but I can't find a way to do this. Any help would be greatly appreciated, hopefully I explained myself clearly. (Alternatively, if anyone knows of a way to do the above with a different script (like Victor's), that would also work just as well.) Oh, and preferably, I would be able to manipulate an event with the same appearance as the actor for cutscenes, instead of having to manipulate the player themself. If that's too complicated, though, I can probably get by with moving the player around directly, although the former would be preferred. Thanks in advance anyone who tries to help!
-
Player Turn & Move Version: 1.0 Author: SirBilly (silentkingdom.com) Date: 9 June 2013 Introduction This Script makes your character turn and face the direction to move before moving in the chosen direction just like in the pokemon games. Features Ability to change delay time. Screenshot none How to Use Copy into materials, but above main Plug'N'Play, with optional customization Script Get it here Script to use with Khas Pixel Movement - Get it here Script to use with Sapphire Action System IV - Get it here Terms of Use * Free to use for both commercial and non-commercial projects. * Do not claim this as your own. * Crediting me in the game's credits would be appreciated.
-
Eventing: Fine Tuning v3.2 By V.M. Introduction You know what's boring? Having to conform to the guidelines set before you! Really though, this adds a feature to fine tune the x, y position of an event's sprite through a script call in set move route And now more!! Now you can set the rotation, hue, zoom, as well as mirror effect or rotation of events! And even more... waypoints and fades and self_switches and more! And yet more.. like special jump and move commands that just make cutscenes easier Features - Fine tune the x, y position of an event's sprite through a script call - Set rotation, hue, zoom, mirror effect, or rotation of events as well! - Set move routes using waypoints - Easily fade in and out events, change self_switches from within set move route, or randomly teleport Screenshots You should look at these, really How to Use Place script in. In any set move route command, use the script calls listed in the script usage section Demo A project with a single map showing several of the endless uses for this script! Isn't that fancy? You can download it here: Download (v3.1) Script Convenient Pastebin: Here FAQ None At The Moment Credit and Thanks - By V.M. of D.T. - Free to use in any project with credit given Author's Notes Nothing now.
- 44 replies
-
- 19
-
-
Throw Items away v1.0 by Claimh translated and edited by Albic Introduction This script allows you to throw items away by pressing "A" in the Item Menu Features - You can throw items away Screenshots Don't be angry, cause' of the german Names... How to Use - Paste the script above main Script Credit - Albic Terms of use - You are not allowed to post this script at any other forum without my AND Claimh's permission - You have to credit me and Claimh as well! - You have to have a link to Code Crush; http://www4.plala.or...dias/codecrush/
-
Has anyone ever found it annoying to manually break up text to fit in the message boxes, especially if you start tweaking with the game resolution or the text box sizes? Well, I sure have. It's rather annoying to me that simple word wrapping is beyond the capability of the vx ace engine... but no more for I bring ye, yonder script to solve yon problem! It also adds a few new escape sequences and a optional HTML-like whitespace mode that converts linebreaks to spaces. More features (like possibly a option to get rid of leading/trailing spaces for a line) may come in the future. Edit: Now up to version SEVEN! Six is afraid of it!)
- 206 replies
-
- 28
-
-
-
$D13x Teleport Dekita Introduction This script enables a reasonably animated teleportation scene. Each teleport location can cost gold. Easy script calls to add/remove each teleport location and disable/enable each available teleport location. This script also replicates the "Search" feature from FF10. This feature allows the player to "search" the map for specific co-ordinates, if certain co-ordinates are found it will activate/enable a new location. Screenshots How to Use Place Below "Materials" and above "Main". Place images in Graphics\\System folder. Demo No Demo yet... Script + Images LINK Credit and Thanks - Dekita / DekitaRPG
-
Basic Real Time (System Time) v1.0 by V.M. Introduction Simple module to provide a series of functions and escape characters to incorporate system time into games. Features - Use conditional branches to activate or not based on current date or time - Incorporate current date or time within message boxes - Use current date and time within scripts How to Use Plug and play and read. Script Convenient Pastebin: Here Not so convenient but more helpful link here: Here FAQ None at the moment. Credit and Thanks - By V.M. of D.T. - Free to use in any project with credit given
-
My friend made a script from transformation in ATB System. This state increase by finding one specific item. Like 1 item = 1 turn. And while this state on character his sprite in battle must be changed for battle. But problem is state always dissapear, and picture of character in battle doesn't change. link: https://www.dropbox.com/s/xglgo5cnlor6edv/super sayian.zip?dl=0
-
Hello, me again with another script issue. I was breaking my head for 2 days in a row with this. In a script I'm trying to edit, I can't figure out how to create the next script call. This is the original script call that work perfectly: This return me if the card with a certain ID is in the deck of my actor. Now, the problem is that I tried to make another similar script call and I though it would be easy, but is not... (This is just an example, I know the * 2 won't return me the amount of that card) I want to create the almost exact script call but instead to return me if there's any copy of the card with that ID, I need to return me if there's 2 or more with the same id. I read a lot of articles of ruby code, but can't figure out how to separate the "ID" and the "object quantity". I can't find a way to ask by code how many copies of something with the same ID I have in the deck. I'm really struggling with this one. Thanks in advance to whoever hero who can help me out with this!
-
Nevermind, I just solved it. For some reason the code "for actor is" doesn't work for what I wanted, I changed it to actor = $game_actors[$game_variables[27]] and worked perfectly. --------------------------------------------------------------------------------------------------------------------------------- Hello there. This is my first post in this forum! Sorry if something like this was already answerd, but I can't figure out how to search for something like this. Here's my problem: I'm using an script that has a script call. The problem is that this script call do something with all party members, and I want to do it with an specific actor. Here's the piece of code: def has_card?(id) for actor in $game_party.members for card in actor.deck return true if card.id == id end end return false end And I tried to make my own custom one with an specific card in an actor deck and ended with this: def has_card_in_deck?(id) for actor in $gameActors.actor($gameVariables.value(27)) for card in actor.deck return true if card.id == id end end return false end While variable 27 determine the actor ID of the last action made in battle. I'm not good at ruby, maybe there's an easy way to get the ID of the actor who performed the last action, and maybe with this coding I'm making something wrong. The error I get is related to: undefined method 'value' for nil:NilClass As far as I understand, this say that my method to define the actor is wrong. But I don't know what else to do. Any help would be welcome!