| 03-09-2007, 11:44 PM | #1 |
I was wondering if I could get the following things. - Knockback formula (to knockback from caster) - Backstab formula - How to make spells invisible so when you add them to a unit the player won't know its there. |
| 03-09-2007, 11:54 PM | #2 |
By spells I think you mean Buffs? If you do: 1) Dont apply a buff... that fixes problems with showing em. 2) Change the icon file to . or .mdl |
| 03-10-2007, 12:03 AM | #3 |
No I meant spells. |
| 03-10-2007, 12:09 AM | #4 |
You could use a spellbook (Don't ask me how), or just make the icon of the spell .mdl. That makes it pure black, but youll still be able to use it. |
| 03-10-2007, 12:37 AM | #5 |
If you use a .mdl won't it be full green? |
| 03-10-2007, 12:42 AM | #6 |
Whoops, not mdl, i meant whatever the icon file is set in. Whatver it is, if you set it to that it shows nothing. |
| 03-10-2007, 02:09 AM | #7 |
Or you can just use paint(the normal gay kind) and paint everything black, save it, convert it to mdl and import it and use it for the spell's icon and it'll be black blending in. But this way you can still see the tooltip if he moves mouse over it but what are the chances?? people normally use trigger to add buffs onto a unit |
| 03-10-2007, 03:35 AM | #8 |
I think I saw that kind of thing in ToB... As for hellman's questions... 1) Checkout Vile's knockback functions in the resource section. 2) Create integer variables, set them as the Str, Agi or Int of the Hero. Find it in the 'Hero' section in GUI. 3) Add a spellbook to the unit, add the ability to the spellbook, disable the spellbook. |
| 03-10-2007, 04:40 AM | #9 |
A backstab formula is very simple. Unit - Unit attacks Attacking unit has Backstab equal to true If/Then/Else (Multiple Conditions) Unit - If (((facing angle) of attacked unit)+60) less than facing of (attacking unit) Unit - If (((facing angle) of attacked unit)-60) greater than facing of (attacking unit) then do actions Actions: Cause (attacking unit) to do (your damage formula) to (attacked unit) For a damage formula some good ideas are: (Life of attacked unit * .1) ((attribute) of attacking unit *(number)) |
| 03-10-2007, 01:14 PM | #10 |
Just a question.. Why did you ask this in the terrain forum? >.> |
| 03-11-2007, 10:28 PM | #11 |
How do you disable a SpellBook? |
| 03-11-2007, 10:39 PM | #12 |
Player - Enable/Disable Ability |
| 03-13-2007, 01:41 AM | #13 |
You can also just base an ability off the pre-made shell called "Channel" which has a data option allowing it to NOT be visible (and thus will not appear in the abilities bar of a unit, although using triggers to force-cast such an ability would still work). |
| 03-20-2007, 09:49 PM | #14 |
The backstab method mentioned above isn't working :(. Here is what I'm using (the one that isn't working) ((Facing of (Target unit of ability being cast)) + 60.00) Less than (Facing of (Casting unit)) ((Facing of (Target unit of ability being cast)) - 60.00) Greater than (Facing of (Casting unit)) In that order, if it matters. I also can't find the Vile1 knockback functions. All I need are a few formulas: - Knock away from casting unit - Knock away from location |
| 03-20-2007, 11:56 PM | #15 |
I have that trigger in my map and it works.. Idk. I'll post my full trigger later today or tomorrow. |
