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 Profile Posts

Anyone want dynamically soft shadow? :kaohi:
1643106068630.png
Happy Birthday, me!
Woops.
giphy.gif
Ack, I've got to make a script support thread... I hate doing it now; I feel like an annoyance to people. Especially because my questions are usually stupid. Or, at least I assume they are when I don't get any replies lol. Oh well, I'll just make it in the morning. No point doing it now if I'll be asleep.
Slowly working on directions and walking sprites. :kaoback:
mA1ETTy.jpg

Forum statistics

Threads
118,682
Messages
1,117,857
Members
155,805
Latest member
aaranc
Top