Aller au contenu

Photo

What script uses combat_h to determine combat results?


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

#1
traversc

traversc
  • Members
  • 274 messages
For example, let's say I wanted to make it so that all normal attacks miss in combat (hypothetically, don't ask why).  So I edited Combat_GetAttackResult in combat_h.nss. 

The problem though, is that I can't seem to find what script references these functions?

I've literally searched through all core scripts and the only reference to  I could find is in rules_core.  But compiling rules_core did not produce the intended results. 

Any help is appreciated, thanks :(

#2
FollowTheGourd

FollowTheGourd
  • Members
  • 572 messages
Lots of stuff #includes it, including headers which are then #included by other scripts and so on, so it's not like I can just tell you in 5 seconds, although it might not be way too much work to get. It's easier to search through scripts if you export all of them from the toolset's database first.

Or if you want to stick to the toolset, you could probably first right click on combat_h in the palette -> "properties" -> "referenced by", and then recursively do the same for each *_h.nss file listed (presuming all headers follow that naming convention).

Modifié par FollowTheGourd, 09 avril 2010 - 05:31 .


#3
traversc

traversc
  • Members
  • 274 messages
Nevermind, I just figured it out. 

It is indeed rules_core, however, Advanced Tactics mod was stealing the event. 

:(

#4
FollowTheGourd

FollowTheGourd
  • Members
  • 572 messages
Sure that's all? A quick search shows Combat_GetAttackResult getting used in lots of other scripts that would assumably need recompiling (not that you can recompile a header of course): http://pastebin.com/NLGQ7Nb4.

Modifié par FollowTheGourd, 09 avril 2010 - 05:38 .


#5
Proleric

Proleric
  • Members
  • 2 363 messages
DAToolchest is a very useful utility for searching scripts and other stuff.

#6
traversc

traversc
  • Members
  • 274 messages

FollowTheGourd wrote...

Sure that's all? A quick search shows Combat_GetAttackResult getting used in lots of other scripts that would assumably need recompiling (not that you can recompile a header of course): http://pastebin.com/NLGQ7Nb4.


Yes I know, but all of those instances are for talents.  I was looking for normal combat attacks.  Similar to what you did, I exported everything and searched in notepad++.  But the problem was, it was buried within a function call which was buried in another function call.  So I had to do a "depth three" search, if that makes any sense - which was the reason I was unsure  of the relevant script. 

Anyway, solved now, so this thread can be closed.  Thanks :)