Lair Larrikin
Posts: 23
Joined: Saturday, 12th November 2011, 11:49
Arrow Autoinscription Function
I was playing a bow based character today and it came to me that these would be much more convenient if I set up my rc file to autoinscribe the various arrow types with Q@1, Q@2, etc., so I set about doing so. I had no problem with poisoned arrows, arrows of flame, arrows of frost, or arrows of dispersal. However, when I tried to have it autoinscribe vanilla arrows it would also add the same inscription to the rest of them since "arrow." can be found in the names of all the others. I messed with regular expressions for a long time but in the end the best I could do still caused poisoned arrows and vanilla arrows to get the same autoinscription.
I would like to write a function that checks if arrows are unbranded, and if so inscribes them with Q@1. Unfortunately I have zero experience with lua and only a small amount of coding experience overall. If someone could assist me in this endeavor I would be most grateful.
I would like to write a function that checks if arrows are unbranded, and if so inscribes them with Q@1. Unfortunately I have zero experience with lua and only a small amount of coding experience overall. If someone could assist me in this endeavor I would be most grateful.