Ninja_Sheep's question thread.

Chocobo

White-Flower
Reaction score
409
Question 2 : A unit starts the effect of an ability, is the good event. But that's pretty imposible to do in that way, unless you get rid of the Stun Time of Sleep. Or you can calculate the total distance between the caster and the target divided by the hammer's speed, and add a lotta milliseconds (100 is pretty enough)

Last Question : This is quite difficult. For that, you will need Handle Vars, because you will need damn timers (0.04 is enough smooth). You can also use triggers (in GUI), but it will be quite weird and never will be MUI. But you said, "2" units, not one..

Loop Question :
- (Integer A)' start = bj_forLoopAIndex
- (Integer A)' end point = bj_forLoopAIndexEnd
- (Integer B)' start = bj_forLoopBIndex
- (Integer B)' start = bj_forLoopBIndexEnd
A loop, is simply what it means : it does a loop of each action in the order you wrote it, until it gets at the end, it adds 1 to the integer reference, and if the integer reference is equal to the end point, the loop ends (exitwhen bj_forLoopAIndex == bj_forLoopAIndexEnd // or with (Integer B) bj_forLoopBIndex == bj_forLoopBIndex).
The difference between (Integer A) and (Integer B)? Their bjs.
What are the numbers? The first number in the point of starting loop, and second is the point of ending loop. Example, you put :

Code:
    For Each (Integer A) from 1 to 10, do Actions
        Loop - Actions

This will loop 10 times the actions inside the Loop - Actions, from 1 to 10, using (Integer A). Like you do : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
You can also refer to (Integer A) via "For Loop Integer A" (If I remember the name), under Integer Comparaison.

Or another example :

Code:
    For Each (Integer B) from 36 to 546689, do Actions
        Loop - Actions

This loops 546689-36+1 times, meaning 546654 times, from 36 to 546689.
36, 37, 38, 39, 40, 41, 42, 43............ ...........546687, 546688, 546689.
Using this time (Integer B).

You can also merge (Integer A) and (Integer B) to make 2 loops at same time :

Code:
    For Each (Integer A) from 1 to 10, do Actions
        Loop - Actions
            For Each (Integer B) from 6 to 8, do Actions
                Loop - Actions

The first loops 10 times with (Integer A), and on each of (Integer A)' loop, because (Integer B) is inside the loop, it will loop 8-6+1 times, meaning 3 times. So, you have for (Integer B) : (10-1+1)*(8-6+1) = 10*3 = 30 loops (10 for (Integer A), and 30 for (Integer B)).

Tell me if you understand this clearly, because you will need it sometimes if you want to avoid if then else in 10000 millions of it.
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
i think u should create special effect using this model u should find it at buffs or abilitys u just need to look for it
try look at the L starting words probably since the name of ur spell is Life drain...

No, maybe i said wrong, but i mean something like that:

my.php


(hope you can read it :) )


Last Question : This is quite difficult. For that, you will need Handle Vars, because you will need damn timers (0.04 is enough smooth). You can also use triggers (in GUI), but it will be quite weird and never will be MUI. But you said, "2" units, not one..

oww... thought there would maybe be a easy way to solve this problem :(
You said you can do it with a timer? i dont really understand how to create the effect. If i just creat it, it's just a little green "dot/point", i think.

Can you please post this trigger :D

Loop Question :
- (Integer A)' start = bj_forLoopAIndex
- (Integer A)' end point = bj_forLoopAIndexEnd
- (Integer B)' start = bj_forLoopBIndex
- (Integer B)' start = bj_forLoopBIndexEnd

OK, i understood what's a loop, but i still dont see the difference between integer a and be...



Question 2 : A unit starts the effect of an ability, is the good event. But that's pretty imposible to do in that way, unless you get rid of the Stun Time of Sleep. Or you can calculate the total distance between the caster and the target divided by the hammer's speed, and add a lotta milliseconds (100 is pretty enough)

oO, that's pretty difficult. Good i dont need it anymore. Thanks anyway :)
You said that:

But big THX for your long post :)


Code:
For Each (Integer A) from 1 to 10, do Actions Loop - Actions

this means the action for each number 1 time: 1,2,3,4,5,6,7,8,9,10 ---< 10 times

And integer B?

Code:
For Each (Integer B) from 1 to 10, do Actions Loop - Actions

I think this will do exactly the same thing as with integer A: 1,2,3,4,5,6,7,8,9,10 ---> 10 times

I dont understand:eek:



New question: Solved

How can i calculate the distance between 2 units? (you brought me on the idea, chocobo :) )
 

Chocobo

White-Flower
Reaction score
409
How can i calculate the distance between 2 units?
-> Distance between <point> and <point>
so : Distance between (Position of (<unit>)) and (Position of (<unit>))

Difference between A and B? Their bjs, as I said. Not same variable. You can't loop a Integer A in a Integer A, you can't loop a Integer B in a Integer B, but you can loop a Integer A in a Integer B.
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
oooooooooooookay, i understood.

Im not sure so:
New question: Solved

BJs are real-variables/a thing you can put in real-variables. Is this right?
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
New question:

The subject is to make this trigger work:

Code:
Event:
   Unit- A unit is attacked
Condition:
   ((Attacking unit) has buff MyAura)) = True
Action:
   Unit - Create 1 Dummy for (owner of (Attacking unit)) at (position of (attacking unit)) facing (facing of (attacking unit)) degrees
   Unit - Add a 1.00 second Standard expiration timer to (Last created unit)
   Unit - Add "Rage" to (Last created unit)
   Unit - Set level of Rage for (Last created unit) to 1 [SIZE="1"](i will change that)[/SIZE]
   Unit - Order (Last created unit) to Orc - Shamane - Bloodlust (attacking unit)

Ok, if a unit's attacked, it gains "Rage" buff. That works.

But, there's a really strange problem:
If a unit loses or gets the buff of the aura, the unit that gets the aura get the rage buff 2. I got no idea how that could happen!!!, !!! and !!!
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
if a unit's attacked, it gains "Rage" buff. That works.
but all this trigger talks is about the attacking unit not the attacked one

and also i still didn't get what u try to do....
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Question Nr. 2: Solved half
I try to make a Throwhammer (dont know name in english)+ sleep spell. Just for fun. I took this trigger:

Code:
Event:
   If a Unit casts an ability
Condition:
   Avility being cast equal to Throw hammer
Action:
   Unit: Create 1 Dummyunit for player 1 (red) at (Trager point of issus order) facing (facing of casting unit)
   Unit: Order (Last created unit) to undead-dreadlord- 'sleep' (target unit of ability being cast)

Why this doesn't work ?!

First: Create a Sleep ability and do this:
Stats - Hero Ability: False
Stats - Levels: 1
Stats - Mana Cost 0
(You can edit the other stuff as you like)

Then it's trigger time :D
Code:
Events
     A unit Starts the effect of an ability
Conditions
     (Ability being cast) Equal to Storm Bolt
Actions
     Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
     Unit - Add Sleep to (Last created unit)
     Unit - Add a 3.00 seconds Generic expiration timer to (Last created unit)
     Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Target unit of ability being cast)

Um think this is it. And maybe it leaks a little
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
but all this trigger talks is about the attacking unit not the attacked one

and also i still didn't get what u try to do....

OK, my english is worsest of all, so i try again to explain.
The problem is that:

But, there's a really strange problem:
If a unit loses or gets the buff of the aura, the unit that gets the aura get the rage buff 2. I got no idea how that could happen!!!, !!! and !!!

I try it again.

If a unit gets the buff of the MyAura, the trigger is runned...
aaah! shit, i cant explain this. I just upload the map!

you have to learn the spell with the furbolg claw icon and kill a unit.
Then move the unit with the MyAura-spell away from the other(so they lose the effect of aura) and then come close again.

(the spell is NOT finished :) )
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
lol, that sucks!

have you done that?

you have to learn the spell with the furbolg claw icon and kill a unit.
Then move the unit with the MyAura-spell away from the other(so they lose the effect of aura) and then come close again.

you have to go away for about 1500 range
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
let me understand u want that this affect will cuz u kill a unit and than move u 1500 range from there?
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
noooooo!
the bug just activates, if the unit with the aura goes away from the other units and if it comes again... (you just have to get out of range of aura and then come again)
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
omg, this is really stupid.
Just because my bad english i cant explain the error....

Maybe a German is around, that can translate this crap:

Schritte zur aktivierung des bugs

1. Man erlerne die Aura mit EINER einheit
2. Man töte einen Gegner
3. Man bewege sich mit der einheit, die die Aura hat etwa 1500 range von den anderen weg
4. Man komme wieder zurück


PLS, translate this somebody!
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> translate this somebody!

You already did...

1. learn the aura with one, and only one, unit
2. kill something
3. move out of range of the aura (1500, more than one screen)
4. get back in range


This, however, is a bit unclear:
> If a unit loses or gets the buff of the aura, the unit that gets the aura gets the rage buff 2.

You mean you get the wrong buff?
The buff from the aura doesn't show up?
It does, but it seems to be some other buff?
The trigger doesn't add or see or whatever (what?) when doing so?
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
If the unit with the aura comes back, the units that come in range of aura automatically get the rage buff (at my PC)

Did you try it?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Well, War Drums is an aura, and, as such, it works in an area... seems normal.


If you only want it to work for the unit that actually learned the ability:

Set the "targets allowed" of your aura to "self" only.

Or, add an integer comparison to the trigger that says "level of <ability> of (Triggering unit) greater than 0" to only work with units that have actually learned the ability.


If you planned the ability to work on anything in range, it's already doing that.


In case it would be none of the above, try some more explaining... :p
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
Oo, good i dont need the ability any more!

New question: (16 i think) Impossible :(

How can i give multiple order (such as if you use "shift") with triggers?
 

Ninja_sheep

Heavy is credit to team!
Reaction score
64
Do you hate me :eek: or is it imposiible?:(

Or did I explain it bad?! AGAIN?! :banghead:

For the case i explained wrong:
I want that a trigger orders a unit to do multiple things someting like that:

1. move to point xyz
2. then move in area abc
3. then hold position

Help pls!
thanks in advanced
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top