Script Call Support Boards

Hey, guys.

I've been trying to do something a little strange with my game. I'm trying to make it so that the face graphic in the message box is placed above the message box. Of course, I literally have no idea how to do this. I tried fooling in around in the script (Window_Message < Window_Base) but I got nowhere because I am an idiot. I'm trying to make it look something akin to the message box from Megaman Sprite Game
megamanspritegame0062_104.png
If any one could help me it would be appreciated.😊
Actually, looking at it now it's an entirely separate box with the face graphic in it.
@Pootisbird Seeing your screenshot, I don't think that can be done with just a script call. It's either a variation on a bust script, or a Show picture command of a graphic of a face in a frame - which might actually be the simplest solution.
I suggest you start a thread in this section of the forum, and see what people come up with.
I actually can't figure out how to start a thread.
nvm. Thanks.
Now uh.. I don't know if this belongs here, but I think it does since conditional branches are event based.
So, I'm trying to make a Tired status after an actor uses too many skills, and.. I wanted to increase the amount of skills required to make the actor tired per actor level. My current script in my conditional branch is this:
$game_variables[76]<$gameActors(1).level*2
So.. if anyone can help me fix this I'd appreciate it.
@Tevi $gameActors is Javascript. And I'm fairly sure that in this instance you would use [] brackets, not ()

Try
$game_actors[1]
Thanks, I must have accidentally read an MV post, Silly me, lol. I appreciate the help. Thank you!
EDIT: It worked, thanks again.
Hey! 👋 Got a bit of a two part system that I'm a little stumped on.

The first part is trying to store the most recent actor's ID in a variable. I'm pretty sure using $game_variables[1] = a.id works in a damage formula, although I'm hoping to get the same effect as a script call (to be used in a common event, still in battle).

The second part is that I'm hoping to then recover that actor's TP equil to a different variable.
For the first part, you might need to set a.id into a global variable first inside the damaged formula because a only exist inside the method that executes the damage formula (same with b and v).

like make all your actions/skills set the ID to game variable 1, then you just need your common event to check game variable 1.

Im quite unsure if a quicker way exist, but it will also probably depend on when exactly you are running this common event, so more information would be good.
I'm trying to have an item cast a skill - but that item has a limited number of uses.
Using a common event this is not a problem except for the 'Force Action' part where I cannot know who the actor is that's using the item. The event menu command absolutely requires that information.

So I need a script call which gets the actor's ID and then does forced action.
Thanks
Does it target an enemy? Does force action accept variables?

If both are yes, you could utilize the item's damage formula to set the user ID into a variable

$game_variables[id]=a.id;0

The downside though is that it will show the zero damage message probably...

Afaik there is a shortcut to get the actor that last used a item but only works on the menu, not on battle.
@Engr. Adiktuzmiko It does target an enemy.
My first thought had been to use a variable in the way you describe, but as far as I can see Force Action does not use variables.
You can force actions using script calls, that way you can pass a variable instead. The method has to be called on the caster and receives two parameters (skill id and target). I am sure the method is used this way: a.force_action(x, y). What I do not remember (and cannot check because I am from mobile) is the order of those parameters, but the order is the same as the force action event command so you should be able to check that out.

If anybody could check the order of those parameters for me, I would greatly appreciate it, otherwise, as soon as I can check that from my computer I am going to tell you the correct order myself.

EDIT: @Kes I just checked, the correct order is skill_id, target. The final formula would look like this:
Code:
caster.force_action(skill_id, target)
You can change caster, skill_id and target to be anything you want (and you can use variables if you do it this way).
I want the boss at a particular point to remove all debuffs from itself and its minions. What I have tried is this:

Code:
$game_troop.members.each.remove_debuff(2)

The game crashes because it appears not to like remove_debuff. However, I don't know an alternative.

Can anyone tell me how that script call should look?
Thanks.
Code:
$game_troop.members.each {|m| m.remove_debuff(2) }
@TheoAllen I am still getting the crash. Here is the error message:

upload_2019-5-31_13-34-26.png
@Kes I forgot that Ace practically has no remove_debuff method, only remove_buff.
Add this little snippet might help
Code:
class Game_Battler
  def remove_debuff(param_id)
    remove_buff(param_id) if @buffs[param_id] < 0
  end
end
@TheoAllen That seems to have fixed it. Thank you.

One thing, though - if you have time to reply. So that I can apply this knowledge correctly in the future, what does the 'm' in the script call refer to, and why do I need it?
@Kes in the simpler term (which hopefully not complicated)
'm' is a name for what you call each of the enemies.

It goes like, game troop, each of the members --> (what are you going to call each of them?)
I put 'm' as the name, but it just arbitrary. You can do 'enemy', or 'e', or whatever you call it.
If you're going to name each of the members as 'enemy', it goes like
Code:
$game_troop.members.each {|enemy| enemy.remove_debuff(2) }

Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/