User Tools

Site Tools



mmoalt_followcommander

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
mmoalt_followcommander [2017/12/11 15:12] mmoaltmmoalt_followcommander [2019/11/21 22:50] – [Public API] mmoalt
Line 136: Line 136:
 You still need a proper mesh for following.\\ You still need a proper mesh for following.\\
 Having a proper mesh is your responsibility. Having a proper mesh is your responsibility.
-If you don't want the bot to follow the commander in certain areas, you need to remove that area from the mesh!+\\ 
 +If you don't want the bot to follow the commander in certain areas, you need to remove that area from mesh yourself!
 </WRAP> </WRAP>
 <WRAP clear></WRAP> <WRAP clear></WRAP>
Line 155: Line 156:
  
 ===== Public API ===== ===== Public API =====
-FollowCommanderAPI = {\\ +''FollowCommanderAPI = {}'' 
- hasTarget = [true\false] True if currently following, false otherwise.\\ + 
- targetID = [nil\number] Character id of the player you are following.\\ +''FollowCommanderAPI.hasTarget = [boolean]'' \\ 
- settings = {} Current FollowCommander settings\\ +True if currently following, false otherwise.\\ 
-}+ 
 +''FollowCommanderAPI.targetID = [nil\number]'' \\ 
 +Character id of the player you are following.\\ 
 + 
 +''FollowCommanderAPI.settings = [table]'' \\ 
 +Current FollowCommander settings\\ 
 + 
 +''FollowCommanderAPI.dropDownSettings = [table]'' \\ 
 +Values from the drop down list in the gui.\\ 
 + 
 +''FollowCommanderAPI:Reload()''\\ 
 +Reload all settings, set new random seed values and restart the botmode.\\ 
 + 
 +''FollowCommanderAPI:ChangeSetting(key, value)''\\ 
 +Change a FollowCommander setting. Valid keys are in FollowCommanderAPI.settings. Value has to be the same type as the old value.\\ 
 +**Settings that have their own function can not be changed with this one.**\\ 
 + 
 +''FollowCommanderAPI:BlacklistCurrentCommander()''\\ 
 +Should be self explainatory.\\ 
 + 
 +''FollowCommanderAPI:SetFollowType(type)''\\ 
 +Valid types are in FollowCommanderAPI.dropDownSettings.FollowType.\\ 
 + 
 +''FollowCommanderAPI:SetFollowMode(mode)''\\ 
 +Valid modes are in FollowCommanderAPI.dropDownSettings.FollowMode.\\ 
 + 
 +''FollowCommanderAPI:SetPartyMember(member)''\\ 
 +Follow a new person when the FollowType is set to "PartyMember". Can be id or name. \\ 
 + 
 +''FollowCommanderAPI:SetCombatAggressiveness(aggressiveness)''\\ 
 +Valid types are in FollowCommanderAPI.dropDownSettings.CombatAggressiveness.\\ 
 + 
 +''FollowCommanderAPI:SetWayPointUsage(usage)''\\ 
 +Valid types are in FollowCommanderAPI.dropDownSettings.WayPointUsage.\\ 
 + 
 +''FollowCommanderAPI:SetNoCommanderMode(mode)''\\ 
 +Valid types are in FollowCommanderAPI.dropDownSettings.NoCommanderMode.\\ 
 + 
 +**All functions that affect settings will call FollowCommanderAPI:Reload() automatically.** 
mmoalt_followcommander.txt · Last modified: 2020/07/02 22:58 by mmoalt