Difficulty with a script

● ARCHIVED · READ-ONLY
Started by Diretooth 14 posts View original ↗
  1. Unfortunately your screenshot is missing information - it does not tell us which notebox you've used and how your classes are set up.


    Quite on the contrary, your setup suggests that you didn't understand what that script does - or do you really intend for an actor to be having to reach level 15 in three different classes before the fourth class can be used? The player would have to level 45 times before that class becomes available, and unless your game is extremely long or gives out a lot of experience it'll take a lot of playing time to get to the point where the class is unlocked...
  2. I've moved this thread to RGSSx Script Support (you are not requesting a new script). Please be sure to post your threads in the correct forum next time. Thank you.
  3. As I am still making the game, and still learning how to use the class scripts to their full potential, I put that notetag in to test an idea, of which doesn't work under other parameters, such as different levels. I read the instructions on the web page provided, and the script itself, but have not been able to get it to work. Here is a screenshot showing where I put the notetags, in the 'Classes' section, and written as showin both in the script and the web page previously provided.

    (A note for those who are curious, yes, the screen shot indicates that I'm just starting that project, and yes, that is the working title.)

    1.png
  4. Diretooth said:
    As I am still making the game, and still learning how to use the class scripts to their full potential, I put that notetag in to test an idea, of which doesn't work under other parameters, such as different levels.
    Please state what is your idea - when do you want that class to be available?
    Please write it in full sentences, because as I said before I assume that you misunderstood the content of the notetag, which means that the notetag is wrong. But to decide on that, we need to know what you want the script to do.


    Formally and syntactically, that notetag is correct - the bug has to be somewhere else, either in a misunderstanding of what the script does or in the script section itself.
  5. Did you put the script in the right place? Under Materials and above Main?
  6. Okay, full sentences. I will start from the beginning.

    I acquired the script and inserted it into the required area, above the ( Insert here) area, underneath Materials and above Main. As instructed. I have it directly under materials, under the requisite script, the eponymous Class System script. It was, of course, Yanfly's handiwork, as is the script that I am having difficulty with.

    In order from Materials to Main, these are the scripts that I am using, all of them by Yanfly.

    Class System

    Class Unlock Level (I.E. The problem script.)

    Class Specifics

    System Options

    Adjust Limits

    Victory Aftermath

    Ace Battle Engine

    Steal Items

    Classical ATB

    Enemy HP Bars

    and the Core Engine.

    Main, of course, is directly below that.

    Now, when I had stated 'Test an idea', I meant, I was experimenting with that particular note tag, attempting to get it to properly work.

    I had typed the notetag, in the proper spot, with the correct syntax shown both in the script and the webpage shared in the prior posts. The webpage shows exactly how it should look and both it and the script were exceedingly clear that the purpose of the script is to prevent the player from being able to use that specific class until a certain level is reached. (And yes, I am well aware of the parameters for that unlocking. As stated before, I was testing the script out to see if I could get it to work. I have an event that gives the player character enough levels to trigger the unlock.)

    However, whenever I playtest, whenever I give said character all the classes to choose from, that singular class does not lock. The script does nothing, and no matter how I write the note tag, I am unable to lock and unlock it at will.

    Again, I stress that this is early project stuff, I am getting the parameters of the items and classes and stuff figured out while I work on the world map, the semantics of when the classes will be unlocked and whatnot will come later as I work out the game. This means that, currently, when I want that class to be available is not even remotely on my mind as of now, I just want the script to work, to allow me to lock that red mage class so that later, when I am at that level of completion with the game, I can decide what levels would be proper for it to unlock, based on how long I make the game.

    I apologize if I sound exceedingly rude, because to me I'm trying to get it to function properly, and you're worrying about trivial matters, such as when it will be unlocked and wondering about an idea that I had explained in my second post. To me, this seems like needless nitpicking. Again, I apologize if I sound rude.

    If it seems like I overexplained this, it's because I don't want to waste time answering questions that might come up because I was not specific enough, a trait in which, bafflingly enough, people get bent out of shape over both on the internet and IRL.
  7. why did you place the core last? Usually the base/core scripts should be above all others, directly under materials.
  8. also i think class unlock level should be below all other class script (below class specific). if i remember correctly.

    at least that what i set in my project.

    sometimes the script arrangement can mess the script.

    from what i see... your notetags already correct.

    it translate to: the red mage class will unlock when the other 3 mage class reach lv 15

    there might be other thing that causing the problem. (and try moving core to top most of the list).

    for why people ask for extra detail like above... because yanfly script is already tested by many people and it always works. and most people which don't make it work... mainly because they don't understand how to use it (and some case incompatibility with other script). that's why Andar and Shaz asking you question that seem unrelevant to you. hope you understand.. :D .

    you could also upload fresh project with your scripts list and notetags setting. so people can download and see what's wrong with your project. hope this help.
  9. Okay, I placed the core script at the top, and the unlock script below all relevant class scripts. So relative to the list prior, it is

    Core

    Class System

    Class Specifics

    Class Unlock Level

    However, it still does nothing. Also, I would love to share the project with you, however Dropbox is not letting me because, apparently, all of the files are unable to be uploaded, with no explanation given. (Which doesn't make sense, as I've been able to upload an entire project folder with little trouble.)
  10. Diretooth said:
    because, apparently, all of the files are unable to be uploaded,
    What do you mean by "all of the files"??
    You only need to upload a single file - the compressed game archive created by the command in the file menu.
  11. There is no mistake in the script or in the notetags, the problem is that you didn't understand how that script works.


    The script and notetag requires that the actor has Lv 15 in all three classes black, white and grey magic.


    However, those classes are locked at the beginning, so the player cannot switch to those classes to gain those levels - and the event that unlocks them also unlocked the red class, disabling all the leveling functions.


    I removed the unlock-7 line from that event, so that the actor could only select the first classes.


    I changed to Withe mage and leveled to 15 (by an event that give EXP that I also added), then I changed to Gray mage and leveled that to 15, and then I changed to black mage and leveled to 15 again - and the red mage became available as soon as the third class was leveled to 15 as well, exactly as it should be.
  12. Ah, that explains it! Thank you all for helping me, and putting up with me.