Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
FLARE [ARCHIVED]

How to make a power get better (other than damage) depending on the level of weapon equipped?

TakeAShower
Wednesday, August 22, 2018 - 03:33

I am making my own campaign and I want to add back the power from alpha_demo to raise your shield. I did this without trouble, however the power is incredibly powerful against low-level enemies and terrible against high-level enemies. I want the reflect chance and absorb increases to depend on the level of the shield. How do I do this?

  • Log in or register to post comments
dorkster
joined 13 years 4 days ago
Wednesday, August 22, 2018 - 17:12
dorkster's picture

I think the best way would be to do it like we do different ammo types for ranged weapons.

The Block power consist of a meta power with separate powers for each "level":

[power]
id=1
name=Block
meta_power=true

# let's say this is the power for the wooden buckler
[power]
id=2
name=Block
...

Then in the wooden buckler item definition, you would have:

replace_power=1,2

  • Log in or register to post comments
TakeAShower
joined 6 years 11 months ago
Thursday, August 23, 2018 - 05:34

Okay cool... only thing is that this power will have 5 levels as well, so that's 20 powers to define! Still, this will work.

  • Log in or register to post comments
dorkster
joined 13 years 4 days ago
Thursday, August 23, 2018 - 11:20
dorkster's picture

Yep, it ends up being a lot of powers. What we do in flare-game is define the common elements in a separate file and then use INCLUDE to create all the variants (example: https://github.com/clintbellanger/flare-game/blob/master/mods/empyrean_c...).

  • Log in or register to post comments
TakeAShower
joined 6 years 11 months ago
Wednesday, August 29, 2018 - 07:44

Oh, just realized that it's actually 5*4*4 (80) as each weapon level has several sub-levels e.g.Iron Buckler, Keeper Iron Buckeler, etc..

  • Log in or register to post comments
TakeAShower
joined 6 years 11 months ago
Thursday, September 13, 2018 - 08:42

Is it possible to raise the player's absorb by a damage type? If I gave the shield a damage type of "resistance" would it be possible to ad a percent of this onto their absorb?

  • Log in or register to post comments
dorkster
joined 13 years 4 days ago
Thursday, September 13, 2018 - 19:50
dorkster's picture

So if I understand correctly, you want to have an absorb value that only applies to a specific damage type, right? I don't think there's a way to do that in the engine right now.

  • Log in or register to post comments
TakeAShower
joined 6 years 11 months ago
Friday, September 14, 2018 - 07:04

No, I want to add a "resist" damage type to all shields that the "Block" power adds onto the player's absorb value...

  • Log in or register to post comments
dorkster
joined 13 years 4 days ago
Friday, September 14, 2018 - 09:17
dorkster's picture

Wouldn't adding absorb_min/absorb_max post_effect bonuses to the Block power accomplish that? The alpha demo's Block power has this:

post_effect=absorb_min,1,0
post_effect=absorb_max,5,0

Is that not what you want? If it's not, can you provide an example of what you're trying to do, because I'm still confused.

  • Log in or register to post comments