Hello, I've got a problem.
What I want to do is transfer the players stats within the array to the temp array and that way control multiple npc/player/enemies stats depending on situation, it's a turn based game, worked in c-script but can't figure it out how to do it in lite-c
var player1_stats[6]; //has hp,mp,str,mgc,def,agi
var temp_defender_stats[6];
and then I have a pointer ofc for the players action called
I also have a temp POINTER
Now I want to use something like this to transfer the stats to the temp array, do damage, increase stats, and then I have anotehr function which transfers the stats back to the correct player depending on who temp_defender is on that moment.
if (temp_defender == player1) {vec_set(temp_defender_stats, player1_stats);}
but it doesn't work when I use vec_set to do it. I decrease/increase the the for example HP of temp_defender, even if player1_stats is assigned to temp_defender_stats it doesn't work, but it works if I increase or decrase the stat of the player1 directly,
i've tried using this instead of vet_set but it didn't work either =/
function array_switch(var* array1, var* array2)
{
array1[0] = array2[0];
array1[1] = array2[1];
array1[2] = array2[2];
array1[3] = array2[3];
array1[4] = array2[4];
array1[5] = array2[5];
array1[6] = array2[6];
array1[7] = array2[7];
array1[8] = array2[8];
array1[9] = array2[9];
}