HUD Maker (SRDude) - javascript eval

Nantas

- Game developer -
Veteran
Joined
Jan 7, 2017
Messages
209
Reaction score
138
First Language
French
Primarily Uses
RMMV
Hello everyone !

I am using SRDude's HUD Maker plugin and I wondered how to make a bust appear
only when it's one actor's turn.

This eval is correct and helps me to make appear the first character's bust :
SceneManager._scene._statusWindow.visible ? SceneManager._scene._statusWindow.index() === 0 : true

But I have one character that will not have is position fixed ; I mean that he could be at the 2'nd or third battle position. So I want to refer to his index only. How can I do that ?
 

Nantas

- Game developer -
Veteran
Joined
Jan 7, 2017
Messages
209
Reaction score
138
First Language
French
Primarily Uses
RMMV
Bump !

I need help for this. I have sent an email to SRDude, but he doesn't answer.
The thing is : I would like to make a bust appear only when it's one character turn. I cannot use a plugin because all that I have tried aren't compatible. So I can only use HUD Maker plugin.

There is for each picture a condition eval for the picture to appear.
I want this condition to be : only if character 6 turn.

This condition :
SceneManager._scene._statusWindow.visible ? SceneManager._scene._statusWindow.index() === 0 : true
doesn't work because it refers to a position in battle, but not to an actor.
 

Nantas

- Game developer -
Veteran
Joined
Jan 7, 2017
Messages
209
Reaction score
138
First Language
French
Primarily Uses
RMMV

Nantas

- Game developer -
Veteran
Joined
Jan 7, 2017
Messages
209
Reaction score
138
First Language
French
Primarily Uses
RMMV
Please help me :(
Maybe I am not understanding the evals, but please help me...
 

Virage_Detoldev

Villager
Member
Joined
Jan 6, 2018
Messages
18
Reaction score
7
First Language
Portuguese
Primarily Uses
RMMV
You can use PictureEX for this. Por exemple, on the picture folder, put the pictures of the busts with the same name of the characters, and on the name of the pictureEX use $gameActors.actor(actorId).name() and on the condition, use the SceneManager._scene._statusWindow.visible ? SceneManager._scene._statusWindow.index() === 0 : true. That way, when the turn begin, the image will be the person name and the image will change like you want.

P.S.: I dont know if this topic are "dead", sorry to any moderator if I break any rules by answering after so long.
 

pivoo

Haphazardous Scripter
Member
Joined
Jun 6, 2014
Messages
24
Reaction score
18
First Language
English
Primarily Uses
RMMV
what you probably want is
Code:
BattleManager.actor().id === 1
BattleManager.actor() will return the current actors turn; when selecting an actor.
 

Nantas

- Game developer -
Veteran
Joined
Jan 7, 2017
Messages
209
Reaction score
138
First Language
French
Primarily Uses
RMMV
Thank you very much you too ! I have found the solution ! Thank you !
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top