ok, next question :-)

I trie to store 4 variables in one skill.

all variables contain 2 chars.

i tried with this code:

Code:
function display_Armor_data_Front()
{
var Front_Armor_Max;
var Front_Armor_Actual;
var Front_Internals_Max;
var Front_Internal_Actual;
var temp_var1;
var temp_var2;
var my_selected_target;

my_selected_target = selected_target;

while (my_selected_target == Selected_target)
{
str_for_num(str_temp2,your.skill11);
str_trunc(str_temp2,7);
Front_Armor_Max = str_to_num(str_temp2);
str_for_num(str_temp2,your.skill11);
str_trunc(str_temp2,5);
str_clip(str_temp2,2);
Front_Armor_Actual = str_to_num(str_temp2);
str_for_num(str_temp2,your.skill11);
str_trunc(str_temp2,3);
str_clip(str_temp2,4);
Front_Internals_Max = str_to_num(str_temp2);
str_for_num(str_temp2,your.skill11);
str_clip(str_temp2,7);
Front_Internal_Actual = str_to_num(str_temp2);
str_for_num(str_my_selected_target_armor_front1,Front_Armor_Actual);
str_for_num(str_my_selected_target_armor_front,Front_Armor_Max);
str_cat(str_my_selected_target_armor_front,"/");
str_cat(str_my_selected_target_armor_front,str_my_selected_target_armor_front1);

wait (1);
}
}



ok, i defined the skill 11 with 876543.21
what i wanna display with this code is 87/65

what i get is 876/654

is anything wrong with this code??
i dont find it.

Does anybody has an Idea for an maore elegant way to do this, or do i have to work with strings for this?

Greetings

Mike