RMMV How to add an Extra Action and set a skill to It

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
328
Reaction score
92
First Language
German
Primarily Uses
RMMV
this happens in a "Scene map" and i cant use "forceAction" scriptcall to add an extra action with the Skill Id in this case:
JavaScript:
                // 1.queue up the same extra_action for "edited user/target"
            if (_callSrpgMapBattle == true) {
                    _callSrpgMapBattle = false;
                    var user = $gameSystem.EventToUnit(_mapForceUser)[1];
                    var target = $gameSystem.EventToUnit(_mapForceTarget)[1];
                    this.srpgAddMapSkill(action, user, target);
                    //return; THIS WORKS!
            };

                //2. queue up a different "edited-"extra_action for "edited user/target"
            if (_callSrpgMapBattleTest == true) {
                    _callSrpgMapBattleTest = false;
                    var user = $gameSystem.EventToUnit(_mapForceUser)[1];
                    var target = $gameSystem.EventToUnit(_mapForceTarget)[1];
                    // I WANT TO ADD THE EXTRA EDITED ACTION HERE!
                    //var action = user.action(0);
                    //action.setSkill(_mapForceSkill);
                    this.srpgAddMapSkill(action, user, target);
                    //return;
            };
// by default "action" is the current Action ,i think "user.action(0);" would also fit in..
I hope this makes enough sence that somebody can tell me how to add the code for a edited extra "action" in the SECOND example Script-Part..
I want to be able to set the used Skill aswell..

THX in Advance!
 
Last edited:

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

Latest Threads

Latest Profile Posts

Its been almost 6 months since i've been here last and 5 years before that. the worst part is losing the game you were working on in a cpu fire.

Well time to go at it again.
my game is coming together im so happy
In this day and age, i might switch back to RMXP. I’ve lost faith in all the new plugins.
Wow it's been forever since I last logged in! I STILL want to make a game... I'll start it one day for sure!! It's a dream of mine.
This days I couldn't do anything... My mind is so confused and I couldn't work at all, I only wanted to play video games with my friends and that made all my projects delay a lot. Someone else feels this kind of thing sometimes? :/

Forum statistics

Threads
104,286
Messages
1,005,255
Members
135,795
Latest member
Shoutala
Top