Dang! Hi ppl.
I want to script a dynmic ai behaviour. I have a number of goals which change their 'weights', thus changing their importance to the ai.
I wanted to bubblesort all goal weights in an array, like:
goals = [heal,ammo,patrol,attack,defend,supply]
goals are:
heal = 8
ammo = 6
patrol = 4
supply = 2
attack = 0
defend = 0
Problem: when i write the array, there are only the numbers in it.
Is there a way to keep the var-names in the array ? Otherwise i'd just have to do it in another way.