RPG Maker MV

RPG Maker MV

Currently Selected Actor HP bar
I'm trying to create a battle status window which displays the currently selected actors HP/MP/TP name, status effects etc only.

I've tried doing this via battle status window editors but I'm more interested in doing this in SRD's Hudmaker for the added functionality.

Anyone know what the script calls for the currently selected actor are?

I've tried using these

BattleManager.actor().actorId()


BattleManager.actor

But I'm not sure if I'm using them in the correct context. Can someone please help?
< >
12/2 megjegyzés mutatása
I don't know how SRD's HUD Maker might handle stuff, but I believe this returns the active actor:
BattleManager.actor()
Then you can access properties as usual with a dot, e.g. for current HP:
BattleManager.actor().hp
The obvious ones are hp, mp, and tp. Use name() for the battler name. actorId() returns the actor's database ID. =)

States are considerably more complex: do you want the icons, the IDs, the turns remaining, the state objects themselves...? o_o'

I don't know how confident you are with code/JavaScript, but it's possible to look up various properties of actors yourself in rpg_objects.js. Note that Game_Actor inherits from Game_Battler (and hence Game_BattlerBase), so it'll have all those properties and things, too.

May also be worth noting that you can check stuff via the console during test-play! Start battle, press F8 to open the console window, type a line into that window (e.g. BattleManager.actor()) and press the Enter key. It'll evaluate the code and display the result: in this example, the object corresponding to the active actor. Click it to show a detailed property list. ^_^
This is interesting, so I type 'BattleManager.actor()' into the console window and it returns this message

Uncaught ReferenceError: BattleManager is not defined
at <anonymous>:1:1

I checked the javascript file of Hudmaker and it does indeed seem as though it makes no reference to BattleManager.actor()

In simple terms, all I'm really looking for is a battle status window that displays one actor's details at a time, which would of course be the actor that is currently taking their turn. I'm not sure if Hudmaker can handle this fluently so I'm going to see if I can try it via other methods.

< >
12/2 megjegyzés mutatása
Laponként: 1530 50

Közzétéve: 2018. okt. 8., 10:29
Hozzászólások: 2