Lecode Tactical Battle System 0.77.2B

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

  1. Aezriel

    Aezriel Shadow Slayer Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you, sorry I didn't read all the recent comments, I'll do that next time to ensure my question hasn't been answered.
     
  2. Aezriel

    Aezriel Shadow Slayer Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I ran into another problem, I don't know what's going on but whenever a class (Warrior, Pyromancer, Cryomancer, etc.) has the skill category Magic, they always have the skills Fire and Ice even if the class doesn't have those skills.
     
  3. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    Can you post a pic
    Is it iin the magoc menu or main choices

    Do you use yanfly class change core?
    Any classes a character has unlocked, theyll have access to those skills
     
  4. Aezriel

    Aezriel Shadow Slayer Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Yeah, that's it then, I use yanfly class change core. Is there any way to stop them from having the skills?

    Edit: It shows up under the magic tab in battle.
     
  5. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    I thonk what i did was separate out the types

    Special
    Magic
    Cryomancy
    Pyromancy
    Thaumatergy
    Etc
    And each class has access to only their specific types
    Otherwise if its all under magic, theres no way around it
     
  6. MiLo-Katergaris

    MiLo-Katergaris Villager Member

    Messages:
    17
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    So I've got a question I hope you all can help me out with. I'm using Yanflys Class Change Core to allow my characters to change classes. I changed the stats, face, and character when the class changes but the battler doesn't change because the battler is in LeTBS' Battlers and not the usual Battler location. Does anyone have any insight on how to remedy this?

    My only guess would be LeTBS_RTPUse which apparently allows the <use character> tag. I'm not sure if that would work (or what the RTPUse addon even is).
     
  7. Aezriel

    Aezriel Shadow Slayer Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Don't know why I didn't think of that, thank you
    Edit: So I don't want to double post but how do I add icons to skill types, I can't find a note tag for them
     
    Last edited: Aug 29, 2019
  8. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    You should be able to set that up in the letbs_commands list notetag
     
  9. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    I use the use_character with class change core
    It works fine
     
  10. Aezriel

    Aezriel Shadow Slayer Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Yup, found it. Thanks again, sorry for asking so many questions
     
  11. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,945
    Likes Received:
    10,652
    First Language:
    English
    Primarily Uses:
    RMVXA

    Pharonix, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    If you want to quote more than one person you have to use the Multiquote button, otherwise the forum software automatically creates a new post for each quote.
     
  12. BluePersonMan

    BluePersonMan Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm somewhat experienced with rpg maker mv but i have a question how do you expand how much slots you have in the plugin manager
     
  13. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    Which slots
     
  14. BrightIdeaProduction

    BrightIdeaProduction Veteran Veteran

    Messages:
    39
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV

    Tried this in multiple variations, no bueno. If placed in skill notetag i get 'request wait' error

    upload_2019-8-30_3-18-56.png

    upload_2019-8-30_3-19-20.png


    I then tried to add this to a custom "sequence" in the .js file for the $Gamemap.QTE.

    I then got 'undefined sequence error'

    :95:

    Maybe I'm missing something....:awink:

    upload_2019-8-30_2-14-44.png


    upload_2019-8-30_3-7-10.png



    If anyone has any ideas/ advice. I'd appreciate it. Thanks in advance.
     
    Last edited: Aug 30, 2019
  15. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    I managed to Get QTE working.

    Problem was "script: $gameMap.QTE(['normal'],100,['ok'],true);",
    I had to change the quotes around normal and ok to single quotes, because it broke the Javascript.

    Also (at least in 0.77.2, the commandScript function, actually only used the first "parameter" which means scripts that use multiple parameter break.
    I fixed this by using some code to check if the number of params is >2

    TBSSequenceManager.prototype.commandScript = function (param) {
    if(param.length>2)
    code = param.toString();
    else
    var code = param[0];
    var user = this.getUser();
    eval(code);

    return {};
    };

    Finally, here's my QTE event:
    VIDEO:
    https://www.dropbox.com/s/phbf2vw72nz8zyq/Two Worlds 2019-08-30 11-41-31.mp4?dl=0

    Code:
    Using the LeTBS_config.js file
    "qte_1": [
    "play_pose: user, atk",
    "wait: 10",
    "script: $gameMap.QTE(['normal'],100,['ok'],true);",
    "wait: 100",
    "if: SceneManager._scene._QTEWindow.getResult()=='success'",
    "effects: {aoe}_battlers, current_obj, obj_anim",
    "wait: 60",
    "effects: {aoe}_battlers, current_obj, obj_anim",
    "wait: 60",
    "else",
    "effects: {aoe}_battlers, current_obj, obj_anim",
    "wait: 60",
    "endif"
    ],

    EDIT: the only issue i have right now is the Battle log lol
    Which I don't use anyway, so I just disabled the display of the QTE Script
     

    Attached Files:

    Last edited: Aug 31, 2019
    Adventurer_inc. likes this.
  16. Adventurer_inc.

    Adventurer_inc. Technically a Programmer Veteran

    Messages:
    99
    Likes Received:
    40
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @BrightIdeaProduction I'm going have to apologize. Honestly, I haven't really tested notetags sequences myself since I'm still using the config file. I just thought it would easier to use notetags instead of explaining config since lecode was planning on dropping it. After looking up how lecode parsed notetags, this is actually how it's supposed to be written:
    Code:
    <letbs_Sequence>
    play_pose: user, atk
    wait: 10
    if: $gameMap.QTE(["normal"],100,["ok"],true)
    effects: {aoe}_battlers, current_obj, obj_anim
    wait: 60
    effects: {aoe}_battlers, current_obj, obj_anim
    wait: 60
    else
    effects: {aoe}_battlers, current_obj, obj_anim
    wait: 60
    endif
    </letbs_Sequence>
    
    However, since I don't have the qte script I really can't test it. I did test multiple hits sequence to make sure something actually works. If the bottom doesn't work then we really have trouble.
    Code:
    <letbs_Sequence>
    play_pose: user, atk
    wait: 10
    effects: {aoe}_battlers, current_obj, obj_anim
    wait: 60
    effects: {aoe}_battlers, current_obj, obj_anim
    wait: 60
    effects: {aoe}_battlers, current_obj, obj_anim
    wait: 60
    </letbs_Sequence>
    
    (These snips are really just a copy and paste of the normal attack and should work)
    :rock-right:

    Edit:
    @Pharonix Awesome! I'm so glad it works. I was afraid that the sequence wouldn't wait for the qte but video showed otherwised. :kaojoy:

    Edit 2:
    Good catch! I'm assuming this is one of the reasons why lecode switched to notetags. Notetags used line parsing so you can do stuff like quote in quotes.
     
    Last edited: Aug 31, 2019
  17. BrightIdeaProduction

    BrightIdeaProduction Veteran Veteran

    Messages:
    39
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV

    Where does the TBS Sequence manager snippet code go, because without it I get a snipping error
     
  18. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    It just replaces that same function.

    Replace
    TBSSequenceManager.prototype.commandScript in LeTBS.js
    with the code I posted
     
    BrightIdeaProduction likes this.
  19. BrightIdeaProduction

    BrightIdeaProduction Veteran Veteran

    Messages:
    39
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Got it working.

    [​IMG]


    Hate to ask, one more question. When I deselect certain skills in the commands, i get a blank menu.

    upload_2019-8-30_15-42-19.png




    This happens when I try to use my extra skill "Guard" if i cancel upon target selection, i get this weird sort off phantom menu.
     
  20. Pharonix

    Pharonix Shadow Walker Veteran

    Messages:
    632
    Likes Received:
    274
    Location:
    Alpha Centauri Cluster
    First Language:
    English
    Primarily Uses:
    RMMV
    It does that sometimes
    Ill be in special and cancel a skill and drop into magic choices
    Its a strange glitch but idk how to fix it right now
     

Share This Page