HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

questions about buff and ability

02-16-2005, 04:36 PM#1
Tabris
What i know :
-we can add/remove ability,
-we can remove buff.

questions :
Can we add buff?
Can we check if a unit have a specific buff or ability?
02-16-2005, 04:57 PM#2
aaero
No.

Yes.


Does that help?

You can't (I should stop saying this) directly add a buff as far as I know.

You can check to see if a unit has a specific buff. It's a condition, I believe a Boolean Comparison. Unit - Unit has Specific Buff.
02-16-2005, 04:57 PM#3
Elven Ronin
You can't add buffs using a trigger in world edit.

You can check to see if a unit has a buff. It's a boolean comparison, unit - has buff.

I don't think you can check for abilities, but maybe i missed that.
02-16-2005, 05:13 PM#4
ThyFlame
You can add a buff easily enough, through the use of a dummy unit. A little extra triggering, but same effect overall.
02-16-2005, 06:27 PM#5
Tabris
So.....
chek ability=no
check buff=yes
set buff=by trigger, how?
another question : can we unresearch a tech? Get a research level?
02-16-2005, 09:06 PM#6
aaero
I believe you can check for an ability on a unit by using "Level of Ability for Unit".

For example:

Code:
If (Level of [color=orange]YourAbility[/color] for SomeUnit > 0)
    Then - Actions
         ---- Unit has Ability -----

Note that this is a very small snippet and will not work unless you figure out what "SomeUnit" will be.

To Check for a buff, there is a Condition "Unit - Unit has Specific Buff". So yes, it's possible.

To add a buff by trigger requires a moderate level of trigger knowledge. You have to create a dummy unit and have it cast a spell on the unit you want to add the buff to. The buff for that spell should be the buff you want.

I dont think you can "unresearch". But I do think there is a "Player - Current Research Level for UpgradeName". If that's not the correct name, someone will correct me :).


I realize I'm being very brief and general with my explanation. If you need more help on how to do any of this, then just ask. I feel that with the help I've given, you at least will know what to ask :).
02-16-2005, 09:57 PM#7
Tabris
Can you explain more exactly how do you add buff?
And can not find any "level of <ability> for <unit>"
02-17-2005, 04:50 AM#8
D0nk1ckh0t
Level of ability is an integer and it's located in Unit - Level Of Ability (integer comparison)
02-17-2005, 02:45 PM#9
Tabris
Quote:
Originally Posted by D0nk1ckh0t
Level of ability is an integer and it's located in Unit - Level Of Ability (integer comparison)

oh!
yeah!!
great!!!
and return 0 if not found!!!!
^_^ ^_^ ^_^
Does someone know what exactly is going on if we add a ability already added, or removed a ability already removed? There is a protection or ther will be bug sometimes?
And there is a maximum amount of capacity for a unit?