Change actor bust when equip something

Arkaik

Veteran
Veteran
Joined
Apr 25, 2015
Messages
77
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
Hi guys!


I'm planning to use this menu developed by SunRndmDde:










But, here's the thing.


I want to change the actors bust whenever some itens are equipped.


i.e.: Whenever Actor1 equips a Fire Orb his bust image changes to the 'fireorb_image' file and when unequipped it will change to the 'empty_image' file.


Is that possible?


Hope someone can help me with this.
 
Last edited by a moderator:

Whosthat

Villager
Member
Joined
Jan 2, 2015
Messages
16
Reaction score
2
First Language
German
Primarily Uses
RMMV
 just had a quick look on the options the script offers and I haven´t found an option to change the pictures based on equipment.


Since I am not a scripter and generally don`t have any experience in modifieing JavaScript, I honestly can`t tell you if there is an easy way to implement this feature.


It`s probably also a question of how you want to use it:


If you just want to display one item at a time, e.g.  an fire orb OR a helmet, this might be possible.


However if you want to give the Player the opportunity to individuelly put together their equipment and then Display it on the bust, this could be really hard. Therefore you`d need a script similiar to those who display changes on charsets. Unfortunatelly I don`t know any script of that Kind for busts.


The only solution I can think of at the Moment only works if you only want to display a really small amount of equipment. (Oh and by the way it probably sounds so nooby that any scripter would like to imediatelly drag me to the "script tutorials" section for it :guffaw: ):


1.So you`ve set everything up as the help file of the script tells you.


2. Your character was already given the piece of equipment you want to display


3. Now, create a Paralell Process with a conditional branch that checks wheter actor X has equipt equipment Y


3. Then put the script command that changes an actors bust in the section that describes what happens if the conditional branch applys.


4. Repeat for other pieces of equipments/ characters 


Again that`s probably not the best solution but it`s the only one I can think of. It`s probably wise to wait for solutions suggested by other People I suppose
 

Arkaik

Veteran
Veteran
Joined
Apr 25, 2015
Messages
77
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
Hey Whosthat, thanks for the effort, but i didn't understand it completely (English is no my first language :| ).


Btw, i think only @SumRndmDde could help me, since he did the plugin.
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
In order to change an Actor's bust mid-game, you would do:


$dataActors[x].ams_bs_bust = "filename";


inside of a script call.


Replace "x" with the Actor ID, and "filename" with the file name:


//Changes Actor ID 1's Bust to Happy.png
$dataActors[1].ams_bs_bust = "Happy";




How would you update this to fit with an Actor's bust?


I have no idea, but hopefully someone can figure out an effective method using this info. :)
 

Shinice

Villager
Member
Joined
Mar 28, 2016
Messages
9
Reaction score
2
First Language
English
Primarily Uses
Hey Whosthat, thanks for the effort, but i didn't understand it completely (English is no my first language :| ).


Btw, i think only @SumRndmDde could help me, since he did the plugin.

@Whosthat said that if you only want to change the bust, it is possible. For the changing of charsets or sprites of your character, i think you need a separate plugin to do that.
 

Whosthat

Villager
Member
Joined
Jan 2, 2015
Messages
16
Reaction score
2
First Language
German
Primarily Uses
RMMV
In order to change an Actor's bust mid-game, you would do:



$dataActors[x].ams_bs_bust = "filename";


inside of a script call.


Replace "x" with the Actor ID, and "filename" with the file name:



//Changes Actor ID 1's Bust to Happy.png
$dataActors[1].ams_bs_bust = "Happy";




How would you update this to fit with an Actor's bust?


I have no idea, but hopefully someone can figure out an effective method using this info. :)


As a non - scripter I just have to ask: Would`nt it be possible to have a script call every time the Player uses the equip menu the e.g. Triggers a common Event which checks if the item Arkaik wants to Display via the busts is equipped and then Change the bust by using your script call?


Now I know that would mean editing your script and I neither no whether you want people to do so nor if it even is possible, but it would be interesting to know.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top