Aller au contenu

Photo

Why setting "showintactics" field to 0 in ABI_base doesn't hide the ability in tactics ?


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
anakin5

anakin5
  • Members
  • 258 messages
yes, why ?

And finally, how to hide an ability in tactics ?

Modifié par anakin5, 21 janvier 2010 - 01:37 .


#2
anakin5

anakin5
  • Members
  • 258 messages
I can answer my question. The UI action script doesn't filter abilities itself and call an Engine function : "ListTacticAbilities". This engine function should be responsible of looking at the "showintactics" field in abi_base but don't seems to do it.

Has anyone from bioware the right :) to look at this function and tells what it does and does not ?

#3
Craig Graff

Craig Graff
  • Members
  • 608 messages
The quick answer to the original question is "it does" at least in my experience. Can you post the line from the ability 2da?

#4
anakin5

anakin5
  • Members
  • 258 messages
ID : 50000

Label, namestref, descstrref, tooltipstrref, icon : Random

abilitytype : 3

prereqability : 4002 (humanoid)

guitype : 600

targettype : 1

autotarget : 1

usetype : 4

showinchargen : 7

crust_id : 2

resistance : 33

ProcessWithEvent : 500



All other fields are 0 (int) or empty (string).



My guitype is :

ID : 600

Label, stringID : random

TintColor : 0x888888

Orphanage : 1



All other fields are 0 or empty





I made my tests with and without ProcessWithEvent, and the ability is always listed in "Use Ability" in tactics.




#5
anakin5

anakin5
  • Members
  • 258 messages
Any news ?

Modifié par anakin5, 03 février 2010 - 04:06 .


#6
Craig Graff

Craig Graff
  • Members
  • 608 messages
Sorry - I haven't had time to test this - though I can tell you it worked fine for me with item abilities. I haven't had a chance to test with regular abilities or even to test if setting it to 1 for an item ability actually makes a difference and adds the ability to the tactics table.



I also couldn't immediately find ListTacticAbilities in the engine.

#7
anakin5

anakin5
  • Members
  • 258 messages
So it is maybe used only for item abilities. I find a way to hide abilities in tactics by setting "usetype" to 1.

It seems that the ListTacticAbilities return all learned abilities that have "usetype = 2". That also partially explain the field "UseType" in commandtype xls. (AI_TacticsConditions).