Newbwc3's Help Thread

Status
Not open for further replies.
L

lordpredator

Guest
the attachment point is "Hand; right"(in 2 lines) or "weapon", but depends on the model you are using if it attach correctly or not. well, i made a flamethrower test with the method i tell you, it is working perfectly, the only thing you have to add is a trigger to detect when the mana is gone... and turn off the fmalethrower (convert the unit to his basic form)... i have added a effect of liquid fire (as the troll batrider), and you can add others effect too.
 

Attachments

  • flame.jpg
    flame.jpg
    36.7 KB · Views: 179
  • flamethrower.w3x
    16.7 KB · Views: 167

Newbwc3

Sephiroth_VII
Reaction score
157
Ok is there some way to make the dummy unit attached to the left hand when created.

Because the dummy shoots this flame thingy and it doesnt look like its coming out of the shredders cannon....

Or maybe even some way to create the dummy at the location of the left hand of the shredder. I tried to make it create the dummy at the location of last created special effect but I Can't do that.?
1)This is what im asking a way to attach a DUMMY to the unit.

2)How would u make a war club ability for a different unit other than mountain giant??
SOLVED
 

SerraAvenger

Cuz I can
Reaction score
234
1. Using an Array for the variables would work most of the time.

2. I don't know what leaks you are talking about. Too lazy to read all pages of thread.

Note: Why not make your own help thread?

1. This was not a question, more sort of hint "look what will happen if more players/heros use it", but it seems as if it would be a non hero ability what makes it even more difficult. You will have to make lots of fields for the array.
To make a bit more apperent I created this nice -.- smiley, but still you did misinterprete it.

2. I did not start with these leaks. Newbwc3 asked if there where any "leaks". This nice doom-Angel answered that "Unit - Create 1 FT_Dummy for (Owner of FT_caster) at (Position of FT_caster) facing (Position of (Target unit of issued order))" would have 2 leaks, but I dunno see any leaks in it, so I asked about wich leaks they are talking, as I thought newbwc3 would refere to memory leaks.
EDIT:Ok I thought in the function "CreateNUnitsAtLoc" there was an automatical location remove...
Sad that JASS has no garbage collector :(

Note: I did not open a second help thread because 1. was a rhetorical question and 2. was a question what leaks they are talking about.

So if you want to help me, it would be wise to read other posts before. Of course, it is by far funnier to talk something over you only know the half about. //not meant to be offense. Do it the same way from //time to time, too

Greetings Serra
 

Newbwc3

Sephiroth_VII
Reaction score
157
Yeap bringing up the good ole thread again...

I to0 Newb to fix this, would someone plz do it for me make it AOE and fix it so when you shoot the flamethrower your unit doesn't go running toward the target. I'll give you +rep, credit, whatever you want. Cause the only way I could know how to do it is, if its put right in front of my face exactly the way its supposed to be triggered! :(
help.
http://www.thehelper.net/forums/showthread.php?t=55305 <==here it is.
Just fix it and post it so i can dl it. I give up.
SOLVED
 
L

lordpredator

Guest
sorry i´m insistent... but is better to give up with that code when it can be made far more easy, without triggers, with AOE damage, and all kind of added effects to the attack... really, try the map i make for this thread... after all, i do it for you... i don´t need a flamethrower in my map (not yet :rolleyes: )

LP
 

Newbwc3

Sephiroth_VII
Reaction score
157
Now that Flamethrower's finally done I can ask more stuff!

How do u make another unit have the ability "War Club" and have it work properly. When I give this to a unit it works and all but you dont see the animation of picking up the tree and you dont see the tree as you carry it. And I think If I can remember, As soon as you hit anyone with your invisible tree you just stop in place and cant do nothing.
SOLVED
 

SerraAvenger

Cuz I can
Reaction score
234
You solved your problems?
Nice to hear.:)



k what's wrong with it?

All these animations are not available on normal units.
If you look at the giant, he has animations to pick up the tree and to walk / attack / cast with the tree.

Try using "Eat Tree" of an Nightelv Ancient, adding damage with a trigger and add a tree model wich you can attach to hand, right....
 

Newbwc3

Sephiroth_VII
Reaction score
157
Tryed doing THAT^

Code:
War Club
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to War Club 
    Actions
        Wait 1.00 seconds
        Unit - Remove [B]War Club  [/B]from (Triggering unit)
        Unit - Add [B]Carrying Tree  [/B]to (Triggering unit)
        Special Effect - Create a special effect attached to the left hand of (Triggering unit) using Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl
        Wait 30.00 seconds
        Special Effect - Destroy (Last created special effect)
        Unit - Remove [B]Carrying Tree  [/B]from (Triggering unit)
        Unit - Add [B]War Club  [/B]to (Triggering unit)
aditional info:
>War Club is really the devour tree ability changed so it adds no health
>Carrying Tree is really the Critical Strike ablility(to add damage when ur carrying tree)

  • Problem is sometimes when you pick up a tree the special effect is never destroyed!Even tho everything else in the trig works!
  • Also I changed the doodad in the object editor to be smaller and it is smaller when placed on the map, but when it is created via this trigger its not smaller!
:( :mad: :confused:
SOLVED
 

SerraAvenger

Cuz I can
Reaction score
234
Hehe.

This is a bugged trigger, I had that problem once too....
PHP:
        Special Effect - Create a special effect attached to the left hand of (Triggering unit) using Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl
        Wait 30.00 seconds
        Special Effect - Destroy (Last created special effect)
This is the bugged part.
Note that when a new special effect is created during the wait time, the new effect will be destroyed, not the one you want to!
I had this problem with "last created floating text".
do it this way:
PHP:
custom script: local effect treeeffect=AddSpecialEffectTarget( "Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl", GetSpellAbilityUnit(), "left hand")
wait 30 seconds
custom script: call DestroyEffect( treeeffect)



Too, Your problem is that in the Object Editor, you decrease the size in a pointer variable, not of the model itself (wich has the path Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl).
To do that, copy the model, decrease its size, and add to your database afterwards. Note that the model path (Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl) has to be changed then, too. You can take the "imported files" option instead of the normal used. Additional, you should preload it before using it in your map. This can be done by a trigger (preload file).

Hope that this fixed your first problem. If not, just tell me what is wrong exactly...
ANd ask a good Importer how to do all this stuff

Greetings Serra
 

Newbwc3

Sephiroth_VII
Reaction score
157
!!!error!!!

Script Error! Expected a code statement
Code:
local effect treeeffect=AddSpecialEffectTarget( "Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl", GetSpellAbilityUnit(), "left hand")

Script Error! Expected a name
Code:
   call DestroyEffect( treeeffect)

!
! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! !
SOLVED
 

Joker(Div)

Always Here..
Reaction score
86
if its just gonna last for a second or 2, do
Code:
call DestroyEffect( AddSpecialEffectTarget( "Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl", GetSpellAbilityUnit(), "left hand") )
 

Newbwc3

Sephiroth_VII
Reaction score
157
No, its going to last for 30 Seconds.

Script Error! Expected a code statement

Code:
local effect treeeffect=AddSpecialEffectTarget( "Doodads\Felwood\Props\FelwoodLogStraight\FelwoodLogStraight.mdl", GetSpellAbilityUnit(), "left hand")

Script Error! Expected a name
Code:
call DestroyEffect( treeeffect)
SOLVED
 

SerraAvenger

Cuz I can
Reaction score
234
okay... I will look what the problem is...#


The second one is easy to understand why it doesnot work. It does not work becouse the variable is not declared properly.
The first one I do not understand....
Try it with "Right Hand"

I will try it in an own Game, and post the reult...

EDIT:
You have to change all \ in the model path to \\
Code:
"Doodads\\Felwood\\Props\\FelwoodLogStraight\\FelwoodLogStraight.mdl"
is the right. And too, left hand has to be Left Hand....
It seems to work with my game.
greeting Serra.
 

Newbwc3

Sephiroth_VII
Reaction score
157
Alright I don't know any JASS at all so plz help me out here. I hate JASS
anyway this trigger does not work! the purpose is to create and destroy a tree attached to the left hand of triggering unit. must be MUI

Code:
War Club
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to War Club 
    Actions
        Wait 1.00 seconds
        Unit - Remove War Club  from (Triggering unit)
        Unit - Add Carrying Tree  to (Triggering unit)
        Custom script:   local effect treeeffect=AddSpecialEffectTarget( "Doodads\\Felwood\Props\\FelwoodLogStraight\\FelwoodLogStraight.mdl", GetSpellAbilityUnit(), "Left Hand")
        Wait 30.00 seconds
        Custom script:   call DestroyEffect( treeeffect) 
        Unit - Remove Carrying Tree  from (Triggering unit)
        Unit - Add War Club  to (Triggering unit)
SOLVED
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Well, the positions and code is wrong, sorry... Here is the right way to do this:
Code:
   local effect treeeffect = AddSpecialEffectTargetUnitBJ( "left hand", GetSpellAbilityUnit(), "Doodads\\Felwood\\Props\\FelwoodLogStraight\\FelwoodLogStraight.mdl" )
It was "AddSpecialEffectTargetUnitBJ"... The "Left Hand" and "GetSpellAbilityUnit()" comes before the path... Your path was also wrong because you used one "\" instead of two "\" instead in certain areas. :D

Also, do this:
Code:
Custom Script:   call DestroyEffect(treeeffect)
Custom Script:   [B]set treeeffect = null[/B]

That should work, I think. :D
 

Newbwc3

Sephiroth_VII
Reaction score
157
This does Not work!
Code:
War Club
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to War Club 
    Actions
        Wait 1.00 seconds
        Unit - Remove War Club  from (Triggering unit)
        Unit - Add Carrying Tree  to (Triggering unit)
        Custom script:   local effect treeeffect = AddSpecialEffectTargetUnitBJ( "left hand", GetSpellAbilityUnit(), "Doodads\\Felwood\\Props\\FelwoodLogStraight\\FelwoodLogStraight.mdl" )
        Wait 30.00 seconds
        Custom script:   call DestroyEffect(treeeffect)
        Custom script:   set treeeffect = null
        Unit - Remove Carrying Tree  from (Triggering unit)
        Unit - Add War Club  to (Triggering unit)
This is exactly why I don't like JASS. plz help why won't it work i did everything You said!?
SOLVED
 

SerraAvenger

Cuz I can
Reaction score
234
MY CODE WAS NOT WRONG: It was only more efficient!!!

Look here, this is the api blizzard.j:
Code:
function [b][u]AddSpecialEffectTargetUnitBJ takes string attachPointName, widget targetWidget, string modelName[/b][/u] returns effect
    set bj_lastCreatedEffect = [b][u]AddSpecialEffectTarget(modelName, targetWidget, attachPointName)[/b][/u]
    return bj_lastCreatedEffect
endfunction

This is what your nice BJ does: it runs my native.
So plz do not confuse him with inefficient code.

If you do not understand this, then most probably you should try to read phyxerians tutorial about efficiency, or stop using JASS.

@Newbwc3:
I use JASS here becouse else it would be difficult for multiple units casting this spell.
Do not let others confuse you with inefficient code. Believe me, I know what I post, others do probably bot, sad enough.

There is no error message, it just does not attach the tree... Perhaps wrong path...
I will try it again. The code itself is totally right.
Perhaps you should set the local at the beginning, the compiler doesn't like it if you init variables in the middle of the code.....



EDIT:
YES IT WORKS PERFECTLY!
Only thing I changed: The path, and the local is initialized just after the wait 1 sec.

Greetings Serra.
 

Newbwc3

Sephiroth_VII
Reaction score
157
how do u take a screenshot of the trigger editor because it wont let me take one of that, only lets me take one of the wc3 worldeditor screen
SOLVED
 
T

thedude

Guest
You can do PrintScreen. It's function then delete on my laptop. I don't know what it is on a regular keyboard though.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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!
  • 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.

      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