hi,
i tryd a lot of things with scripting… but now i’m stuck with this little problem.
i’m creating a Defense tower game.
and an easy way i can think of for creating the waves is like this:
Waves[20waves]
->1stwave -NumberEnemys:int
-EnemyTypes:int[]
-CashPerEnemy:int
->2ndwave -NumberEnemys:int
-EnemyTypes:int[]
-CashPerEnemy:int
-> etc etc....
i gues this is called a struct… but i don’t know how to set this up…
and if i create this, how can i acces for instance the EnemyTypes? (like: Waves[1].EnemyTypes? )
the last point is: i want this to be editable in the editor, so i can edit al the var’s… is this all possible?
greetz,
Henk Kappert
edit: my brother said it was an multi-dimensional array… :?:
another thing that went trough my mind was: maybe i can put all this information in an XML or something like that… and acces it externaly