Lecode Tactical Battle System 0.77.2B

Discussion in 'JS Plugin Releases (RMMV)' started by Lecode, Nov 28, 2016.

  1. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    619
    Likes Received:
    268
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    I was actually working on something like this.
    It's still in-progress but it works like this:

    I have the state
    RESTRICT MOVE


    In order to do this, I take the 8 surrounding cells of the cell that is being tested in the isCellReachable function
    and have the BattleManager pull any entities in them, and checks
    IF there is an entity, is that entity possessing the [RESTRICT MOVE] state
    If yes, then return false -> This cell is affected.

    I need to run some more tests, and line out some more javascript, but it should be done sometime next week.
    I'll post a video when its done.
     
  2. Danielcross

    Danielcross Veteran Veteran

    Messages:
    71
    Likes Received:
    7
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks again Pharonix, I'll give it a shot!

    Edit: Thanks, it worked like a charm!
     
    Last edited: Sep 14, 2019
  3. Jomarcenter

    Jomarcenter jomarcenter-MJM Veteran

    Messages:
    1,218
    Likes Received:
    149
    Location:
    philippines
    First Language:
    ENGLISH
    Primarily Uses:
    RMMV
    Who manages the script? I really need to know since I am planning to try to program additional custom features into the scripts. and I cannot see the documentation since the github link is not worrking
     
  4. kmack

    kmack Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I am having issues getting the Console plugin from the demo to run with my game files. I double-checked the plugin order vs the demo, attempted to resize the window, however still receive the following errors:

    Any ideas on how to fix?

    EDIT: For now I have disabled the Console.js and am testing compatibility of LeCodeTBS with many of Yanfly's scripts. The game seems to boot fine with this disabled.
     
    Last edited: Sep 17, 2019
  5. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    619
    Likes Received:
    268
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    Edit: Tagged the Wrong Person: :)
    @pulsusego

    Hey man,

    My script is coming along nicely

    Check this out:
    The blonde soldier, is affected with state 100 (the default I chose for "Influence")

    If a unit is affected with this state, and is found in the list of 8 directions around a cell in the "Moveables" list so to speak
    it gets blacked out, and can't be used, as it is under the influence of that enemy

    upload_2019-9-16_11-49-58.png

    The trickier part was making sure allies/enemies weren't affected.
    I decided that even if brainwashed/charmed/confused, I don't want allies to be affected by their friends, same for enemies:
    Though I could add this in the future

    upload_2019-9-16_11-55-30.png
    In this second picture, our partner is also under the passive for "Influence"
    Lets check it out
    upload_2019-9-16_12-7-30.png
    Now, normally the enemy would run right up to you.
    Let's hope it works:

    upload_2019-9-16_12-10-34.png
    upload_2019-9-16_12-11-0.png
    As we can see, the enemies are simply surrounding our Trusty Knight.
    Since they carry only swords, they need to be within 1 cell surrounding an enemy to attack, but unfortunately for them,
    they can't get into position.
    I'd say my tests are successful from both a ally and enemy side.

    Feel Free to test it out:
    https://www.dropbox.com/s/0gadzi6o4oafkx7/PHX_LeTBS_Influence.js?dl=0

    Make sure it is underneath every LeTBS script
    There's a param for Influence 2, but that will take me a little longer
    Let me know if it causes any issues.
    I've had to tread carefully because my LeTBS version is heavily modified, so it'll be nice to know if I made this one compatible with more
    vanilla versions.
     

    Attached Files:

  6. pulsusego

    pulsusego Villager Member

    Messages:
    16
    Likes Received:
    13
    First Language:
    English
    Primarily Uses:
    RMMV
    I've been editing my project pretty heavily and have gutted it a bit, so it's not actually playable up to the point of a battle anymore lol, but the bits I've got together outside of that don't have any issues (not that I'd really expect it to be relevant outside of battle tbh, but still).Once I actually get to the point where I can start a battle again I'll let you know how it goes lol. Very cool addition though, well done. :)
     
  7. kmack

    kmack Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm having issues with Yanfly compatibility.

    I keep receiving an error stating: "Cannot read property 'pose' of undefined". The log refers me to this line of code... but I'm not sure what I'm missing. Any help would be appreciated.

    TBSEntity_Sprite.prototype.getConfig = function () {
    var battler = this._battler;
    var object = battler.rpgObject().TagsLetbsSprite.pose;
    var config = [];
    for (var key in object) {
    if (object.hasOwnProperty(key)) {
    var element = object[key];
    config.push({
    pose: key,
    data: element
    });
    }
     
  8. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    619
    Likes Received:
    268
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    You're going to need post the actual console output.
     
  9. Sacrifyx

    Sacrifyx Veteran Veteran

    Messages:
    35
    Likes Received:
    3
    First Language:
    english
    Need some help here. This is the specific situation.
    I have 3 spaceships doing battle. The player ship and enemy ships all use a laser cannon. I need this weapon to only fire in a straight line in the direction the ship is facing.
    I have a graphic for the attack in the img\letbs\projectiles folder named lasercannon. I used the setup for "dagger throw" from the demo.

    When I fire this attack, I get an error: TypeError: Cannot read property 'slice' of undefined
    I'm attaching the console output to this post. I'm pretty positive there's some database work to be done but I'm not sure exactly what.
    [​IMG]
     
    Last edited: Sep 30, 2019
  10. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    619
    Likes Received:
    268
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    Can you post:

    1. The skill notebox
    2. The sequence for the skill
    3. the projectile config
     
  11. Sacrifyx

    Sacrifyx Veteran Veteran

    Messages:
    35
    Likes Received:
    3
    First Language:
    english
    Actually I restarted and went a different route, just modifying the demo and I have it in a working state right now. My only remaining question now is if this there's a way to make the attack only possible in the direction the character is facing.
     
  12. Doktor_Q

    Doktor_Q I'm not a real doktor, but I am a real Q Veteran

    Messages:
    581
    Likes Received:
    321
    Location:
    Denial
    First Language:
    English
    Primarily Uses:
    RMMV
    It's the reverse, usually- the character will face in the direction they attack. The engine is built with that in mind, so you'd have to do your fair share of modding to make it check their current facing direction before the attack.
     
  13. Ygdrassill

    Ygdrassill Game dev Veteran

    Messages:
    101
    Likes Received:
    11
    First Language:
    English
    Hi! So im trying to figure out how to setup with the AoE Creator., but I cant figure out how to get 2 types of skills to work.

    1 is like a sweeping strike, it targets 3 tiles of the first row infront of the user, and then hits all 3, like a sword sweep.
    "[cx+1,cy-1],[cx+1,cy],[cx+1,cy+1]". But when I use this, it will hit all 3, but it still only lets the cursor choose one
    and I cant change the direction the character is facing so the attack only hits the first row on the right side :/

    2 is a dash, where u dash THRU the enemy but you hit the enemy in the dash. So like u dash 2tiles it hits the enemy and then 2 more tiles past the
    enemy ending up on the other side of him, I just cant figure this one out at all :/

    If anyone has any help it would be greatly appreciated ^^
     
  14. Doktor_Q

    Doktor_Q I'm not a real doktor, but I am a real Q Veteran

    Messages:
    581
    Likes Received:
    321
    Location:
    Denial
    First Language:
    English
    Primarily Uses:
    RMMV
    @Ygdrassill for the first, it sounds like you specified a scope (target range) instead of an AoE (effect around the target)

    For the second, try making a skill with a linear scope that requires you to target an empty cell, and ignores line of sight. Next, give it a "path" AoE, so it hits each cell in a path between the caster and the target.
    Lastly, use a sequence that moves the user to the destination and deals damage- there should be a lightning jump skill in the demo you can grab the basic design from.
     
  15. Ygdrassill

    Ygdrassill Game dev Veteran

    Messages:
    101
    Likes Received:
    11
    First Language:
    English

    Ok so for the first skill I made a scope
    "sweep": {
    data: "[cx+1,cy-1],[cx+1,cy],[cx+1,cy+1]"
    },
    and in the notetags for the skill I have

    <letbs>

    scope: custom(sweep)

    aoe: circle(1)

    </letbs>

    but it still doesnt seem to work right.


    For the 2nd one Idk enough to really go off the other ones, this is what I tried

    "light_dash": [

    but it just crashes and gives me this error

    TypeError: Cannot read property 'match' of undefined
    at TBSSequenceManager.readAnimation (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:8173:13)
    at TBSSequenceManager.commandEffects (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:7212:24)
    at TBSSequenceManager.runCommand (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:7039:26)
    at TBSSequenceManager.update (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:6986:14)
    at file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:3053:33
    at Array.forEach (native)
    at Function.BattleManagerTBS.updateSequences (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:3052:24)
    at Function.BattleManagerTBS.updateBattleProcessing (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:2882:10)
    at Function.BattleManagerTBS.updatePhase (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:2207:18)
    at Function.BattleManagerTBS.update (file:///C:/Users/green_000/Documents/LeTBS_0772B/js/plugins/LeTBS.js:2082:10)rpg_managers.js:1949 SceneManager.catchExceptionrpg_managers.js:1910 SceneManager.update
    "set_frame: user, atk, 0",
    "wait:15",
    "play_pose: user, atk",
    "directional_anim: user, user, 126, 127, 128, 129",
    "look_at: user, cursor_cell",
    "set_speed: user, +6",
    "effects: {aoe}_battlers, current_obj",
    "move_straight: user, 4",
    "set_speed: user, reset",
    "wait: 15",
    "play_pose: user, idle",
    ],
     
  16. Ygdrassill

    Ygdrassill Game dev Veteran

    Messages:
    101
    Likes Received:
    11
    First Language:
    English
    "light_dash": [
    "set_frame: user, atk, 0",
    "wait:15",
    "play_pose: user, atk",
    "directional_anim: user, user, 126, 127, 128, 129",
    "look_at: user, cursor_cell",
    "set_speed: user, +6",
    "effects: {aoe}_battlers, current_obj",
    "move_straight: user, 4",
    "set_speed: user, reset",
    "wait: 15",
    "play_pose: user, idle",
    ],
    is what i tried for 2nd skill setup
     
  17. Doktor_Q

    Doktor_Q I'm not a real doktor, but I am a real Q Veteran

    Messages:
    581
    Likes Received:
    321
    Location:
    Denial
    First Language:
    English
    Primarily Uses:
    RMMV
    @Ygdrassill That is because you have your AoE and Scope backwards on the first skill. Scope determines the cells you can select, AoE determines the shape that radiates out from the selected cell.

    For the second skill, "move_straight" has collision and won't let the user pass through, instead you should use "move_to_cell" and have the user move to the selected cell. Once again, refer to the lightning jump skill for something with a similar structure.
     
  18. Sacrifyx

    Sacrifyx Veteran Veteran

    Messages:
    35
    Likes Received:
    3
    First Language:
    english
    All right, I'm back. Using the demo as a base, I remade the maps, added a character and two enemies, a troop for the battle...all was working fine, then I started getting TypeError: Cannot read property 'width' of undefined. So I redid it again, this time I didn't mess with the maps, I didn't overwrite anything in the DB, just created my main character and class (no bells and whistles, can't even attack), and my 2 enemies. On the Stop the Bandits map, I edited the Random Spawn event to spawn my created enemies, and did not make any changes to the other event on that map. The error comes up at the end of turn 2 just before the new batch of enemies is meant to spawn. My actor and the enemies are both set to use battlers, but that's the only difference between the stock bandits and mine at this time. Also, I only have the plugins that were included in the demo and none have been modified. I'm including the console output here in the hope one of you wizards might be able to spot the problem. Let me know what else you might need. Capture.PNG
     
  19. Ygdrassill

    Ygdrassill Game dev Veteran

    Messages:
    101
    Likes Received:
    11
    First Language:
    English
    ok so for the first one I switched the aoe and scope around but it just gives me this
    https://gyazo.com/1351235735a0876bb1b59a9c5410cb39.
    Instead of just hitting the first 3 squared behind him or ahead of him it just does the circle scope.
    I want to make it to where if he is facing forward only the first 3 squares in the row are lit up, and not showing the other squares behind him or on the sides, and just attack those 3, or if he faces up then its only the first 3 squares up highlighted or down etc.

    The 2nd , I dont understand the coding enough to go off of the thunder jump because it doesnt really do what I want the 2nd one to do, I dont understand the order of like where to put what, do i put speed in the middle set animation at the top, I just dont understand
     
    Last edited: Oct 6, 2019
  20. Danielcross

    Danielcross Veteran Veteran

    Messages:
    71
    Likes Received:
    7
    First Language:
    English
    Primarily Uses:
    RMMV

Share This Page