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

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
341
Reaction score
104
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 Posts

Latest Profile Posts

I always told my DA fans how much I hate slot machines. They're fine in games as a risk-and-reward system. But when you're spending REAL MONEY in a Vegas casino to try and hit the jackpot (which very, very few people will), it can really hurt your budget. Gambling is a bad habit, and I don't like wasting my money on a slim chance. Go to Vegas for the experience, not the jackpot.
Took the kids to a corn maze. They gave us a map and had lights at certain points in the maze. Not overwhelming... or underwhelming... just... whelming.
Okay, vacuuming fruit flies out of the air is surprisingly effective.
Finally finished my menu redesign after like a month of coding! I hate designing menus... Good news though - I thought of a complete redesign for it now, so yay...
Still no scam calls all day... also I got a quick gig designing a mascot drawing for a small business, so I might actually make some green of my own after all. That would be a perfect job for me, since I love art and digital design.

Forum statistics

Threads
104,388
Messages
1,006,031
Members
135,917
Latest member
kingrifer
Top