Author Topic: Flags?  (Read 776 times)

Fungu

  • Guest
Flags?
« on: 3 May 2010, 13:15:08 »
I have been trying to figure out how flags work for a few hours now but with no success. I found a few flags here at the forum (<recourse-ends-with-target/>, <apply-splash-strength/> and a few flags associated with auto attacking), but I can't get any of them to work. I made a complete search of the glest+gae folder and the source for 0.2.13 but could not find any of the flags anywhere. Looking at flags.h, it seems like flags are imported from an xml file, but where can I find documentation of how that works?

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Flags?
« Reply #1 on: 3 May 2010, 23:47:08 »
The flags are specified in special enumerations, for EffectFlags see game_constants.h:264

They don't all work, but I can't tell you much about what does/doesn't unfortunately, most of the 'properties' should work, but SCALE_SPLASH_STRENGTH definitely has problems, and other may too. None of the AI_HINTS do anything yet.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

Fungu

  • Guest
Re: Flags?
« Reply #2 on: 4 May 2010, 21:06:25 »
Found it!
Thanks for the help =)

 

anything