Search the Community
Showing results for tags 'variable'.
Found 15 results
-
Well hello... I'll be brief, I have been looking for a script to vx ace, but I had no luck, what I'm looking for is: - A bar, or anything that displays a variable in the main menu screen below the command window - That could display more than one variable, but only one per time (switchable, with switches, like "Show variable 1 switch 1" and "Show variable 2 switch 2"), like when changing groups or something, showing that group or party collective stats (e.g: Fear, regret or anything related to it), so it could affect the outcome of certain events or reactions - Can be a bar or anything else, maybe even a number display, I'm not picky about it, I just would want an information display in the menu to variables in the main menu And yes, I have been looking up and down for it, I'm not a scripter, but I had dealt with it trying to figure it out if anyone could help me I would be extremely thankful Anyway, from brief this had nothing, anyway, sorry for bother, I would appreciate any help, thank you very much
-
I need a plugin to display a variable in a window, particularly during a number entry. I have an event set up to act as a Gold Vault where you can withdraw & deposit gold. It's important that the player knows how much is stored in the vault (variable) when entering the withdrawal amount, other wise they might end up accidentally enter a higher amount then what's already there & getting a message saying that they don't have that much stored. And some players like me might have bad short-term memory & can't remember how much is there. It would be nice to also display a icon before the variable as well. I hope someone can help me with this.
-
Hello, Right now I try to make a condition branch for variable in a script, but I can't get it to work. The picture show what I have right now. When I start the game, I get "NoMethodError occured. undefined method `[]' for nil:NilClass" Can somebody help? Thanks in advance
-
About Script Box, Variable & Separated Inventory
rannade3rd posted a topic in Editor Support and Discussion
Hi, I'm pretty basic in scripting, so here is a problem i encounter last night, so i decided to make two(or more) main character in my game and will tells their story respectively. and of course it need a separated inventory. the way i am doing it is by collecting all the item that gotten so far from the inventory and save it to variables (a lot of variables) and subtract all the item in my inventory by the amount of their own value so it will erase them (giving 0 value). and whenever i need it, i will just add all the item by the amount that saved in the variables. my problem is: the way i am doing item save is using a loop and increase in variable. err.. maybe i will show you the event script instead So by the logic i use there, Variable 24 = 22 Variable 25 = 1 So they will add variable 24 and 25 by 1 as long as variable 24 is less than 24(value) and the script will results in as far as i know $game_variables[22] = $game_party.item_number($data_items[1]); $game_variables[23] = $game_party.item_number($data_items[2]); and so on. *variable 22 and 23 is variables to save the amounts of certain item. on above, i uses it to save Potion and Hi-Potion. but somehow when i play test it, it will return My real question is: 1. Am i doing it wrong on implementing my logic into the above script? 2. Is the script box use default concatenation or it read each line as different line? since the script was like: line n: $game_variables[$game_variables[24]] = line n+1: $game_party.item_number($data_items line n+2: [$game_variables[25]]) 3. Is there any efficient way to implement lots of inventory save, inventory delete, or inventory add? Any help is appreciated. -
Name: Simple Item Tracking Version: 1.0 Author: Mr. Trivel Created: 2016-06-06 About the plugin: Adds a small window above gold window (or in place of your choice) that shows tracked items and variables. Screenshot: How to use? Change tracker name and tracked amount colors in plugin manager. To add tracking use the following plugin calls. For adding items to the tracker use this: AddTracking [TYPE] [iD] [TYPE] - item, armor, weapon [iD] - ID of the item/armor/weapon Example: AddTracking item 1 AddTracking weapon 3 For adding variables to the tracker use this: AddTracking Variable [VARIABLE_ID] [iCON_ID] [NAME] [VARIABLE_ID] - ID of the variable to track [iCON_ID] - Icon to show in the tracker [NAME] - Name to show in the tracker Example: AddTracking Variable 5 17 "Bosses" To remove items or variables from being tracked, use such plugin command: RemoveTracking [TYPE] [iD] [TYPE] - item, armor, weapon, variable [iD] - ID of item/armor/weapon/variable Example: RemoveTracking variable 5 RemoveTracking armor 7 Plugin: <GitHub> How to download Plugin. Click the link above, there will be a button named Raw, press Right Click -> Save As. Terms of Use: Don't remove the header or claim that you wrote this plugin. Credit Mr. Trivel if using this plugin in your project. Free for commercial and non-commercial projects.
-
Author: Mr. Trivel Name: Global Save Data Version: 1.0 Created: 2016-03-31 What does it do? Allows player to set and change variables that affect all saves. Video: How to use? To set global variables, use the following Plugin Calls: GlobalVar Set [NAME] [VALUE] - Sets variable to [VALUE] GlobalVar Add [NAME] [VALUE] - Adds [VALUE] to variable GlobalVar Sub [NAME] [VALUE] - Subtracts [VALUE] from value [NAME] - Variable name, case sensitive [VALUE] - Value of variable a number or true/false Examples: GlobalVar Set Glasses true GlobalVar Set GameCompleted 1 GlobalVar Add GameCompleted 1 GlobalVar Sub GameCompleted 2 To check global variable in a conditional branch or somewhere else, use this code: DataManager.getGlobalVar(NAME) Example: DataManager.getGlobalVar(Glasses) Plugin: <Link: Github> How to download the Plugin: Click the link above, there will be a button named Raw, press Right Click -> Save As. Terms of Use: Don't remove the header or claim that you wrote this plugin. Credit Mr. Trivel if using this plugin in your project. Free for commercial and non-commercial projects.
-
So the premise of my current project is this: the player begins with a full "mood" bar, but as time goes on and the game is played, the mood bar steadily decreases. Once it hits the bottom, the sprite has become so depressed that he commits suicide in a gruesome and creative fashion. Game over. My intentions were to set a variable, called "mood," at 450 (which is the Y-coordinate of the icon that marks the player's level on the meter) and then set a conditional branch, so that every 1 second (or some interval of time) the variable decreases by 4.5 and makes the icon fall steadily lower on the meter. But it isn't working. The conditional branch will end as soon as the second is over, but if I set it to loop, the game crashes immediately upon starting. How do I accomplish this? Thanks for your help.
-
Just wondering if anyone knew of a Gold and or Variable window plugin for MV. I'm looking to be able to show the player their current gold, and possibly even a few variables. Knowing these values and having them on screen will be very important to the gameplay of my project. Thanks in advance! (:
-
Hi. I want to make a variable fro a conditional branch that checks what the party's average level is. I'm sure there's some little line of code that'll do it. Thanks!
-
I propose a plugin that takes the current tile x and y coordinates of the mouse pointer and loads them in to a variable, that can then be called for conditional branches and such. Useful applications could be creating entire clickable HUDS using parallel processes and pictures, custom mouse pointers using pictures, hidden buttons on the screen(or even regular buttons I suppose XD)
-
I'm making an event where a character fires projectiles at the player. I want to make them disappear when they hit walls or impassable objects. I figure I can do that with Region ID's. I need a scriptlet that will let me set a Region ID to a variable as well as one for a Conditional Branch checking if the event enters the Region. Also, is there a different way to to this? Thanks!
-
Adding an item/weapon/armor to inventory by variable for ID
Animebryan posted a topic in Editor Support and Discussion
I was trying to make a common event add an item, weapon or armor to the player's inventory where the item was determined by a variable for it's database ID. By default, when adding in a item, weapon or armor, you have to specify the exact one, you can't determine it's ID by a variable. Is there a script or scriptcall to work around this? Any help would be appreciated.- 6 replies
-
- variable
- database id
-
(and 1 more)
Tagged with:
-
Error trying to get armor id to a variable
Kanonelsebas posted a topic in Editor Support and Discussion
Ehm... hope it's the right place to ask. So, I got this complex common event used to Unequip the party gear, and then put it on again. I have 6 variables getting the ID of every slot of equipment: Example: Variable 42 Script: $game_actors[2].equips[0].id Then script calls to unequip the equipment (redundant lol) $game_actors[2].change_equip(0, $data_weapons[0]); If the actor has all his slots occupied, everything goes fine. But! When the player has nothing equiped on any slot, and try to unequip it, I get an error: Script 'Game_Interpreter' line 542: NoMethodError occurred. undefined method 'id' for nil:NilClass Any help? Just in case, the script calls used for re-equip the actor is: $game_actors[2].change_equip_by_id(0, $game_variables[42]); ------------------------------------------------------------------------------------ (Also, is there a way to change this script call: $game_actors[2].change_equip_by_id(0, $game_variables[42]); to use a variable to get th id of the actor who is getting the equipment again? Like: $game_actors[$game_variables[6]].change_equip_by_id(0, $game_variables[42]); or something? I've tried the above and didn't work, neither if I replace the [] whit () Greetings!- 16 replies
-
- error
- common evet
-
(and 2 more)
Tagged with:
-
Add or remove actor using variable directly
Cyberdrakes posted a topic in Editor Support and Discussion
Hello all, i'm here need some help with adding / removing actor. Since the default engine can only add / remove actor manually (add actor A, add actor B, etc.) i need a way to add / remove actor directly by using the variable to determine which actor will be added / removed. It does can be done by using conditional branches, but looking at the number of actor i have, it will become a very very (very) long event ._. So can someone give an idea or maybe this can't be done unless using script? I can provide further info if it still not clear enough Thx -
Variable Bars Gauges/Bars controlled by Variables that display in the map 1.0 Simple Horizontal Gauge 2.0 Advanced Horizontal Gauge 3.0 Simple Vertical Gauge 4.0 Advanced Vertical Gauge 5.0 Links and Resources 1.0 Version A (Simple Horizontal Gauge) This will allow you to create bars that will initially move from left to right ( --> ) within the Game's Map through use of Variables. Difficulty: 1.1 Requirements 7 Variables, 1 Switch, 2 Images: 1 Bar, 1 Background Bar (Refer to 5.0 for Images) 1.2 Instructions 1.3 Right to Left Variant ( <-- ) 2.0 Version B (Advanced Horizontal Gauge) This will allow you to create a more advanced bar that will initially start from left to right ( --> ) within the Game's Map through use of Variables. This comes with additional features such as: Penalty Value, an extended cursor, a Shake Effect, a Glow Effect, and Return Teleport effect. Difficulty: 2.1 Requirements 18 Variables, 1 Switch, 4 Images: 1 Bar, 1 Background, 1 Cursor, 1 Penalty 2.2 Instructions Postponed to 00:00 EST on January 17 2.3 Right to Left Variant ( <-- ) Postponed to 00:00 EST on January 17 3.0 Version C (Simple Vertical Gauge) This will allow you to create a more advanced bar that will initially start from bottom to top ( ^ ) within the Game's Map through use of Variables. 3.1 Requirements 7 Variables, 1 Switch, 2 Images: 1 Bar, 1 Background 3.2 Instructions Postponed to 00:00 EST on January 17 3.3 Right to Left Variant ( <-- ) Postponed to 00:00 EST on January 17 4.0 Version B (Advanced Veritical Gauge) This will allow you to create a more advanced bar that will initially start from left to right ( --> ) within the Game's Map through use of Variables. This comes with additional features such as: Penalty Value, an extended cursor, a Shake Effect, a Glow Effect, and Return Teleport effect. 4.1 Requirements 18 Variables, 1 Switch, 4 Images: 1 Bar, 1 Background, 1 Cursor, 1 Penalty 4.2 Instructions Postponed to 00:00 EST on January 17 4.3 Right to Left Variant ( <-- ) Postponed to 00:00 EST on January 17 5.0 Links and Resources Section for default images and a vanilla project containing the current event version 5.1 Images "Timer Bar" "Timer BG Bar" "Timer Penalty" "Timer Cursor" << Right Click "Save Image as..." 5.2 Vanilla Project Vanilla Project (Contains Simple Bar, Simple Variant Bar, and Advanced Bar) Does not contain Vertical Bars, Will be updated by 23:59 EST on January 15 5.3 Completion Upon completion, your Variable Bars should look something like this: