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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top