One reason for making it a separate feature / separate script is because :
It is no longer a parameter script, it is an enemy AI script. 😉
I think if it is just for yourself and for practice, a separate script would not be needed. But if you want to share it with others, from what I've seen so far, most like it being a separate script just so they can pick and choose the scripts they want in the game.
Even if it's just for yourself, you should practice writing modular code.
People say "I'll do it when the time comes" but when the time comes they just do whatever they're comfortable with.
I agree with what Tsukihime said. It'll also make editing your script later MUCH easier if things are modular
The difference is, I won't be using these scripts in the game I'm making. I also don't know how to do it yet, lol.
Lol, I am so lost!
module BLOOD module VARIABLE # AI_Variable will be going by the variable you want. It's default is 100 # if you are wanting to use Difficulty Settings with this make sure they are # the same! AI_Variable = 100 end #end variable module DIFFICULTY Easy = 0 Normal = 1 Hard = 2 Insane = 3 end #end difficulty module ENEMY Enemy_AI = /<?😀IFFICULTY|difficulty:[ ], >/i
I'm trying to figure out how to use notetags, now Enemy_AI = /<?😀IFFICULTY|difficulty:[ ], >/i that line is obviously it, but I'm lost on how to keep it like this:
<easy: 1, Always, 5>
so:
<difficulty: skill#, condition, rating>