No idea if your talking about with the plugin enabled or not, But i'm refering to it being disabled and running yanfly's combat system in random encounters.
Lecode Tactical Battle System 0.77.2B
JS Plugin Releases (RMMV)So you have LeTBS installed, but disabled the engine, and are trying to run the encounter using Yanfly's engine?
What exactly doesn't work? Does it throw errors? If so, send me the logs, if possible. I'd be more than happy to debug something like that.
What exactly doesn't work? Does it throw errors? If so, send me the logs, if possible. I'd be more than happy to debug something like that.
Just to be clear, I was using the plugin's plugin command functionality to disable and enable it. But yeah, Not discussing this. I spent 12+ hours getting to the bottom of why random encounters suddenly stopped working, with no error code, no crash, NOTHING to indicate there was a problem. A user reported this bug to me and only when I disabled the entirety of the lecode plugin set in the editor did random encounters start working again.
I am not going to fill myself with false hope knowing that the only solution I had was to disable the entirety of the lecode plugin set in the editor. I now have to rework 1/4 of my damned game because this plugin set decided to break my game at random when it was originally a core feature.
I'm still going to look into that.
I have Flip's large troops plugin, and it outputs enemy troops to my console, which i see it making outputs, but the battle isn't starting.
Definitely something I am going to debug.
I know you don't care, but thanks for bringing this up.
EDIT: Fixed it
For those who want the fix, in LeTBS_Encounters:
Replace
/*-------------------------------------------------------------------------
* Scene_Map
-------------------------------------------------------------------------*/
Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter = Scene_Map.prototype.updateEncounter;
Scene_Map.prototype.updateEncounter = function () {
if ($gamePlayer.executeEncounter() && Lecode.S_TBS.commandOn) {
var mapId = this.getLeTBSEncounterMap();
if (mapId) {
Lecode.S_TBS.Encounters.oldMapId = $gameMap.mapId();
var x = $gamePlayer.x;
var y = $gamePlayer.y;
var d = $gamePlayer.direction();
Lecode.S_TBS.Encounters.oldPos = [x, y, d];
Lecode.S_TBS.Encounters.requested = true;
$gamePlayer.reserveTransfer(mapId, 0, 0, 2, 0);
this.updateTransferPlayer();
}
}
Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter.call(this);
};
With the following.
The issue seems to be the call of "executeEncounter" which seems to reset its value if it can
make an encounter, but since the callback to the original function relied on this, this value is now 0 when it tries to execute the original. So what I did was store this in a variable first, and just replace the callback with the code straight from the original function.
/*-------------------------------------------------------------------------
* Scene_Map
-------------------------------------------------------------------------*/
Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter = Scene_Map.prototype.updateEncounter;
Scene_Map.prototype.updateEncounter = function () {
var executeEnc = $gamePlayer.executeEncounter();
if (executeEnc && Lecode.S_TBS.commandOn) {
var mapId = this.getLeTBSEncounterMap();
if (mapId) {
Lecode.S_TBS.Encounters.oldMapId = $gameMap.mapId();
var x = $gamePlayer.x;
var y = $gamePlayer.y;
var d = $gamePlayer.direction();
Lecode.S_TBS.Encounters.oldPos = [x, y, d];
Lecode.S_TBS.Encounters.requested = true;
$gamePlayer.reserveTransfer(mapId, 0, 0, 2, 0);
this.updateTransferPlayer();
}
}
if (executeEnc) {
SceneManager.push(Scene_Battle);
}
//Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter.call(this);
};
I have Flip's large troops plugin, and it outputs enemy troops to my console, which i see it making outputs, but the battle isn't starting.
Definitely something I am going to debug.
I know you don't care, but thanks for bringing this up.
EDIT: Fixed it
For those who want the fix, in LeTBS_Encounters:
Replace
/*-------------------------------------------------------------------------
* Scene_Map
-------------------------------------------------------------------------*/
Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter = Scene_Map.prototype.updateEncounter;
Scene_Map.prototype.updateEncounter = function () {
if ($gamePlayer.executeEncounter() && Lecode.S_TBS.commandOn) {
var mapId = this.getLeTBSEncounterMap();
if (mapId) {
Lecode.S_TBS.Encounters.oldMapId = $gameMap.mapId();
var x = $gamePlayer.x;
var y = $gamePlayer.y;
var d = $gamePlayer.direction();
Lecode.S_TBS.Encounters.oldPos = [x, y, d];
Lecode.S_TBS.Encounters.requested = true;
$gamePlayer.reserveTransfer(mapId, 0, 0, 2, 0);
this.updateTransferPlayer();
}
}
Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter.call(this);
};
With the following.
The issue seems to be the call of "executeEncounter" which seems to reset its value if it can
make an encounter, but since the callback to the original function relied on this, this value is now 0 when it tries to execute the original. So what I did was store this in a variable first, and just replace the callback with the code straight from the original function.
/*-------------------------------------------------------------------------
* Scene_Map
-------------------------------------------------------------------------*/
Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter = Scene_Map.prototype.updateEncounter;
Scene_Map.prototype.updateEncounter = function () {
var executeEnc = $gamePlayer.executeEncounter();
if (executeEnc && Lecode.S_TBS.commandOn) {
var mapId = this.getLeTBSEncounterMap();
if (mapId) {
Lecode.S_TBS.Encounters.oldMapId = $gameMap.mapId();
var x = $gamePlayer.x;
var y = $gamePlayer.y;
var d = $gamePlayer.direction();
Lecode.S_TBS.Encounters.oldPos = [x, y, d];
Lecode.S_TBS.Encounters.requested = true;
$gamePlayer.reserveTransfer(mapId, 0, 0, 2, 0);
this.updateTransferPlayer();
}
}
if (executeEnc) {
SceneManager.push(Scene_Battle);
}
//Lecode.S_TBS.Encounters.oldSceneMap_updateEncounter.call(this);
};
Yeah, I did a custom script for random encounters. Works fine. IMO the main thing that could call into question the ability to create a full game that utilizes this battle system as its main battle system is the lackluster AI.
The enemy AI is terrible even if you flag everything properly. I would love to see a community fork of this plugin that includes some of the fixes that Pharonix and others have come up with.
The enemy AI is terrible even if you flag everything properly. I would love to see a community fork of this plugin that includes some of the fixes that Pharonix and others have come up with.
Funny enough, i run 77 base, with some fixes taken from the later versions.
The additions I made to my own project's LeTBS is somewhere between 10-20,000+ lines of code.
I couldn't upgrade it if i wanted to haha.
The additions I made to my own project's LeTBS is somewhere between 10-20,000+ lines of code.
I couldn't upgrade it if i wanted to haha.
YOU FIXED IT! OMG, HOW IN THE HELL DID YOU MANAGE TO FIGURE THIS OUT?!
Okay so here's another minor issue maybe you can figure out, my character's color pallets are slapped with a sickly green in the tactical combat mode, any idea why this is occuring?
Thats a new one, might be bc of an overlay?
As for fixing the encounter issue, i knew letbs encounters plugin overrides the original function so it was just a matter of tweaking.
Ill try to take a look at tactical mode rhis weekend
Can you send a screenshot in and out of tactical mode so i have a reference?
EDIT:
I changed the tactical "free cell" color, and am unable to replicate this actually.
I checked my version of letbs tactical mode and the 77.2B version and they are identical.
Do you have any other plugins that modify images?
Have you modified the tactical mode plugin at all?
I'm not seeing anything in the code that references the sprite color.
In the documentation the only thing I see is if the hue and tone tags are used, but they
should effect the display in battle and not just tactical mode.
sprite_tone: 175, 175, 5, 150
sprite_hue: numeric
The ponies at the bottom are supposed to be purple and orange for color reference if this helps. And as far as I can recall, no, no edits to anything but if you think something may be the culprit, point me to it plz.
By tactical mode, I thought you meant that actual feature.
Can you send me the notetags and or config settings(if you use letbs_config.js)
Java:
Lecode.S_TBS.Config = {};
Lecode.S_TBS.Config.Colors = {
ability_proc: "#A901DB"
};
/*-------------------------------------------------------------------------
* Tile effects
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Tile_Effects = {
50: {
"entering,turn_start,turn_end": {
skill_effects: 50,
play_anim: true,
aoe: "circle(0)",
stop_movement: true,
wait: 40
}
},
51: {
"entering": {
skill_effects: 51,
play_anim: true,
aoe: "circle(0)",
stop_movement: true,
wait: 40
},
"leaving": {
skill_effects: 52,
play_anim: true,
aoe: "circle(0)",
stop_movement: false,
wait: 40
}
},
52: {
"entering": {
skill_effects: 50,
play_anim: true,
aoe: "circle(2)",
stop_movement: true,
wait: 40
}
},
53: {
"entering": {
skill_effects: 53,
play_anim: true,
aoe: "circle(1)",
stop_movement: true,
wait: 40
}
},
73: {
"entering": {
escape: true
}
}
};
/*-------------------------------------------------------------------------
* Marks
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Marks = {
"explosive_mark": {
body_anim: 784,
disappearing_anim: 785,
size: "square(1)",
triggers: {
"turn_end": {
stop_movement: false,
skill_effects: 77,
effects_aoe: "circle(0)"
}
},
max: 1,
duration: [3, "turn_end"]
},
"volcano_cell": {
body_anim: 150,
size: "circle(0)",
triggers: {
"stepping, turn_start, turn_end": {
stop_movement: false,
skill_effects: 48,
effects_aoe: "circle(0)"
}
},
duration: [3, "turn_end"]
},
"magic_trap": {
body_anim: 787,
disappearing_anim: 788,
size: "circle(0)",
triggers: {
"stepping": {
stop_movement: true,
skill_effects: 81,
effects_aoe: "circle(0)"
}
},
max_triggers: 1,
duration: [100, "turn_end"]
},
"crystal_mark": {
body_anim: 157,
disappearing_anim: 158,
size: "square(2)",
triggers: {
"stepping": {
stop_movement: false,
skill_effects: 45,
effects_aoe: "circle(0)"
}
}
},
"anti_crystal_mark": {
body_anim: 160,
disappearing_anim: 161,
size: "square(2)",
triggers: {
"stepping": {
stop_movement: false,
skill_effects: 47,
effects_aoe: "circle(0)"
}
}
},
"mago_mark": {
body_anim: 171,
disappearing_anim: 172,
size: "square(1)",
triggers: {
"turn_end": {
stop_movement: false,
skill_effects: 77,
effects_aoe: "circle(0)"
}
},
max: 1,
duration: [3, "turn_end"]
},
"sentinel_totem": {
body_anim: 0, //189
disappearing_anim: 190,
size: "circle(2)",
triggers: {
"entering,turn_start": {
stop_movement: true,
}
}
},
};
/*-------------------------------------------------------------------------
* Aura
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Aura = {
"intimidating_aura": {
size: "circle(1)",
affect_caster: false,
target_type: "enemy",
states: [32],
trigger_anim: 142
},
"sentinel_totem": {
size: "circle(2)",
affect_caster: false,
target_type: "enemy",
states: [],
stop_movement: true,
action: {
skill: 91
}
}
};
/*-------------------------------------------------------------------------
* Projectiles
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Projectiles = {
"bow_arrow": {
filename: "Arrow",
adapt_angle: true,
speed: 8,
trajectory: "curved_jump(150)"
},
"ghost_arrow": {
anim: [172, 36, 16],
adapt_angle: "to_control_points",
speed: 12,
trajectory: "zigzag(40)"
},
"fire_ball": {
anim: [147, 45, 38],
adapt_angle: true,
speed: 9,
trajectory: "line(0)"
},
"fire_arrow": {
anim: [179, 36, 16],
adapt_angle: true,
speed: 9,
trajectory: "line(0)"
},
"phantom_slash": {
anim: [131, 56, 50],
adapt_angle: true,
speed: 9,
trajectory: "line(0)"
},
"great_wind": {
anim: [228, 56, 50],
adapt_angle: true,
speed: 14,
trajectory: "line(0)"
},
"mana_ball": {
anim: [181, 34, 34],
adapt_angle: false,
speed: 2,
trajectory: "bounce(250)"
},
"dagger": {
filename: "Dagger",
adapt_angle: true,
speed: 12,
trajectory: "line(0)"
},
};
/*-------------------------------------------------------------------------
* Trajectories
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Trajectories = {
"line": {
points: [
[0,0],
[1,0],
]
},
"curved_jump": {
points: [
"parabola(0,0,1,0)"
]
},
"normal_jump": {
points: [
[0,0],
[0.5,1],
[1,0],
]
},
"sneaky": {
points: [
[0,0],
[1,1],
[1.1,0],
[1,0],
]
},
"zigzag": {
points: [
"linear(0,0,0.25,1)",
"linear(0.25,1,0.75,-1)",
"linear(0.75,-1,1,0)",
]
},
"twirling": {
points: [
[0,0],
[0.25,0.5],
[0.5,0],
[0.75,-0.5],
[1,0],
]
},
"bounce": {
points: [
"parabola(0,0,0.5,0)",
"parabola(0.5,0,1,0)"
]
}
};
/*-------------------------------------------------------------------------
* Summons
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Summons = {
"ice_block": {
turn_order: "none",
kind: "enemy",
id: 224,
tied_to_caster: false,
stats: {
mhp: "+30%"
}
},
"wind_spirit": {
turn_order: "after_caster",
visible_in_timeline: true,
kind: "actor",
id: 11,
tied_to_caster: true,
stats: {
default: "90%",
mhp: "70%",
mmp: "+10%"
}
},
"pyra": {
turn_order: "after_caster",
kind: "enemy",
id: 7,
tied_to_caster: true,
stats: {
}
},
"pixie": {
turn_order: "after_caster",
kind: "actor",
id: 12,
tied_to_caster: true,
stats: {
default: "90%",
mhp: "60%",
mmp: "+10%"
}
},
"fire_chicken": {
turn_order: "after_caster",
kind: "actor",
id: 13,
tied_to_caster: false,
stats: {
default: "90%",
mhp: "15%"
}
},
"sentinel_totem": {
turn_order: "none",
kind: "actor",
id: 14,
tied_to_caster: true,
stats: {
default: "80%",
mhp: "+5%",
atk: "160%",
mat: "160%"
}
},
};
/*-------------------------------------------------------------------------
* Custom Scopes
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Custom_Scopes = {
"fire_storm": {
data: "[cx,cy-2],[cx-1,cy-1],[cx+1,cy-1],[cx-2,cy],[cx+2,cy],[cx-1,cy+1],[cx+1,cy+1],[cx,cy+2]"
},
"rush": {
data: "[cx+3,cy],[cx-3,cy],[cx,cy+3],[cx,cy-3]"
},
"volcano_ground": {
data: "[cx-2,cy-2],[cx,cy-2],[cx+2,cy-2],[cx-1,cy-1],[cx+1,cy-1],[cx-2,cy],[cx+2,cy],[cx-1,cy+1],[cx+1,cy+1],[cx-2,cy+2],[cx,cy+2],[cx+2,cy+2]"
},
"fire_ball": {
data: "[cx,cy+1],[cx-1,cy+2],[cx,cy+2],[cx+1,cy+2],[cx-2,cy+3],[cx-1,cy+3],[cx,cy+3],[cx+1,cy+3],[cx+2,cy+3],[cx-3,cy+4],[cx-2,cy+4],[cx-1,cy+4],[cx,cy+4],[cx+1,cy+4],[cx+2,cy+4],[cx+3,cy+4],[cx-4,cy+5],[cx-3,cy+5],[cx-2,cy+5],[cx-1,cy+5],[cx,cy+5],[cx+1,cy+5],[cx+2,cy+5],[cx+3,cy+5],[cx+4,cy+5],[cx-5,cy+6],[cx-4,cy+6],[cx-3,cy+6],[cx-2,cy+6],[cx-1,cy+6],[cx,cy+6],[cx+1,cy+6],[cx+2,cy+6],[cx+3,cy+6],[cx+4,cy+6],[cx+5,cy+6]"
},
"ice_fury": {
data_right: "[cx,cy],[cx+1,cy],[cx+2,cy]",
data_left: "[cx-2,cy],[cx-1,cy],[cx,cy]",
data_up: "[cx,cy-2],[cx,cy-1],[cx,cy]",
data_down: "[cx,cy],[cx,cy+1],[cx,cy+2]"
},
"fire_arrows": {
data_right: "[cx+2,cy-2],[cx+1,cy-1],[cx+2,cy-1],[cx,cy],[cx+1,cy],[cx+2,cy],[cx+1,cy+1],[cx+2,cy+1],[cx+2,cy+2]",
data_left: "[cx-2,cy-2],[cx-2,cy-1],[cx-1,cy-1],[cx-2,cy],[cx-1,cy],[cx,cy],[cx-2,cy+1],[cx-1,cy+1],[cx-2,cy+2]",
data_up: "[cx-2,cy-2],[cx-1,cy-2],[cx,cy-2],[cx+1,cy-2],[cx+2,cy-2],[cx-1,cy-1],[cx,cy-1],[cx+1,cy-1],[cx,cy]",
data_down: "[cx,cy],[cx-1,cy+1],[cx,cy+1],[cx+1,cy+1],[cx-2,cy+2],[cx-1,cy+2],[cx,cy+2],[cx+1,cy+2],[cx+2,cy+2]"
},
"ice_wall": {
data_right: "[cx,cy-1],[cx,cy],[cx,cy+1]",
data_left: "[cx,cy-1],[cx,cy],[cx,cy+1]",
data_up: "[cx-1,cy],[cx,cy],[cx+1,cy]",
data_down: "[cx-1,cy],[cx,cy],[cx+1,cy]"
},
"ice_prison": {
data: "[cx-1,cy-1],[cx,cy-1],[cx+1,cy-1],[cx-1,cy],[cx+1,cy],[cx-1,cy+1],[cx,cy+1],[cx+1,cy+1]"
}
};
/*-------------------------------------------------------------------------
* Weapon Animation
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Weapon_Anims = {
"swing": [
{
y: -12,
angle: 0
},
{
y: -12,
angle: 45,
duration: 0.15
},
{
y: -14,
angle: 90,
duration: 0.15
}
]
};
/*-------------------------------------------------------------------------
* Sequences
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.Sequences = {
/*-------------------------------------------------------------------------
* Events Sequences
-------------------------------------------------------------------------*/
"battle_start": [
],
"turn_start": [
"play_pose: user, turn_start"
],
"victory": [
"play_pose: user, victory, victory"
],
"dead": [
"anim: user, collapse_anim",
"play_pose: user, dead, dead",
"wait: 20",
"validate_death: user"
],
"dead_no_loop": [
"anim: user, collapse_anim",
"play_pose: user, dead",
"set_frame: user, dead, last",
"wait: 40",
"validate_death: user"
],
"dead_vanish": [
"play_pose: user, dead, true",
"anim: user, collapse_anim, true",
"set_frame: user, dead, last",
"wait: 20",
"sprite_prop: user, opacity, 0",
"validate_death: user"
],
"revived": [
"sprite_prop: user, opacity, 255",
"play_pose: user, idle, idle",
],
"damaged": [
"sprite_shake: user, 6, 30",
"play_pose: user, hit, wait",
"set_frame: user, hit, last",
"wait: 5",
"play_pose: user, idle"
],
"evaded": [
],
"healed": [
],
"buffed": [
],
"weakened": [
],
/*-------------------------------------------------------------------------
* Default Action Sequences
-------------------------------------------------------------------------*/
"atk": [
"play_pose: user, atk",
"wait: 10",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60"
],
"cast(loop)": [
"play_pose: user, cast, cast",
"wait: 4",
"map_anim: user_cell, 858, 0, true"
],
"pre-skill": [
"call: cast(loop)",
"wait: 4",
"play_pose: user, atk, wait",
"set_frame: user, atk, last",
"wait: 2"
],
"post-skill": [
"wait: 10",
"play_pose: user, idle",
"wait: 10"
],
"skill": [
"call: pre-skill",
"effects: {aoe}_battlers, current_obj, obj_anim, 0, true",
"call: post-skill"
],
"map_skill": [
"call: pre-skill",
"map_effects: {aoe}, current_obj, obj_anim, 0, true",
"call: post-skill"
],
"item": [
"play_pose: user, item",
"wait: 10",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60"
],
"skill_neutral": [
"play_pose: user, cast",
"wait: 15",
"effects: {aoe}_battlers, current_obj, obj_anim, 0, true",
"play_pose: user, idle",
"wait: 20"
],
"map_skill_neutral": [
"play_pose: user, cast",
"wait: 15",
"map_effects: {aoe}, current_obj, obj_anim, 0, true",
"play_pose: user, idle",
"wait: 20"
],
"projectile": [
"play_pose: user, atk",
"wait: 10",
"projectile: $1, user_cell, {aoe}_battlers, current_obj, obj_anim",
"wait: 60"
],
"counter": [
"anim: user, 177, 0, true",
"wait: 15"
],
"summon": [
"call: pre-skill",
"map_anim: {aoe}, obj_anim",
"wait: 15",
"summon: $1, {aoe}",
"call: post-skill"
],
"atk_push": [
"play_pose: user, atk",
"wait: 10",
"effects: {aoe}_battlers, current_obj, obj_anim",
"if: isHit('{aoe}_battlers')",
"set_speed: {aoe}_battlers, +6",
"push: {aoe}_battlers, user_cell, $1",
"set_speed: {aoe}_battlers, reset",
"end_if",
"wait: 60"
],
"atk_pull": [
"play_pose: user, atk",
"wait: 10",
"effects: {aoe}_battlers, current_obj, obj_anim",
"set_speed: {aoe}_battlers, +6",
"pull: {aoe}_battlers, user_cell, $1",
"set_speed: {aoe}_battlers, reset",
"wait: 60"
],
"skill_push": [
"call: pre-skill",
"effects: {aoe}_battlers, current_obj, obj_anim, 0, true",
"set_speed: {aoe}_battlers, +6",
"push: {aoe}_battlers, user_cell, $1",
"set_speed: {aoe}_battlers, reset",
"call: post-skill",
],
"skill_pull": [
"call: pre-skill",
"effects: {aoe}_battlers, current_obj, obj_anim, 0, true",
"set_speed: {aoe}_battlers, +6",
"pull: {aoe}_battlers, user_cell, $1",
"set_speed: {aoe}_battlers, reset",
"call: post-skill",
],
/*-------------------------------------------------------------------------
* Your Sequences
-------------------------------------------------------------------------*/
"flash_jump": [
"set_frame: user, atk, 0",
"wait: 15",
"jump_to_cell: user, cursor_cell",
"play_pose: user, atk",
"map_effects: {aoe}, current_obj, obj_anim"
],
"rush": [
"wait: 10",
"set_frame: user, atk, 0",
"wait: 30",
"play_pose: user, atk",
"directional_anim: user, user, 126, 127, 128, 129",
"look_at: user, cursor_cell",
"set_speed: user, +6",
"move_straight: user, 2",
"set_speed: user, reset",
"set_frame: user, atk, last",
"wait: 12",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 20",
"play_pose: user, idle",
"wait: 10"
],
"phantom_slash": [
"play_pose: user, atk",
"wait: 10",
"projectile: phantom_slash, user_cell, cursor_cell",
"effects: {aoe}_battlers, current_obj, 742",
"anim: user, 743",
"wait: 20",
"reach_target: user, {aoe}_battlers, back, true",
"anim: user, 744",
"look_at: user, cursor_cell",
"play_pose: user, atk",
"wait: 10",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60"
],
//-
"spark": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 20",
"effects: {aoe}_battlers, current_obj, obj_anim",
"call: post-skill"
],
"lightning_storm": [
"call: pre-skill",
"call: lightning_storm_effects, 3",
"call: post-skill"
],
"lightning_storm_effects": [
"effects: 1_battlers_in_{aoe}, current_obj, obj_anim",
"wait: 60"
],
"fire_storm": [
"call: pre-skill",
"call: fire_storm_effects, 6",
"call: post-skill"
],
"fire_storm_effects": [
"map_effects: 1_cells_in_{aoe}, current_obj, obj_anim",
"wait: 60"
],
"fire_support": [
"filter_cells: {circle(1)}_allies, cursor_battler, new_cells",
"ask_call: fire_support_attack, saved(new_cells)",
"call: skill"
],
"fire_support_attack": [
"look_at: user, cursor_cell",
"call: cast(loop)",
"wait: 4",
"call: atk"
],
"volcano_ground": [
"call: pre-skill",
"map_anim: {aoe}, obj_anim",
"wait: 20",
"mark: volcano_cell, {aoe}",
"wait: 60",
"call: post-skill"
],
"walking_fire": [
"call: pre-skill",
"call_for_every_cell: walking_fire_dmg, {aoe}, close->far",
"call: post-skill"
],
"walking_fire_dmg": [
"map_anim: saved(every_cell), obj_anim",
"map_effects: saved(every_cell), current_obj, obj_anim",
"wait: 30"
],
"ice_wall": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 30",
"summon: ice_block, {aoe}",
"call: post-skill"
],
"ice_prison": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 30",
"summon: ice_block, {aoe}",
"call: post-skill"
],
"witch_escape": [
"call: pre-skill",
"anim: user, 169",
"wait: 40",
"save_cells: witch_escape_old, user_cell",
"move_to_cell: user, cursor_cell, true",
"anim: user, 170",
"wait: 60",
"set_cursor: saved(witch_escape_old)",
"look_at: user, cursor_cell",
"use_skill: user, 43"
],
"mega_spark": [
"call: pre-skill",
"call_for_every_mscope: mega_spark_hit",
"call: post-skill"
],
"mega_spark_hit": [
"map_anim: saved(mscope_center), obj_anim",
"wait: 20",
"effects: saved(mscope_aoe), current_obj, obj_anim"
],
"fire_queen": [
"screen_tone: -88, -88, -88, 0, 30",
"wait: 30",
"call: pre-skill",
"effects: 1_enemies_in_{circle(6)}, current_obj, obj_anim",
"wait: 25",
"call: post-skill",
"screen_tone: 0, 0, 0, 0, 30",
],
//-
"heal": [
"call: pre-skill",
"anim: {aoe}_battlers, obj_anim",
"wait: 20",
"effects: {aoe}_battlers, current_obj, obj_anim",
"call: post-skill"
],
"teleportation": [
"call: pre-skill",
"anim: user, 779",
"wait: 40",
"move_to_cell: user, cursor_cell, true",
"anim: user, 780",
"wait: 60",
"call: post-skill"
],
"salvation": [
"call: pre-skill",
"anim: user, obj_anim",
"filter_entities: {aoe}_allies, user, new_targets",
"pull: saved(new_targets), user_cell, 2, false",
"wait: 20",
"effects: saved(new_targets), current_obj, obj_anim",
"wait: 60",
"call: post-skill"
],
"teleportation_sup": [
"script: user.setDir(user._lastDir);",
"call: pre-skill",
"save_cells: battler_toward_user, battler_pos",
"anim: last_targets, 779",
"wait: 40",
"move_to_cell: saved(battler_pos), cursor_cell, true",
"anim: last_targets, 780",
"wait: 60",
"call: post-skill"
],
"explosive_mark": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 20",
"mark: explosive_mark, cursor_cell",
"wait: 60",
"call: post-skill"
],
"ghost_arrow": [
"call: pre-skill",
"projectile: ghost_arrow, user_cell, cursor_cell",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60",
"call: post-skill"
],
"magic_trap": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 20",
"mark: magic_trap, cursor_cell",
"wait: 60",
"call: post-skill"
],
"fire_arrows": [
"call: pre-skill",
"call_for_every_entity: fire_arrow_dmg, {aoe}_battlers",
"call: post-skill"
],
"fire_arrow_dmg": [
"projectile: fire_arrow, user_cell, saved(every_entity)",
"effects: saved(every_entity), current_obj, obj_anim"
],
"wind_spirit": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 15",
"summon: wind_spirit, cursor_cell",
"call: post-skill"
],
"great_wind": [
"call: pre-skill",
"projectile: great_wind, user_cell, cursor_cell",
"effects: {aoe}_battlers, current_obj, obj_anim",
"set_speed: {aoe}_battlers, +12",
"push: {aoe}_battlers, user_cell, 3",
"set_speed: {aoe}_battlers, reset",
"call: post-skill"
],
"transposition": [
"call: pre-skill",
"anim: user, obj_anim",
"anim: {aoe}_battlers, obj_anim",
"wait: 40",
"switch_cells: user, {aoe}_battlers",
"call: post-skill"
],
"summon_pixie": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 15",
"summon: pixie, cursor_cell",
"call: post-skill"
],
"shamanism": [
"call: pre-skill",
"anim: {aoe}_dead_battlers, obj_anim",
"wait: 20",
"call_for_every_entity: shamanism_effects, {aoe}_dead_battlers",
"call: post-skill"
],
"shamanism_effects": [
"anim: allies, 169",
"effects: allies, current_obj, obj_anim",
"wait: 60",
],
"ally_teleport": [
"wait: 60",
"save_entities: ally_teleport, cursor_battler",
"request_selection: skill(91)",
"call: pre-skill",
"anim: saved(ally_teleport), 169",
"wait: 40",
"move_to_cell: saved(ally_teleport), cursor_cell, true",
"anim: saved(ally_teleport), 170",
"wait: 60",
"call: post-skill"
],
"mana_ball": [
"call: pre-skill",
"bounce: mana_ball_effects, cursor_battler, 2, circle(3), enemy",
"call: post-skill"
],
"mana_ball_effects": [
"projectile: mana_ball, saved(bounce_entity1), saved(bounce_entity2)",
"effects: saved(bounce_entity2), current_obj, obj_anim",
],
//-
"fire_ball": [
"call: pre-skill",
"projectile: fire_ball, user_cell, cursor_cell",
"effects: {aoe}_battlers, current_obj, obj_anim",
"wait: 60",
"call: post-skill"
],
"crystal_mark": [
"map_anim: cursor_cell, obj_anim",
"wait: 20",
"mark: crystal_mark, cursor_cell"
],
"anti_crystal_mark": [
"map_anim: cursor_cell, obj_anim",
"wait: 20",
"mark: anti_crystal_mark, cursor_cell"
],
"mago_mark": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 20",
"mark: mago_mark, cursor_cell",
"wait: 60",
"call: post-skill"
],
"rabbit_jump": [
"set_frame: user, atk, 0",
"wait: 8",
"map_anim: user_cell, obj_anim",
"jump_to_cell: user, cursor_cell",
"play_pose: user, atk",
"map_effects: user_cell, current_obj, obj_anim"
],
"summon_pyra": [
"call: pre-skill",
"map_anim: cursor_cell, obj_anim",
"wait: 15",
"summon: pyra, cursor_cell",
"call: post-skill"
],
//-
"rush_sup": [
"wait: 20",
"directional_anim: user, user, 131, 132, 133, 134",
"look_at: user, cursor_cell",
"move_straight: user, 2",
"wait: 10",
"effects: {aoe}_battlers, current_obj, obj_anim",
"look_away: {aoe}_battlers, user_cell",
"wait: 5",
"delegate_call: rush_sup_action, {aoe}_battlers"
],
"rush_sup_action": [
"directional_anim: user, user, 131, 132, 133, 134",
"move_straight: user, 2",
"wait: 10",
"set_battler_targets: battler_toward_user",
"effects: last_targets, current_obj, obj_anim",
"look_away: last_targets, user_cell",
"wait: 5",
"end_delegated_call:",
"delegate_call: rush_sup_action, last_targets"
]
};
/*-------------------------------------------------------------------------
* AI
-------------------------------------------------------------------------*/
Lecode.S_TBS.Config.AI = {
BehaviorsOrder: [
"healing",
"escape",
"summon",
"support",
"offense" // <- Keep offense at the end, for now
],
"default": [
"process_behaviors",
"call_behavior: end_of_turn"
],
"end_of_turn": [
"wait: 5",
"pass: look_closest_enemy"
],
"action_requested": [
"process_requested_action",
"force_end"
],
/*-------------------------------------------------------------------------
* Default behaviors
-------------------------------------------------------------------------*/
"use_healing": [
"search_target: self, 100%, healing",
"if: !isTargetValid()",
"search_target: lowest_ally, 100%, healing",
"if: !isTargetValid()",
"search_target: closest_ally, 100%, healing",
"endif",
"endif",
"if: isTargetValid()",
"set_action: healing, average",
"move_for_action: null",
"use: defined_action",
"endif",
"call_behavior: after_healing"
],
"after_healing": [
"if: user.hpRate() <= 0.3",
"call_behavior: smart_move_away_enemies",
"else",
"call_behavior: after_offense",
"endif"
],
"use_support": [
"search_target: lowest_ally, 100%, support",
"if: !isTargetValid()",
"search_target: self, 100%, support",
"if: !isTargetValid()",
"search_target: closest_ally, 100%, support",
"endif",
"endif",
"if: isTargetValid()",
"set_action: support, average",
"move_for_action: null",
"use: defined_action",
"call_behavior: after_support",
"else",
"move: toward_enemies, 20%",
"endif"
],
"after_support": [
"if: canUseEscape()",
"call_behavior: escape",
"else",
"if: pattern('ranged_fighter')",
"call_behavior: smart_move_away_enemies",
"else",
"move: toward_enemies, 100%",
"endif",
"endif"
],
"use_summon": [
"if: distanceToEnemies() > entity.getMovePoints() + 1",
"move: toward_enemies, 75%",
"endif",
"set_action: summon",
"move_for_action: null",
"use: defined_action",
"call_behavior: after_summon"
],
"after_summon": [
"call_behavior: after_support"
],
"use_offense": [
/*"if: chance(70)",
"search_target: lowest_enemy, 100%, offense",
"if: !isTargetValid()",
"search_target: closest_enemy, 100%, offense",
"endif",
"else",
"search_target: closest_enemy, 100%, offense",
"endif",*/
"search_target: closest_enemy, 100%, offense",
"if: isTargetValid()",
"set_action: damage, average",
"move_for_action: null",
"use: defined_action",
"call_behavior: after_offense",
"else",
"move: toward_enemies, 100%",
"endif"
],
"cant_use_offense": [
"if: failureCode() === 'out_of_range'",
"call_behavior: out_of_range",
"else",
"move: away_enemies, 100%",
"endif"
],
"after_offense": [
"if: canUseEscape()",
"call_behavior: escape",
"else",
"if: pattern('ranged_fighter')",
"call_behavior: smart_move_away_enemies",
"else",
"if: !isInMeleeWith('defined_target')",
"move: toward_enemies, 100%",
"endif",
"endif",
"endif"
],
"out_of_range": [
"if: canUseRush()",
"set_action: move, toward",
"move_for_action: null",
"use: defined_action",
"endif",
"if: chance(40)",
"move: toward_enemies, 80%",
"else",
"move: toward_enemies, 100%",
"endif"
],
"escape": [
"set_action: move, away",
"move_for_action: null",
"use: defined_action",
"wait: 10",
"call_behavior: smart_move_away_enemies",
],
"smart_move_away_enemies": [
"if: distanceToEnemies() >= 3",
"move: toward_enemies, 75%",
"else",
"move: away_enemies, 100%",
"endif",
]
/*-------------------------------------------------------------------------
* Your behaviors
-------------------------------------------------------------------------*/
};
It should be noted that as far as I can remember, i have altered nothing in this file but just in case i may have...
P.S: I thought this mode WAS the tactical mode feature? Am i missing something with this plugin?
If you press "X" and select "Tactical Mode"
As for your config file, I don't see anything off.
Can you send me some actor/enemy notetags so I can check those too?
So far things seem to point to one of your extra overlays (time)
I also notice a faint white box around obstacles on your map
What I'm thinking is something like you set hues in character sprite via an oversight, but i'm not sure.
I'm not seeing anything in the code that could cause an overlay, unless it was configured....
I'm hoping the notetags give me an idea, I hope it wouldn't require me debugging your project (which I would be happy to do if needed).
@Pharonix
Went ahead and set up the jump command using Yanfly as you suggested. It works great when the skill is accessed normally via the skill menu, but, as I feared it might, the skill still shows up at the top level of the LeTBS command menu because I've added it to LeTBS_Commands.js
Also, couldn't figure out why my move wasn't subtracting move points after it gets used. Turns out it's spelled wrong in the documentation.
lol
Says the command is: move_points: +number
It is actually: move_points+: number
Also, bad news, if you get inflicted with status that brings your movement down to a negative number... the plugin immediately crashes. Seems like it might be a bad idea to mess with movement points, unless you're adding to them, as things stand. It seems like it's bound to break so long as negative movement has the potential to crash the game.
Went ahead and set up the jump command using Yanfly as you suggested. It works great when the skill is accessed normally via the skill menu, but, as I feared it might, the skill still shows up at the top level of the LeTBS command menu because I've added it to LeTBS_Commands.js
Also, couldn't figure out why my move wasn't subtracting move points after it gets used. Turns out it's spelled wrong in the documentation.
lol
Says the command is: move_points: +number
It is actually: move_points+: number
Also, bad news, if you get inflicted with status that brings your movement down to a negative number... the plugin immediately crashes. Seems like it might be a bad idea to mess with movement points, unless you're adding to them, as things stand. It seems like it's bound to break so long as negative movement has the potential to crash the game.
The code currently uses this._movePoints.clamp(0, this._movePoints)
which really doesn't do anything for negatives.
in LeTBS.js find
TBSEntity.prototype.getMovePoints = function () {
Replace it with this:
TBSEntity.prototype.getMovePoints = function () {
if (this.oneTimeMove() && this._movePerformed) return 0;
return Math.max(0, this._movePoints.clamp(0, this._movePoints));
};
What this will do is check if 0, or the clamped movepoints is larger (if negative it should return "0"
Let me know if this works
EDIT:
As for the other issue, adding a command via the LeTBS_Commands will not work. Yanfly skill show only affects if selected via the menu.
It seems the LeTBS command adds it indiscriminitely and doesn't process yanfly code there..
One way around it would be to add a skill type for "Utility" and add jump there. But obviously that defeats the ease of making it a command.
Considering I haven't delved very far into this plugin and its features(most becuase I don't understand how to use most of it) I'm assuming by notetags your meaning the actor notes box in which case I've screen capped for more convience.:
If your talking about in map event notes then there are none.
P.S: The white squares you are seeing are from a paralax map plugin I'm using by Quasi though its an older version of his plugin set as his newer version is incompatible with my game version and/or plugins. I find it very unlikely for it being the culprit though.
Should also note that this color distortion ONLY APPLIES to in the Tactical combat mode, normal combat it perfectly fine, no color issues, maps are fine, no color issues, its literally only happening in the TBS.
Those Notetags seem fine,
Which leads me to think another script may be causing this, perhaps another overlay script? I doubt the time overlay caused this. But without the actual project file, I'm not entirely sure I'd be able to debug that, but I feel bad asking for something like that.
Which leads me to think another script may be causing this, perhaps another overlay script? I doubt the time overlay caused this. But without the actual project file, I'm not entirely sure I'd be able to debug that, but I feel bad asking for something like that.
That fixes the crash. Thank you so much.
Just did some more testing on this. This resolves the crash that occurs when a status effect drops your movement to negatives -- big checkmark there.
It does not resolve the crash that occurs when viewing a skill type menu (special, misc, whatever) which would normally contain skill where the range is dependent on movement points when your points are 0 or less.
It is possible to mitigate that using Yanfly's to hide the skill. I'm assuming it's trying to calculate the range so that it can preview the area of effect when I hover over the skill, and the math there was not set up to handle a negative or 0 value.
Also, whenever I try to spawn in an enemy via a TBS event command I get this:
Here is my TBS event:
It's mostly a copy/paste of the bandit event from the demo, with camera movement and such stripped out. Also I tried keeping the flags as bandit1 and bandit2... I get the same error.
I'm very likely missing something, but can't figure out what.
Here is my TBS event:
It's mostly a copy/paste of the bandit event from the demo, with camera movement and such stripped out. Also I tried keeping the flags as bandit1 and bandit2... I get the same error.
I'm very likely missing something, but can't figure out what.
Original thread: https://forums.rpgmakerweb.com/threads/lecode-tactical-battle-system-0-77-2b.71572/