Il semble que les cookies ne soient pas activés dans votre navigateur. Veuillez activer les cookies pour garantir une expérience du site optimale.
Affichage des résultats 1 à 3 sur 3
  1. #1
    Date d'inscription
    mai 2008
    Messages
    212

    WardenAttribute - GetGambitCount() always returning 0

    For my WardenEase2 plugin, I use the API supplied Gambit data to fill the different gambit toolbars, which uses the SkillInfo of the TrainedGambits to determine what gambits you have and then populates the window with the needed builders to build that gambit. But since Helm's Deep when you try to get the number of builders a gambit needs to build it, you always get 0, and trying to access any of the builders in the gambit with GetGambit() throws an error.

    I've tried messing around with different trait setups to see if maybe it's a traiting problem and switching stances, but it doesn't seem to matter. If anyone else can figure a workaround (or figures out what I'm doing wrong, as it worked prior to HD) until a fix is released, please let me know, otherwise my WardenEase2 plugin pretty much can't work. Thanks!

  2. #2
    Date d'inscription
    juin 2011
    Messages
    311
    While I have no idea how exactly the API worked before, are you sure about the return value of GetGambitCount? Also does it return 0 or nil? Just brainstorming here.

  3. #3
    Date d'inscription
    mai 2008
    Messages
    212
    Citation Envoyé par Hyos Voir le message
    While I have no idea how exactly the API worked before, are you sure about the return value of GetGambitCount? Also does it return 0 or nil? Just brainstorming here.
    Yep I'm sure it use to return the number of gambit builders needed to build the gambit (conviction would return 5, the boot would return 2, etc). I've used it in my WardenEase2 plugin for a long while now, so it has worked until Helm's Deep (which changed a bunch of stuff regarding gambits, so it doesn't surprise me something broke, I just wasn't sure what it would be). Also, it returns 0, not nil. Oddly, when you call "GetGambit(index)" on the gambit, it tells you that the index should be between 0 and 1, which is wrong, since if the length of the gambit is 0, then between 0 and 1 won't work anyway, and since you need the index of the gambit, you should be using whole numbers anyway. It's a bit of a mess.

    Also, there's two functions with the name GetGambitCount(). If you are calling it from a warden player reference, it'll tell you how many builders the warden can use (depends on level, but at lower levels you only had 2 gambit slots available, then went to 3, then 4, then 5, so this function would return that). But if you get a gambit, then call this function, it tells you how many builders are needed to build the gambit. GetGambit() is also used twice, one at the warden player instance for what builder is in each of the 5 slots, and at the skill info level, for what gambit builder is needed in each slot to create the gambit.

 

 

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •  

La session de ce formulaire a expiré. Vous devez recharger la page.

Recharger