Basically I am setting a bot to follow a party member if the name matches one set in profile. Looks like this atm.
Code: Select all
if ( settings.profile.options.PARTY_FOLLOW_NAME ) then
if GetPartyMemberName(1) == settings.profile.options.PARTY_FOLLOW_NAME then RoMScript("FollowUnit('party1');"); end
if GetPartyMemberName(2) == settings.profile.options.PARTY_FOLLOW_NAME then RoMScript("FollowUnit('party2');"); end
if GetPartyMemberName(3) == settings.profile.options.PARTY_FOLLOW_NAME then RoMScript("FollowUnit('party3');"); end
if GetPartyMemberName(4) == settings.profile.options.PARTY_FOLLOW_NAME then RoMScript("FollowUnit('party4');"); end
if GetPartyMemberName(5) == settings.profile.options.PARTY_FOLLOW_NAME then RoMScript("FollowUnit('party5');"); end
else RoMScript("FollowUnit('party1');");
end
I tried to just add in
Code: Select all
if ( settings.profile.options.PARTY_FOLLOW_NAME ) then
RoMScript("FollowUnit('party1');");
I guess I need to add a check if it is following after the member names and then if not make it follow party 1.
I am a bit tired so seeing if anyone else has an easy solution that I just can't think of lol