GREATREDSPIRIT'S PROFILE

sherman






o
Mario vs. The Moon Base
Mario must fight his way to Bowser's Moon Base to rescue the Princess!

Search

Filter

What are you thinking about right now?

Click here to learn how to knock people out!

*Solved!*[RMVX ACE] Is there a way to check who you are using an item on?

afaik no. Items and skills work similarly (they both extend the UsableItem class). I think you can use the Game_Battler use_item method, I think all used skills and items get funneled through that?

class Game_Battler < Game_BattlerBase

  alias use_item_test use_item unless $@
  def use_item(item)
    print "#{self.name} is using #{item.name}!"
    use_item_test(item)
  end
end

was my quick test. Don't use it for telling who an item is applied to. So something like
class Game_Battler < Game_BattlerBase

  alias use_item_test use_item unless $@
  def use_item(item)
    #print "#{self.name} is using #{item.name}! it's a #{item.class}"
    $game_variables[2] = item.id if item.is_a? RPG::Skill
    $game_variables[3] = item.id if item.is_a? RPG::Item
    use_item_test(item)
  end
end

Might do the trick? Change 2 for the variable to store the last used skill, 3 for item, and if you want either/or just add
$game_variables[4] = item.id


I haven't tested this much though, the flow of using skills/items isn't something I looked too much into

*Solved!*[RMVX ACE] Is there a way to check who you are using an item on?

If this is only via the menu and not in battle you can use the $game_party.target_actor field via an event script call. It'll have the actor object which was targeted by an item in the menu, but it'll just be whatever its last value was if a party-wide item was used and not change at all if used in battle.


A quick demo via your example would be to create a new item with occasion: Only from the Menu, Scope: One Ally, and Effect: Common Event. Then make a common event that uses a script call to get the target_actor value like so:
$game_variables[1] = $game_party.target_actor.id
That'll put the actor ID of who you used an item on in that variable and you can do your shit with it. Here's some demo screens:




I threw together a quick test project you can download here.


It isn't ideal, if you use the Evolve Stone on Eric it'll close the menu and do the "no you can't do that". It'd be better if you could make it so you can only use the item on certain characters and others will just do a buzzer, I thought Yanfly made a script for that but I can't find it atm.


e: irfanview why did you capture my mouse pointer why did I ever turn capture pointer on >:(

wait. do I have more makerscore than Liberty right now?

What are you thinking about right now?

The Ghost Trick one is legit good, and I haven't even played it

RPG Maker VX Ace - Apologies in Advance

I'd suggest downloading Yanfly's Core Fixes script and adding it to your game. You can get it here. (easy to c/p version here ). Open the script editor for your game and find the "Materials" header, select a block under it and hit the insert key to insert a new script block, and c/p the script into that. Then in that script look for:

FONT_NAME = ["VL Gothic", "Verdana", "Arial", "Courier"]

on line 194. That array of names is the name of fonts the game will try to use in that order. If it can't find the VL Gothic font then it'll try Verdana, then Arial, Courier, then just not use a font in that order. You can add a new font by putting it in front of the "VL Gothic" string like so:

FONT_NAME = [ "YOUR_FONT_HERE", "VL Gothic", "Verdana", "Arial", "Courier"]

You can include the font you want to use with your game by adding the *.TFF file to the "fonts" folder in your game. RM Ace only supports true type fonts (*.TFF) files by default.

[Poll] Do you prefer IRC, Slack or Discord?

author=Sooz
author=GreatRedSpirit
I AM COMPUTER characters are all awful
Counterpoint:

fukkin wrecked, you win this one Sooz!

[Poll] Do you prefer IRC, Slack or Discord?

author=Red_Nova
I remember Game Boy. He wasn't really that interesting of a character, though, which is saying a lot considering the rest of the cast of that show.


I AM COMPUTER characters are all awful, Simon was still the best on the show

Valentine's Shipping on RMN

can I ship with a ship? because this was pretty good


Arabian Nights was GOTY for ADGQ2018 though, nevermind the Awful Games Done Quick block