You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
singleplayer
engine/interface/PlayerHotkeys.lua
if self == game:getPlayer(true) then
mod/class/Game.lua
function _M:getPlayer(main)
if main then
return self.party:findMember{main=true}
else
return self.player
end
end
if game.party.members[self].main then
-----
getPlayer(false) is for when you don't have a reference to game.player (currently-controlled actor)
game.party.members[self].main is to check whether it's a player
getPlayer(true) is for finding player 1
self == game:getPlayer(true) is for checking whether you're player 1
-----
The text was updated successfully, but these errors were encountered:
khonkhortisan
changed the title
PlayerHotkeys
PlayerHotkeys: self == game:getPlayer(true)
Oct 4, 2018
sometimes get current player (main=tue, first=false)
sometimes get player1 (main=true, first=true)
sometimes get current actor (main=false)
khonkhortisan
changed the title
PlayerHotkeys: self == game:getPlayer(true)
autosort PlayerHotkeys on character creation: self == game:getPlayer(true)
Nov 18, 2018
The text was updated successfully, but these errors were encountered: