if fn friend $moved:
set msg join join $moved #codename " is friend";
echo #msg;
elseif fn enemy $moved:
set msg join join $moved #codename " is enemy ";
echo #msg;
else:
set msg join join join $moved #codename " is not friend or foe " $moved;
echo #msg;
endif;
I need advice on programming. I have a piece that is .rf, it appears to me the function friend / enemy is not working. That function friend is using isupper or islower. I am guessing that the Period in .rf prevents the function friend to determine if it islower.
Any suggestions how I can add .rf to the function friend?
if fn friend $moved:
set msg join join $moved #codename " is friend";
echo #msg;
elseif fn enemy $moved:
set msg join join $moved #codename " is enemy ";
echo #msg;
else:
set msg join join join $moved #codename " is not friend or foe " $moved;
echo #msg;
endif;
I need advice on programming. I have a piece that is .rf, it appears to me the function friend / enemy is not working. That function friend is using isupper or islower. I am guessing that the Period in .rf prevents the function friend to determine if it islower.
Any suggestions how I can add .rf to the function friend?