Question to vote for: How aura should work- IMPLEMENTED v001

Post Reply
Stratego (dev)
Site Admin
Posts: 9680
Joined: Fri Apr 25, 2014 9:28 pm

Question to vote for: How aura should work- IMPLEMENTED v001

Post by Stratego (dev) » Sat Jul 19, 2014 6:16 pm

I faced the problem that in a TBS game how an aura should work (i am working on aura developent)
aura: a caster can provide an aura (eg. +1 attack to all ally units within X tile range) and the aura modifies all unit properties within aura range.

but how should that work?

version1 - aura works only on units that are in range at START TURN:
- on starting the turn:
-- remove all effects the aura shares from the units
-- add all aura effects to the units that are in the range on starting the turn.
- when caster moves a few tiles than
-- NO NEW units (what gets in range in new position) gets any effect! (since they were not affected on tursn start)
-- NO unit will lose the effect that got out of the range because of the caster moved.

version2 - aura is always refreshes the units that it should affect:
- so anytime caster or any other unit moves, all aura effects are refreshed on unit (added or removed)

which version is better?

all have pros and cons.
version1
- pro: will not let the player to "extend the aura" by moving the caster - so only a circular area will be what is applied only on turn start.
- con: a little weird, and not clear which unit is affected at any moment (considering caster and unit moves) or not.

version2:
- con: the aura affected area will be larger since before caster move all sourrounding units can have the effect, and after caster moved, new units can have the effect - so the aura shape will be an OVAL.
- pro: for the player easier to know which unit is affected.

or any new idea?

User avatar
balint
Posts: 1274
Joined: Mon Apr 28, 2014 6:38 pm
Location: Hungary

Re: Question to vote for: How aura should work

Post by balint » Sat Jul 19, 2014 7:00 pm

I vote for version 2.

About the contra, what about if the aura stays alive untill the end of the turn. (So it cancels when you start your next turn, but during enemy turns, the aura remains).
This is Hungary and winter is coming.

Stratego (dev)
Site Admin
Posts: 9680
Joined: Fri Apr 25, 2014 9:28 pm

Re: Question to vote for: How aura should work

Post by Stratego (dev) » Sat Jul 19, 2014 7:16 pm

sure, both cases the aura will work on every turn (in enemy too)
version1: the aura will affect on every turn start, so in enemy turn where the caster stands the area of aura is fixed there for that turn.
version2: the aura will always affect anyone (in enemy turn also) who comes in and out of the range.

User avatar
balint
Posts: 1274
Joined: Mon Apr 28, 2014 6:38 pm
Location: Hungary

Re: Question to vote for: How aura should work

Post by balint » Sat Jul 19, 2014 8:19 pm

I think the second is better :)
This is Hungary and winter is coming.

Stratego (dev)
Site Admin
Posts: 9680
Joined: Fri Apr 25, 2014 9:28 pm

Re: Question to vote for: How aura should work

Post by Stratego (dev) » Mon Jul 21, 2014 9:26 pm

ok. the second is ready to try on the server.

Post Reply

Return to “ARCHIVED”