Author Topic: Note Editor  (Read 2337 times)

0 Members and 1 Guest are viewing this topic.
modern algebra Male
*
Rep: +336/-113
Online Online
Level 79 (49%)
Note Editor
« on: December 16, 2009, 11:46:12 PM »

  • Note Editor
    Version: 1.0
    Author: modern algebra
    Date: December 17, 2009

    Version History


    • <Version 1.0> 12.17.2009 - Original Release

    Description


    This script allows you to edit the note field of an item with script calls in-game. This is useful for editing features of other scripts that use the note field for adding features; this will allow you to add those features as part of the gameplay. The edits will only apply within the same game file, so the note field will be clean whenever the player starts a new game. It does not overwrite the regular note field - anything written in note field in the database will be permanent in every save file.

    Features

    • Allows you to add things to the note field
    • Useful when using scripts that use note fields, as you can add those features to things in-game
    • Can delete any of the added things from the note field - cannot alter the database note fields

    Instructions

    Paste this script into the editor below the default scripts but above Main

    To use this script, simply use these codes in a call script:

      add_note (type, id, note)
        type : refers to the database tab you want to change the notes of. It is an integer, and broke down like this:
           0 => Item
           1 => Weapon
           2 => Armor
           3 => Skill
           4 => Enemy
           5 => State
        id   : the specific ID of the particular item, weapon, armor, skill, enemy, or state you want to edit the note field of.
        note : this is the string that you want to add to the note field.
     delete_note (type, id, note)
        type : same as for add_note
        id   : same as for add_note
        note : this is the note you want to delete. It can be either the  string itself, or it can be an integer if (and onlt if) you know the order it was added in - if you put in the integer 2 here, it will delete the third string you added to the item's note.

    delete_note will only delete notes that have been added to the note field in-game - it will not delete notes you set in the database directly.

    Script


    Code: [Select]
    #==============================================================================
    #  Note Editor
    #  Version: 1.0
    #  Author: modern algebra (rmrk.net)
    #  Date: December 16, 2009
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Description:
    #
    #    This script allows you to edit the note field of an item with script calls
    #   in-game. This is useful for editing features of other scripts that use the
    #   note field for adding features; this will allow you to add those features
    #   as part of the gameplay. The edits will only apply within the same game
    #   file, so the note field will be clean whenever the player starts a new
    #   game. It does not overwrite the regular note field - anything written in
    #   note field in the database will be permanent in every save file.
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Instructions:
    #
    #    Paste this script into the editor below the default scripts but above Main
    #
    #    To use this script, simply use these codes in a call script:
    #
    #       add_note (type, id, note)
    #         type : refers to the database tab you want to change the notes of.
    #               It is an integer, and broke down like this:
    #                 0 => Item
    #                 1 => Weapon
    #                 2 => Armor
    #                 3 => Skill
    #                 4 => Enemy
    #                 5 => State
    #         id   : the specific ID of the particular item, weapon, armor, skill,
    #               enemy, or state you want to edit the note field of.
    #         note : this is the string that you want to add to the note field.
    #       delete_note (type, id, note)
    #         type : same as for add_note
    #         id   : same as for add_note
    #         note : this is the note you want to delete. It can be either the
    #               string itself, or it can be an integer if (and onlt if) you
    #               know the order it was added in - if you put in the integer 2
    #               here, it will delete the third string you added to the item's
    #               note.
    #
    #  delete_note will only delete notes that have been added to the note field
    # in-game - it will not delete notes you set in the database directly.
    #
    #    EXAMPLES:
    #      add_note (0, 1, "new \\ note")
    #        This would add "new \ note" to the note field of a potion (first item)
    #      add_note (4, 6, "Default wisp")
    #        This would add "Default wisp" to the note field of the sixth enemy in
    #         the database (coincidentally a willowisp by default)
    #      delete_note (2, 45, "\\CG[Evil, 5]")
    #        This would delete the note "\CG[Evil, 5]" from the note field of the
    #         45th weapon in the database if it had been added in-game through the
    #         add_note script. It would not delete it if you set it in the database
    #         itself.
    #==============================================================================

    module RPG
    #==============================================================================
    # ** RPG::BaseItem
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    aliased method - note
    #==============================================================================

    class BaseItem
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Return Note
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias malgb_acigd_ntedit_7jb3 note
      def note (*args)
        type = case self
        when RPG::Item then 0
        when RPG::Weapon then 1
        when RPG::Armor then 2
        when RPG::Skill then 3
        end
        # Return Original Method + edited additions
        return malgb_acigd_ntedit_7jb3 (*args) + $game_system.ma_added_notes(type, self.id)
      end
    end

    #==============================================================================
    # ** RPG::Enemy
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    aliased method - note
    #==============================================================================

    class Enemy
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Return Note
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias ma_asciigod_noteedit_enmy_5hv2 note
      def note (*args)
        # Return Original Method + edited additions
        return ma_asciigod_noteedit_enmy_5hv2 (*args) + $game_system.ma_added_notes(4, self.id)
      end
    end

    #==============================================================================
    # ** RPG::State
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    aliased method - note
    #==============================================================================

    class State
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Return Note
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias modalg_gdasci_nted_stte_4xs2 note
      def note (*args)
        # Return Original Method + edited additions
        return modalg_gdasci_nted_stte_4xs2 (*args) + $game_system.ma_added_notes(5, self.id)
      end
    end
    end

    #==============================================================================
    # ** Game System
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    new instance variable - ma_note_edits
    #    aliased method - initialize
    #    new method - ma_add_note, ma_delete_note
    #==============================================================================

    class Game_System
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Object Initialization
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias modabra_ascod_init_ntedtr_8nn2 initialize
      def initialize (*args)
        @ma_note_edits = [ {}, {}, {}, {}, {}, {} ]
        # Run Original Method
        modabra_ascod_init_ntedtr_8nn2 (*args)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Add Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to add
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def ma_add_note (type, id, note)
        @ma_note_edits[type][id] = [] if @ma_note_edits[type][id] == nil
        @ma_note_edits[type][id].push (note)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Delete Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to delete
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def ma_delete_note (type, id, note)
        @ma_note_edits[type][id] = [] if @ma_note_edits[type][id] == nil
        note.is_a? (String) ? @ma_note_edits[type][id].delete (note) : @ma_note_edits[type][id].delete_at (note)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Added Notes
      #``````````````````````````````````````````````````````````````````````````
      #  Returns the notes added to that item
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def ma_added_notes (type, id)
        return "" if @ma_note_edits[type][id] == nil
        note_string = ""
        @ma_note_edits[type][id].each { |note| note_string += "\n #{note}" }
        return note_string
      end
    end

    #==============================================================================
    # ** Game Interpreter
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    new method - add_note, delete_note
    #==============================================================================

    class Game_Interpreter
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Add Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to add
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def add_note (type, id, note)
        $game_system.ma_add_note (type, id, note)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Delete Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to delete
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def delete_note (type, id, note)
        $game_system.ma_delete_note (type, id, note)
      end
    end

    Credit


    • modern algebra

    Thanks

    • ASCIIGod, for the request

    Support


    Please post in this topic in RMRK for support. Do not PM me

    Known Compatibility Issues

    Spoiler for Composite Characters:
    If you change the note field of an item to add an extra graphic, it will not immediately show it on the character if it is currently equipped. To fix it, just add this script below both the Comp. Chars script and the Note Editor script in the Script Editor

    Code: [Select]
    class Game_Interpreter
      alias mrnal_compchars_nteditor_adnt_5fz2 add_note
      def add_note (type, *args)
        mrnal_compchars_nteditor_adnt_5fz2 (type, *args)
        $game_player.refresh if type < 3
      end
      alias moden_ccve_edtnot_dltnte_1gh5 delete_note
      def delete_note (type, *args)
        moden_ccve_edtnot_dltnte_1gh5 (type, *args)
        $game_player.refresh if type < 3
      end
    end

    Author's Notes


    I haven't really tested this script. But it should be fine.


    Creative Commons License
    This script by modern algebra is licensed under a Creative Commons Attribution-Non-Commercial-Share Alike 2.5 Canada License.
    « Last Edit: February 11, 2010, 04:33:27 PM by Modern Algebra »


    Mr_Wiggles Male
    ****
    Rep: +23/-21
    Offline Offline
    Level 54 (89%)
    Re: Note Editor
    « Reply #1 on: December 17, 2009, 01:24:29 AM »

  • is there a day that modern doesn't create a script???

    Quote from: modern algebra
    I haven't really tested this script. But it should be fine.

    Look at such confidence in your work...
    Outbreak: First Blood

    Progress: [=                    ]  9%
    Demo:     [==                  ] 13%
    stripe103 Male
    ***
    Rep: +3/-5
    Offline Offline
    Level 58 (68%)
    It's human to misdo
    Re: Note Editor
    « Reply #2 on: December 17, 2009, 02:33:53 AM »

  • This is really good.
    I wish there was this kind of script for XP
    modern algebra Male
    *
    Rep: +336/-113
    Online Online
    Level 79 (49%)
    Re: Note Editor
    « Reply #3 on: December 17, 2009, 08:03:30 AM »

  • There aren't any note fields in XP :P


    h3llh0und
    **
    Rep: +0/-0
    Offline Offline
    Level 52 (90%)
    Re: Note Editor
    « Reply #4 on: December 17, 2009, 12:36:39 PM »

  • Whoa!

    perfect as always, another script from you that i'm going to put on my game xD
    this is really good for item upgrading o/

    just have to learn how to make an "select item menu" and how to get the current equiped item now =p
    Jerred
    **
    Rep: +0/-0
    Offline Offline
    Level 60 (28%)
    Re: Note Editor
    « Reply #5 on: January 08, 2010, 08:56:08 PM »

  • When trying to run this script with "Item Drop Ranks" I get the error:

    Script 'Note Editor' line 81: NoMethodError occurred.
    Undefined method 'ma_added_notes' for nil:NilClass

    I am able to run with either Note Editor or Item Drop Ranks, but not both.

    For additional testing I have loaded only the two scripts above in a new game and get the same error.

    Love your work!
    modern algebra Male
    *
    Rep: +336/-113
    Online Online
    Level 79 (49%)
    Re: Note Editor
    « Reply #6 on: January 08, 2010, 09:10:13 PM »

  • Here, try replacing it with the following:

    Code: [Select]
    #==============================================================================
    #  Note Editor
    #  Version: 1.0
    #  Author: modern algebra (rmrk.net)
    #  Date: December 16, 2009
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Description:
    #
    #    This script allows you to edit the note field of an item with script calls
    #   in-game. This is useful for editing features of other scripts that use the
    #   note field for adding features; this will allow you to add those features
    #   as part of the gameplay. The edits will only apply within the same game
    #   file, so the note field will be clean whenever the player starts a new
    #   game. It does not overwrite the regular note field - anything written in
    #   note field in the database will be permanent in every save file.
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Instructions:
    #
    #    Paste this script into the editor below the default scripts but above Main
    #
    #    To use this script, simply use these codes in a call script:
    #
    #       add_note (type, id, note)
    #         type : refers to the database tab you want to change the notes of.
    #               It is an integer, and broke down like this:
    #                 0 => Item
    #                 1 => Weapon
    #                 2 => Armor
    #                 3 => Skill
    #                 4 => Enemy
    #                 5 => State
    #         id   : the specific ID of the particular item, weapon, armor, skill,
    #               enemy, or state you want to edit the note field of.
    #         note : this is the string that you want to add to the note field.
    #       delete_note (type, id, note)
    #         type : same as for add_note
    #         id   : same as for add_note
    #         note : this is the note you want to delete. It can be either the
    #               string itself, or it can be an integer if (and onlt if) you
    #               know the order it was added in - if you put in the integer 2
    #               here, it will delete the third string you added to the item's
    #               note.
    #
    #  delete_note will only delete notes that have been added to the note field
    # in-game - it will not delete notes you set in the database directly.
    #
    #    EXAMPLES:
    #      add_note (0, 1, "new \\ note")
    #        This would add "new \ note" to the note field of a potion (first item)
    #      add_note (4, 6, "Default wisp")
    #        This would add "Default wisp" to the note field of the sixth enemy in
    #         the database (coincidentally a willowisp by default)
    #      delete_note (2, 45, "\\CG[Evil, 5]")
    #        This would delete the note "\CG[Evil, 5]" from the note field of the
    #         45th weapon in the database if it had been added in-game through the
    #         add_note script. It would not delete it if you set it in the database
    #         itself.
    #==============================================================================

    module RPG
    #==============================================================================
    # ** RPG::BaseItem
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    aliased method - note
    #==============================================================================

    class BaseItem
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Return Note
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias malgb_acigd_ntedit_7jb3 note
      def note (*args)
        type = case self
        when RPG::Item then 0
        when RPG::Weapon then 1
        when RPG::Armor then 2
        when RPG::Skill then 3
        end
        plus_note = $game_system.nil? ? "" : $game_system.ma_added_notes(type, self.id)
        # Return Original Method + edited additions
        return malgb_acigd_ntedit_7jb3 (*args) + plus_note
      end
    end

    #==============================================================================
    # ** RPG::Enemy
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    aliased method - note
    #==============================================================================

    class Enemy
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Return Note
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias ma_asciigod_noteedit_enmy_5hv2 note
      def note (*args)
        # Return Original Method + edited additions
        plus_note = $game_system.nil? ? "" : $game_system.ma_added_notes(4, self.id)
        return ma_asciigod_noteedit_enmy_5hv2 (*args) + plus_note
      end
    end

    #==============================================================================
    # ** RPG::State
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    aliased method - note
    #==============================================================================

    class State
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Return Note
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias modalg_gdasci_nted_stte_4xs2 note
      def note (*args)
        # Return Original Method + edited additions
        plus_note = $game_system.nil? ? "" : $game_system.ma_added_notes(5, self.id)
        return modalg_gdasci_nted_stte_4xs2 (*args) + plus_note
      end
    end
    end

    #==============================================================================
    # ** Game System
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    new instance variable - ma_note_edits
    #    aliased method - initialize
    #    new method - ma_add_note, ma_delete_note
    #==============================================================================

    class Game_System
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Object Initialization
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias modabra_ascod_init_ntedtr_8nn2 initialize
      def initialize (*args)
        @ma_note_edits = [ {}, {}, {}, {}, {}, {} ]
        # Run Original Method
        modabra_ascod_init_ntedtr_8nn2 (*args)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Add Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to add
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def ma_add_note (type, id, note)
        @ma_note_edits[type][id] = [] if @ma_note_edits[type][id] == nil
        @ma_note_edits[type][id].push (note)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Delete Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to delete
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def ma_delete_note (type, id, note)
        @ma_note_edits[type][id] = [] if @ma_note_edits[type][id] == nil
        note.is_a? (String) ? @ma_note_edits[type][id].delete (note) : @ma_note_edits[type][id].delete_at (note)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Added Notes
      #``````````````````````````````````````````````````````````````````````````
      #  Returns the notes added to that item
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def ma_added_notes (type, id)
        return "" if @ma_note_edits[type][id] == nil
        note_string = ""
        @ma_note_edits[type][id].each { |note| note_string += "\n #{note}" }
        return note_string
      end
    end

    #==============================================================================
    # ** Game Interpreter
    #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    #  Summary of Changes:
    #    new method - add_note, delete_note
    #==============================================================================

    class Game_Interpreter
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Add Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to add
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def add_note (type, id, note)
        $game_system.ma_add_note (type, id, note)
      end
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Delete Note
      #    type : the type of item (Item, Weapon, Armor, Skill, State, Enemy)
      #    id   : the ID of the specific item in its type
      #    note : the note you want to delete
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def delete_note (type, id, note)
        $game_system.ma_delete_note (type, id, note)
      end
    end

    I should note that the two scripts probably won't work together very well though as is :( The IDR saves what the ranks of items are in an array as soon as the game loads up, which means changes to item ranks in the notes will only be reflected after the player shuts down the game and then returns to it.

    If you wish to use the Note Editor to affect drop ranks, I can write a fix for you; just say the word.


    Jerred
    **
    Rep: +0/-0
    Offline Offline
    Level 60 (28%)
    Re: Note Editor
    « Reply #7 on: January 08, 2010, 09:42:24 PM »

  • Thank you for the speedy reply and quick solution!

    I mostly just wanted to be able to run both scripts at the same time, hadn't even thought about using the note editor to change the drop rates. I would definitely use that ability if it didn't rely on reloading.

    Thanks again  ;D
    modern algebra Male
    *
    Rep: +336/-113
    Online Online
    Level 79 (49%)
    Re: Note Editor
    « Reply #8 on: January 08, 2010, 09:49:53 PM »

  • Well, the IDR already contains an option that you can set the rank of the item to be tied to a variable, so you are able to change the rank in game that way


    fatapi_shadramon Male
    **
    Rep: +0/-0
    Offline Offline
    Level 54 (87%)
    Re: Note Editor
    « Reply #9 on: January 28, 2010, 10:32:44 AM »

  • well thank you modern algebra... do you still knew me??? its me ASCIIgod at RRR... nice work
    ?????? Male
    **
    Rep: +0/-2
    Offline Offline
    Level 50 (82%)
    ?????????????
    Re: Note Editor
    « Reply #10 on: April 19, 2010, 09:15:26 AM »

  • ;D ;D ;D GREAT, COOL AND MASTERIOUS SCRIPT... ;D ;D ;D
    遠い銀河からのスーパー戦士。
    本は、セバスチャンです。
    これは強力で、手に負えない。
    彼の物理レベルのスキルは驚嘆です。[/b]
    h3llh0und
    **
    Rep: +0/-0
    Offline Offline
    Level 52 (90%)
    Re: Note Editor
    « Reply #11 on: April 24, 2010, 01:04:32 PM »

  • Oh well... I have a problem with this and your "enemy stat variance" script :/

    maybe it's the tankentai script? (i'm using kaduki's tankentai) but the enemy variance was working...


    the problem I get is that the enemys just ignore the new notes I put into then... they appear with the same stats from the database

    ps: the enemy variance DO work if I put the code direct in the DB, but it doesn't when I use this script to add tags

    ps2: I have tons of script but the only battle related is the tankentai ;/


    ====Edit

    yeah, I did a test right now on a new project and this script doesn't work or is incompatible with yanfly's synthesis ;/
    « Last Edit: April 24, 2010, 06:55:27 PM by h3llh0und »
    modern algebra Male
    *
    Rep: +336/-113
    Online Online
    Level 79 (49%)
    Re: Note Editor
    « Reply #12 on: April 24, 2010, 09:48:20 PM »

  • Well, I'm not on a computer where I can test them out, but you have to remember that to make a backslash in a "" string, you have to use \\. So, instead of just:

    Code: [Select]
    add_note (4, 1, "\variance_hp[20]")

    it has to be:

    Code: [Select]
    add_note (4, 1, "\\variance_hp[20]")

    That seems like the most likely thing to be going wrong, but I will test it out once I'm on a comp that I can.


    h3llh0und
    **
    Rep: +0/-0
    Offline Offline
    Level 52 (90%)
    Re: Note Editor
    « Reply #13 on: April 25, 2010, 08:21:56 AM »

  • Yeah that was the problem xD

    thanx for the help modern o/
    SeMcDun Male
    **
    Rep: +0/-0
    Offline Offline
    Level 55 (40%)
    Re: Note Editor
    « Reply #14 on: July 07, 2010, 04:08:58 AM »

  • Hello. I know it's been a while, but you mentioned that the note changes don't register until the player shuts down and reboots. I'm wondering if you'd be able to change this so the note updates whilst the player plays the game.

    I'm using the YERD Skill Slot script and I'd love to be able to change the notes of a skill to change a passive skill's bonus.

    This way I won't have to keep making new skills of the same skill but gradually getting better, I can just add a new note giving the extra boost :)

    I'd be grateful for any help with this. Thank you for reading. (Just say if anything's not clear enough and I'll try to elaborate ^_^ )

    SeeM.

    EDIT: I'm using the altered version of this script with the Drop Ranks compatibility in case you needed to know.
    « Last Edit: July 07, 2010, 04:11:05 AM by SeMcDun »
    modern algebra Male
    *
    Rep: +336/-113
    Online Online
    Level 79 (49%)
    Re: Note Editor
    « Reply #15 on: July 07, 2010, 08:05:58 AM »

  • Well, notes do register immediately upon editing them though. The problem arises in that most scripts that use note fields only interpret them once upon startup or when they're first accessed.
    There's nothing I could do to this script to fix that problem; I would need a link to the YERD script and edit that script.


    SeMcDun Male
    **
    Rep: +0/-0
    Offline Offline
    Level 55 (40%)
    Re: Note Editor
    « Reply #16 on: July 07, 2010, 03:43:02 PM »

  • Ah I get you.

    http://www.mediafire.com/?mhkmzzdwzcz

    There's a link to the script.

    :)
     

    hi

    RMRK.net Theme Super Ultra Mega Beta

    Follow RMRK on Twitter Ask RMRK Questions on Formspring Get RMRK Updates via Windows Live

    Page created in 0.398 seconds with 19 queries.