showing variables and variable changing items

● ARCHIVED · READ-ONLY
Started by Balako 5 posts View original ↗
  1. ok another quick couple questions.. i know im asking too many questions in a short time period, i hope thats ok though ...
    alright first of all, i would like to place certain variables either on game menu, or on the screen while character is moving (not sure of the naming) i found a solution but it was for ACE,

    module HopeFragmentMenu Variable_id = 3 #The variable to be shown Format = "Honor: %s" #The format of the variable, with %s replaced with #the current value of the variableend

    and i dont know how to place it in MV...so if anyone knows how, or another method to achieve this please do tell me :D


    secondly, i want an item to change variables, maybe weapons and armors too.


    bread change hunger variable for an example, or sword changing aptitude ....


    i have placed a formula for bread from what i could gather but it doesnt seem to work or consume the bread item at all


    $game_variable[82]+=10;1


    i placed this in the formula as HP recover, but it wont consume the item at all could the formula be wrong for MV?


    thanks for helping with my silly questions :D
  2. I've moved this thread to JS Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.


    Your formula is wrong for MV.  The syntax you used is for Ace.  However, instead of modifying the damage formula, I'd just add a common event as an item effect, and then do the change variable using event commands.


    If you want to do it in the damage formula, this would work:

    Code:
    $gameVariables.setValue(82, $gameVariables.value(82) + 10); 1;



    You'll need to give more information on what you want to do with variables on the menu and on the map, as someone will need to write a plugin for you, and they'll need to know exactly what you want to do.
  3. i apolgize, i thought this place was for all kind of simple questions, guess i have to look harder next time, thank you for moving my thread and answering :)


    as for the thing i want to be done, i want Item A (bread\water) to be consumed and changing variable X (hunger\thirst) without having an effect on health or mana


    would you elaborate on the common event you mention if thats not of trouble?
  4. The forums are divided into support for scripting issues and non-scripting issues.  The 'Support' forums are for getting help with non-scripting things.  But as you need help with a script (showing variables on the menu or the map), then the script/plugin forums are the correct place.


    Actually, you have two questions and they both belong in different areas, so it would be best to post them in separate threads (in fact, there is a thread dedicated to damage formula questions).  For your purposes, leave the damage formula blank, but add a common event, and see if that works.  I'm not sure if the common event only gets called if there is damage, but it would be easy to test.  If you need more help on that one, please post a new thread or post in the thread for damage formula help, and this one can stay dedicated to your menu/map changes.
  5. Thank you very much for explaining this to me, ill try the common event!!


    and i placed a damage formula to see if it would be able to change item effect into different "parameter", i guess a new thread is in order as you suggested