Page 1 of 1

Buff Questions

Posted: Sat May 07, 2011 12:46 pm
by skelltor
I have some buff questions
1. do negetive buff values work ie BuffDefenseMult = "-2.5" (I tried it ingame but it made the enemys invulnerable) did I do somethintg wrong?
2. How do I make a buff (or weapon) that gives only my unit as a hero tons of health?
3. Can I make buffs that work without other units being there
4. does this
BuffDefenseMult = "2.5"
BuffDefenseTimer = "40" mean the unit gets 2.5 times as much health for 40 seconds?
5. does this
BuffOffenseTimer = "30"
BuffOffenseMult = "4.5"
the units do 4.5 times as much damage for 30 seconds?
6. What does this refer to? BonusAmplification = "0.25" someone said that it meant how much extra damage the weapon does from damage buffs.

Any anwsers would be great :).

Re: Buff Questions

Posted: Sat May 07, 2011 1:40 pm
by Ninja
I think that BuffDefenseMult is what incoming damage is multiplied by, for example "0.5" means that the unit takes half of the normal damage when it gets hit. I think that a positive value over 1 may make damage multiply to "weaken" enemies units, but I'm not sure.

Re: Buff Questions

Posted: Sat May 07, 2011 4:30 pm
by skelltor
Ok but if thats true why would this

Code: Select all

[OrdnanceClass]

ClassParent      = "com_weap_inf_buff_ord"

[Properties]

BuffDefenseTimer    = "40"
BuffDefenseMult     = "-2.5"

PlayEffectOnOwner   = "com_sfx_buff_dark_red"

AffectFriends = "0"  // default is 1. should the ordnance affect friends. 
AffectEnemies = "1"  // default is 1. should the ordnance affect enemies.
ApplyOnOwnerIfOnOthers = "0"


make enemies invulerable instead of weeker like I want?

Re: Buff Questions

Posted: Sat May 07, 2011 4:38 pm
by Fiodis
Because of this.
skelltor wrote:BuffDefenseMult = "-2.5"

Try it with positive 2.5. If that works you can safely assume that negative defense values convey invincibility.

Re: Buff Questions

Posted: Sun May 08, 2011 1:17 pm
by skelltor
Ok I will try that thanks you both.

EDIT that works thanks :) 4 and 6 are done anybody know anything about the others?

Re: Buff Questions

Posted: Sun May 08, 2011 2:31 pm
by Dakota
skelltor wrote:I have some buff questions
1. do negetive buff values work ie BuffDefenseMult = "-2.5" (I tried it ingame but it made the enemys invulnerable) did I do somethintg wrong?
2. How do I make a buff (or weapon) that gives only my unit as a hero tons of health?
3. Can I make buffs that work without other units being there
4. does this
BuffDefenseMult = "2.5"
BuffDefenseTimer = "40" mean the unit gets 2.5 times as much health for 40 seconds?
5. does this
BuffOffenseTimer = "30"
BuffOffenseMult = "4.5"
the units do 4.5 times as much damage for 30 seconds?
6. What does this refer to? BonusAmplification = "0.25" someone said that it meant how much extra damage the weapon does from damage buffs.

Any anwsers would be great :).
heres the list of answers:
1. negative values don't work unless u want it invincible. you can weaken units with a positive value over one and u can strengthen units with a value between 0 and 1 (decimal)
2. what do u mean exactly? do u want it to make only your unit and not others invincible or regan or higher defense. if u wanted it to have more health you can set the defense up high and put a long timer on it so it for the unit's life span or to any amount of time
3. i am not really sure but it may be possible
4. no it means you get 2.5 more damage taken per hit (health is never changed on it only the damage amount for the gun as u can see when u heal while the buff is active)
5. yes it does mean that
6. that is for the galactic conquest when you buy the upgrade

Re: Buff Questions

Posted: Sun May 08, 2011 2:40 pm
by skelltor
Thanks :D and "2. what do u mean exactly? do u want it to make only your unit and not others invincible or regan or higher defense. if u wanted it to have more health you can set the defense up high and put a long timer on it so it for the unit's life span or to any amount of time"

I mean I am trying to make a buff or weapon that when activated would make the hero and only that hero temperaly invulnerable or get a huge health boost.

Re: Buff Questions

Posted: Sun May 08, 2011 3:28 pm
by Dakota
that would tie into the number 3 question of can a buff work on just one unit when not on others. i would have to look into it. i may do some testing later but i got to go to my grandma's house now.

EDIT: i am back now and have been testing but i haven't found anything that would help, maybe someone else knows.

Re: Buff Questions

Posted: Tue May 10, 2011 1:29 am
by TGB
have you tried creating a new parent buff odf and removing the line
"ApplyOnOwnerIfOnOthers = "1"" then referencing this file as the parent odf instead of the normal one?

Re: Buff Questions

Posted: Tue May 10, 2011 3:41 pm
by Dakota
TGB wrote:have you tried creating a new parent buff odf and removing the line
"ApplyOnOwnerIfOnOthers = "1"" then referencing this file as the parent odf instead of the normal one?

i always thought that that code was not going to work because of when i read the magna guard's poison move it replaces the 1 with a 0 (aka turning it off) but when you use that it still effects others and not your unit. i am still not entirely sure but if someone could find a way to test it it may work

(wow lots of repeated thats and its...)

Re: Buff Questions

Posted: Tue May 10, 2011 9:33 pm
by Ninja
Dakota wrote:
TGB wrote:have you tried creating a new parent buff odf and removing the line
"ApplyOnOwnerIfOnOthers = "1"" then referencing this file as the parent odf instead of the normal one?

i always thought that that code was not going to work because of when i read the magna guard's poison move it replaces the 1 with a 0 (aka turning it off) but when you use that it still effects others and not your unit. i am still not entirely sure but if someone could find a way to test it it may work

(wow lots of repeated thats and its...)
I don't know it an actual buff affecting only the owner can work, but the KOTOR era uses a powerup dispenser to substitute for a buff and only affect the owner.

Re: Buff Questions

Posted: Tue May 10, 2011 10:22 pm
by skelltor
That might work if I really decrease the throw range so as soon as its dropped he gets it. offtopic
I just wanted to thank everybody for the great help here and with my other problems and everything gametoast really is a great community :)