Hello! I am making a small little project that involves magic and spell casting, and im unsure where to start. Im trying to have chat spells where if you say a spell and click you can cast the spell (like in Harry Potter games)
The main questions i have is that how will i make spells not case sensitive? I know there are specific functions in the string library but i am unsure of which ones to use.
I also dont really know how i’d identify if whatever the player chats is a spell or not. I was thinking i could loop through a table of spell names and do something like
if msg == spellName then
I am unsure if this is practical or not. Help and advice on where to start would greatly be appreciated. Thank you for your time