设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MV 讨论区 › Anyone's Message_Face_Switcher v1.2: ANY_Message_Face_Switcher.js

Anyone's Message_Face_Switcher v1.2: ANY_Message_Face_Switcher.js

 

Anyone's Message_Face_Switcher v1.2:
Anyone's Message_Face_Switcher v1.2
by Anyone
​

Introduction:
This is a small plugin made for my current project that allows the game to switch out the message face for the face of an actor designated in the message face's file name.

Features:

  • Easy switching of faces to actor faces without using escape codes in the message text
  • Compatible with plugins that hard-edit the command101 (such as Yanfly's Message Core)
  • The exchange happens early in the message generation, meaning that all text escape codes within the actual message text will act as if that face had been the face assigned in the editor from the start
  • With normal faces, this saves you the time of using an escape like \af[x] to call the actor's face. With face busts plugins, especially the more complex ones, that load the message face from the message face name (such as Irina's VisualNovelBusts), this is essential to load a different bust as face in a seemless way without glitches and other bugs. (For example if your character has a different bust based on the equipment you're wearing)
  • New: (v1.2) Redirection to other Files possible through prefix and suffix
How To Use:
1. Load the plugin preferably close to the bottom of your load order and activate it.
2. Create a *.png file that you wish to use as placeholder of the actor's face and ensure that it contains "_Actor" followed by the number of the ActorId of the actor whose face you wish to load.
Example: Harold_Actor1.png
3. Use the "Harold_Actor1.png" as the face when creating the "Show Text" function in your dialogue event. Regardless of whether Harold_Actor1.png is an empty png file, or contains some other face, this face will instead be switched to whatever face has currently been assigned to Actor1.

Alternatively, you can also use the phrase "_Partymember" in the *.png files' name to instead reference the face of the current party member in the slot.

Take care: the Actor ID's count from 1,2,3,4...
While the Partymember starts with 0 for the party leader: 0,1,2,3
This means that Actor 2 is "_Actor2" but Partymember 2 is "_Partymember1".

FAQ:

Q: The face isn't getting loaded.
A: Make sure you include the "_" sign in front of Actor. This is done to ensure that it won't pick up stuff like Factor12 as valid terms.
HaroldActor1.png is incorrect
Harold_Actor1.png is correct

Q: The wrong Partymember face is assigned.
A: Keep in mind that partymembers are counted from 0. If you want to reference the Partyleader in Slot 1, use...
_Partymember0.png
The Partymembers 2,3 etc. need -1 deducated from their number.

Partymember 3:
_Partymember2.png

Terms of Use:


  • 1. This plugin can be used for free in free and commercial games alike.
  • 2. Credit must be given to "Anyone".
  • 3. The code may be edited & altered to your liking.
  • 4. Redistribution of the original code as well as of edited versions is allowed, so long as proper credit is given.

Demo:
New Demo Version!
Equip items and see the message window face use the correct face.
(This is made possible with the Way_Core and Way_OnEquip plugins)
https://workupload.com/file/3NJTLPD4


Spoiler: Anyone's Message Face Switcher v1.0
                Code:       


Also attached as *.rar archive.

Have fun.

CHANGELOG:
-v1.2
Added new Demo version, added a Redirect Functionality


本贴来自国际rpgmaker官方论坛作者:Anyone处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/anyones-message_face_switcher-v1-2.115168/
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

社区每日抽奖来袭,快来试试你是欧皇还是非酋~

立即查看

Loading...

QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

GMT+8, 2026-10-3 11:44 , Processed in 0.051655 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部