Hi all,
I've been a longtime clickteam user, ever since the original click and play. I'm currently using MMF2 to develop a maze game with some AI programming - the idea being to make a game in 48 hours, so any quick help really appreciated!
I understand that the inability to change qualifiers / behaviours during runtime is a major gripe - apologies if I'm going over old ground here.
I just wanted to know what the most effective workaround for this problem is?
Some background on the game and my requirements:
I have NPCs running around the maze, and the player's able to ally, attack or ignore them, meaning they need three different states: friendly, neutral or enemy. Obviously the ideal is just to change the qualifier.
The workaround I'm currently playing with seems the most obvious: have three different versions of each NPC, and simply destroy the neutral one and replace it with a friendly / enemy version once the player has interacted with them.
The serious issue I have with this is that I have over 20 NPCs, which means over 60 different versions of what is ostensibly the same object with a different name and dialogues. What this means is that once I've completed the programming and start producing the content (ie the dialogues) I'll be tied to my programming: any small change I want to make to behaviours will have to be made 60 times.
One solution I considered was if I were able to create an object by calling its name from the expression editor then all the AI behaviour could be done using qualifiers. Essentially when a neutral NPC (say 'Tim') has to turn hostile he would be destroyed and create 'Tim Hostile' object. Sadly because Time Hostile has no direct relationship with Tim, this function has to be called in the Tim behaviour, rather than in the qualifier behaviour. If I could tell the qualififer to create '[Qualifier name] + "Hostile"' then I'd only need the one line of code in the event editor, rather than the same line copied to every single NPC with their relevent hostile version.
Of course, as far as I can see, I can't do that!
I'm really hoping there's a pro tip you guys can give me that might help me out.
Thanks in advance!
Tom