• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - INI file: using the Spell Gem # instead of the exact Spell Name

Joined
Mar 20, 2024
RedCents
1,051¢
Hi all,

As I level up my toons and I gain access to higher level nuke spells, I need to update the character's INI file constantly to keep up with the spells's latest names. I always set my spells in the same order: SpellGem #1 is always reserved for my latest nuke spell, SpellGem #2 for my latest pet spell, etc.

Is there a way so, in the character's [DPS] section of the INI file, I could simply write DPS1=SpellGem1|80 instead of DPS1=Nuke_Spell_Exact_Name|80? That way I wouldnt need to update the INI file every time I access a new set of spells.

Thanks!
 
SIc, I am not sure I understand your comment. Could you rephrase please?
what spell is in "${Gem[1]}" would only get evaluated when the macro starts. so if there is nothing in there, then nothing, if there is "cool spell of fire" then it is cool spell of fire - if you changed that gem and didn't restart the macro or do the /kasettings to update stuff, then it would still try and check for and try and use "cool spell of fire"
 
what spell is in "${Gem[1]}" would only get evaluated when the macro starts. so if there is nothing in there, then nothing, if there is "cool spell of fire" then it is cool spell of fire - if you changed that gem and didn't restart the macro or do the /kasettings to update stuff, then it would still try and check for and try and use "cool spell of fire"

WOW that is strange. So the code takes a "mental picture" upon start rather than simply triggering the specified SpellGem upon command? I didnt expect the code to work like that :(. That means that if I level up and memorize the upgraded version of the spell, I will need to reload the macro.

Good to know, I will keep it in mind. Thanks!
 
WOW that is strange. So the code takes a "mental picture" upon start rather than simply triggering the specified SpellGem upon command? I didnt expect the code to work like that :(. That means that if I level up and memorize the upgraded version of the spell, I will need to reload the macro.

Good to know, I will keep it in mind. Thanks!
KA loads from the ini, once its going thats a static settings. thats for all KA ini settings, why you have to reload the macro (or /kasettings) if you change it and expect the change to work.
 
WOW that is strange. So the code takes a "mental picture" upon start rather than simply triggering the specified SpellGem upon command? I didnt expect the code to work like that :(. That means that if I level up and memorize the upgraded version of the spell, I will need to reload the macro.

Good to know, I will keep it in mind. Thanks!
Basically the INI is only read once at start. It's an Initialization used to store previously used, or startup settings. It's then expected to run based on those settings for the life of the script. In order to re-read the init file, you'd need to restart the macro, or trigger a command specifically requesting the file is read again.

It's possible to program it in such a way as to make it so that the file is read repeatedly - which is essentially what happens in something like MQ2Hud. However, it's generally not efficient or productive to do things that way and it's preferred to use a more event oriented method.
Event oriented being something that reacts based on something else. Such as when a specific string of text comes into the EQ window, like you leveling up, then one could trigger an update of abilities, or if you try to cast a spell and you get the fizzle message then the global cooldown is no longer relevant and thus you can immediately try to recast instead of waiting for the GCD to expire. etc.

In the case of the INI, you would probably do it so that you save values when the user changes a setting, and you load values when the user starts it or requests the values are updated. Otherwise you'll likely just be wasting resources.
 
Question - INI file: using the Spell Gem # instead of the exact Spell Name

Users who are viewing this thread

Back
Top
Cart