Thoughts on toggling a toolbar when on a warsteed?
From the Rohan prelim notes posted here:
http://www.lotrointerface.com/forums...ead.php?t=1862 I see: • Added GetMount to LocalPlayer. • Added Mount, BasicMount, and CombatMount. If I've been using this to toggle a UI quickslot bar on/off when in combat, self.player = Turbine.Gameplay.LocalPlayer.GetInstance(); AddCallback(self.player, "InCombatChanged", function(sender, args) self:SetVisible( self.player:IsInCombat() ); end); What would be the correct structure for changing this to work to toggle the quickslot on whilst using a CombatMount given the above information? On Bullroarer, replacing "InCombatChanged" with "MountChanged" works to trigger an event when I mount and dismount (either a normal mount or a warsteed), but can't work out what to use to get visiblility of the quickslot to change in place of (self.player:IsInCombat) Any suggestions? |
Finally got on the beta - similar thoughts to yourself and nearly working. Can't work out how to figure out if it is a combat mount or not.
|
Weird thing is, if I put a writeline after using MountChanged to show when it triggers, it fires 3 times when mounting, and twice when dismounting.
/emote confused. |
I have been testing this;
Code:
import "Turbine.Gameplay" Now, and this is a big problem, I can't figure out how to get a combat mount without progressing the epic story - and I want to leave that until I get the expansion, not ruin it for myself. Can anyone confirm that this throws an error if the mount is NOT a combat mount, but doesn't throw an error for a combat mount. Oh! And the multiple trigger thing is quite common - don't worry about it. It's to do with the way buffs are handled. |
Quote:
EDIT: I see you posted a similar solution while I was busy checking the mount methods. In your case, you can assign a variable to the existance of the GetTurnRate method on the mount, Geoff: isWarSteed=(Geoff.GetTurnRate==nil) Of course, it would be better if Turbine implemented a MountInfo object that the mount instance could provide which could then have the MountType enumeration and any other info that is mount related. Unfortunately this does not exist, at least not yet. |
Quote:
|
Quote:
|
Probably not at all an optimal way of doing things, but confirmed working method to show plugin "mountslots" only when on the Warsteed
Code:
self.player = Turbine.Gameplay.LocalPlayer.GetInstance() |
Excellent!
Like you say, I am sure there will be a Mount:IsCombatMount() function or soemthing similar, but if this works we have a workaround! EDIT: Tried this, seems "Nicer"; Code:
import "Turbine.Gameplay" |
I have noticed some very interesting things happening when you get out your mount when you are in a stance - it disappears! *All* buffs appear to disappear when you mount now, making a "IsMounted" function really important.
Off topic, but has any information been released for the Toolbar so we can run off and fix our skins? |
All times are GMT -5. The time now is 04:05 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI