this happens in a "Scene map" and i cant use "forceAction" scriptcall to add an extra action with the Skill Id in this case:
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!
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!