Project 1999

Go Back   Project 1999 > General Community > Technical Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2018, 06:42 PM
Shodo Shodo is offline
Fire Giant

Shodo's Avatar

Join Date: Sep 2013
Posts: 540
Default make gina regex case-insensitive

So I have a basic root timer along the lines of:
Search:
"{s} feet adhered to the ground"
Timer name:
"{s} Fettered"

Using the simple {s} matching works great for restarting it only on same mob, notifying of timer running out etc. However, I run into issues when I try to get it to end early.
Specifically, I tried to add an end-early check with:
"You have slain {s}"

But this doesn't work since the root landed notification capitalizes the first letter of the mob's name, while the slain message does not. (ex: "Greater plaguebone versus greater plaguebone"). Is there an easy way to convert whatever string {s} picks up to be all lower case?
__________________
Djynni Biqasmalyani - 60 Human Wizard
Mandak Battlebeard - 60 Dwarf Paladin
Maeghar Frightreaver - 56 Erudite Cleric
Maamdak Battlebeard - 48 Dwarf Rogue
Crunkasaurus Rex - 49 Ogre Shaman
Mendak - 51 Halfling Druid (Green)

<Paradox> RIP
Reply With Quote
  #2  
Old 06-09-2018, 10:58 PM
paulgiamatti paulgiamatti is offline
Planar Protector


Join Date: Jan 2014
Location: minneapolis belongs to me
Posts: 2,045
Default

Pretty sure case sensitivity isn't your issue - all string matching with GINA should be ignoring case by default. Your likely culprit is a string mismatch: "{s} feet adhere to the ground" would return "Greater plaguebone's" as your string, so you want to change your search string to "{s}'s feet adhere to the ground".

Also, using the kill message as an end early string will only be useful in some situations, because let's say you're fighting two greater plaguebones - whichever you kill first will end your root timer regardless of whether it's the right one. I just let my root/snare/etc. timers run their course with no end early strings, and make separate triggers to give me a text/audio alert when the spell worn off message occurs. So in your case I'd make a separate alert trigger for "Your Fetter spell has worn off".
Last edited by paulgiamatti; 06-09-2018 at 11:16 PM..
Reply With Quote
  #3  
Old 06-09-2018, 11:24 PM
Shodo Shodo is offline
Fire Giant

Shodo's Avatar

Join Date: Sep 2013
Posts: 540
Default

Ah that was it, thanks - totally spaced on the 's and it's good to know that they are case insensitive by default.
__________________
Djynni Biqasmalyani - 60 Human Wizard
Mandak Battlebeard - 60 Dwarf Paladin
Maeghar Frightreaver - 56 Erudite Cleric
Maamdak Battlebeard - 48 Dwarf Rogue
Crunkasaurus Rex - 49 Ogre Shaman
Mendak - 51 Halfling Druid (Green)

<Paradox> RIP
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:42 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.