Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
I am interested in having a skill(s) whose effect varies depending on the user. These skills are executed via items used in battle.

Example: "Book of Fire" (Consumable Item)

If Mage: Cast a fire-like spell to inflict damage.
If Cleric: Heal party by 40%

I can't figure out how to event that nor am I finding a MV plugin to achieve that. Is there such a plugin that I may have missed? Thanks in advance.
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Been thinking. What if the skill/item calls other skills? And the skill that is called is dependent on the user?

Is it possible to event that?
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
453
Reaction score
168
First Language
Not English
Primarily Uses
N/A
Is the target all or one?!
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Is the target all or one?!


Target as in enemies or party? That would depend on the skill and I assume I'd just edit that in the skills section of the database. 

Unless you mean how it checks the party? It would check for actors. So if Bob is in the battle, the item executes "Tri-Slash!". If Ken is also in the same battle, the item can only be thrown for low damage because Ken isn't skilled with that particular item.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
453
Reaction score
168
First Language
Not English
Primarily Uses
N/A
I meant if enemy it will target all enemy?!


if party it will target all party?!
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
I meant if enemy it will target all enemy?!


if party it will target all party?!

Sorry, I don't think I understand clearly, but...

The system involves the battle party using items to inflict damage on enemies, support their allies, etc. I envision these would be skills executed through items. So one particular item can execute various skills depending on the user (So it "targets" the user, to check who it is, to determine what skill to execute). The target of these skills executed via items would also vary. For example:

Heal-like skills may target the user, an ally or the party.
Offensive-like skills may target one enemy, multiple, all or everyone in the battle.

Enemies won't be using items, so they'd have their own unique skills like how it's done normally.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
453
Reaction score
168
First Language
Not English
Primarily Uses
N/A
I can make the item change it's scope from ally to enemy vice versa. and then the item call common event.


but my problem is when you target the enemy your actor will attack twice, the first will make 0 damage and the second it will call the skill.


Now i am trying to fix that, I hope if anyone can help.
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
I can make the item change it's scope from ally to enemy vice versa. and then the item call common event.


but my problem is when you target the enemy your actor will attack twice, the first will make 0 damage and the second it will call the skill.


Now i am trying to fix that, I hope if anyone can help.


Alright.

In the meanwhile I was looking through the script calls and came across this code for the Force Action event:

$gameParty.members()[index].forceAction(skillId, targetIndex);
BattleManager.forceAction($gameParty.members()[index]);

$gameTroop.members()[index].forceAction(skillId, targetIndex);
BattleManager.forceAction($gameTroop.members()[index]);


Is it possible I can set up an item whose Effects call multiple common events that execute the Force Action command via the above script calls? So for example:

Item: Book of Fire

Effects:
Common Event 1
Common Event 2
Common Event 3

(Each common event executes Force Action to utilise the different skills)

Hime's Effect Conditions: http://himeworks.com/2016/02/effect-conditions/

Should enable me to choose which Effect (common event) is executed depending on the user. However, I'm not certain on editing the Force Action code included above (the 4 lines of code) such that it enables the player to choose a target and ensure the user of the item also executes the skill.
 

Latest Threads

Latest Posts

Latest Profile Posts

I think it's ready - Chapter Selection:
unknown.png
On another more gaming topic, I paid 20 bucks for a visual novel to emotionally destroy me. I may write an entry about that.
1638611395177.png
Reading about metaverses recently. I can totally imagine myself in the future, logging in with VR glasses to a virtual beach villa sitting in a virtual chair, with a virtual laptop facing the sea...coding 16-bit RM.
Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."
I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!

Forum statistics

Threads
117,174
Messages
1,105,152
Members
153,280
Latest member
MrDansv
Top