Page 1 of 1

Shield that only shields one type of damage? [Solved]

Posted: Sat Jul 23, 2011 11:21 am
by Noobasaurus
Is it possible to have a built it shield (where you just add "AddShield" and such to the unit's odf) that only shields against water? I know that it shields against water normally but how would I make it only water?

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:24 am
by THEWULFMAN
You can not do exactly what you want, because there is no way to make a shield only protect you from certain things. Instead, try adding a damage region in the water that has reverse values, so it adds health at the same rate the water takes it away. That's your only option.

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:29 am
by Noobasaurus
THEWULFMAN wrote:You can not do exactly what you want, because there is no way to make a shield only protect you from certain things. Instead, try adding a damage region in the water that has reverse values, so it adds health at the same rate the water takes it away. That's your only option.
How would that solve it? I don't get it...

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:32 am
by THEWULFMAN
Noobasaurus wrote:How would that solve it? I don't get it...

If your goal is to make a unit that doesn't die underwater, but you don't want a shield because it would protect them from everything, then what I suggested is the only way to do that. I am basically making a lot of assumptions because I did not have a lot of information to begin with.

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:32 am
by acryptozoo
Noobasaurus wrote:
THEWULFMAN wrote:You can not do exactly what you want, because there is no way to make a shield only protect you from certain things. Instead, try adding a damage region in the water that has reverse values, so it adds health at the same rate the water takes it away. That's your only option.
How would that solve it? I don't get it...
well the water takes X amount of health away
and if the shield gives X amount of health
then you are sorta like not loosing health
EDIT:THEWULFMAN beat me :(

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:36 am
by Noobasaurus
acryptozoo wrote:
Noobasaurus wrote:
THEWULFMAN wrote:You can not do exactly what you want, because there is no way to make a shield only protect you from certain things. Instead, try adding a damage region in the water that has reverse values, so it adds health at the same rate the water takes it away. That's your only option.
How would that solve it? I don't get it...
well the water takes X amount of health away
and if the shield gives X amount of health
then you are sorta like not loosing health
EDIT:THEWULFMAN beat me :(
Oh I see...

Does that work like health regeneration? It sounds to me like that'll work everywhere...

But to begin with, I am not that familiar with shields... :(

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:40 am
by THEWULFMAN
Noobasaurus wrote:Oh I see...

Does that work like health regeneration? It sounds to me like that'll work everywhere...

But to begin with, I am not that familiar with shields... :(


I did not suggest shields, because that would not work, again. What I said was....
THEWULFMAN wrote:You can not do exactly what you want, because there is no way to make a shield only protect you from certain things. Instead, try adding a damage region in the water that has reverse values, so it adds health at the same rate the water takes it away. That's your only option.

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 11:42 am
by Noobasaurus
But wouldn't the damage region do the same for all units?

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 12:00 pm
by THEWULFMAN
Noobasaurus wrote:But wouldn't the damage region do the same for all units?

You can set it to only add health to certain health types (person,droid,animal). So units you don't want to be given health could have a person healthtype, and then the units you want to have the health restored could use a droid healthtype. Thats just an example of course.

Re: Shield that only shields one type of damage?

Posted: Sat Jul 23, 2011 12:03 pm
by Noobasaurus
THEWULFMAN wrote:
Noobasaurus wrote:But wouldn't the damage region do the same for all units?

You can set it to only add health to certain health types (person,droid,animal). So units you don't want to be given health could have a person healthtype, and then the units you want to have the health restored could use a droid healthtype. Thats just an example of course.
Ahhh I see! Thank you! :D