Spell Black Arrow

Cohadar

master of fugue
Reaction score
209
LoL I accidentally saw it.

It will not disturb anything, besides I am using this spell in Pyramidal remember?
I simply recoded it to use PUI as I explained to you.
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Well, cohadar, your PUI GUI SHMUI WUI isn't MUI at all. I tested it but when I cast it 2+ times all arrows move to the direction where the last arrow was casted and none of them gets removed.
 

Cohadar

master of fugue
Reaction score
209
Of course it is (try the arrow in pyramidal)

It is not my fault that you made error in your coding....
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
> It is not my fault that you made error in your coding....
Never used it in my map. It's not MUI in the map few posts above. :\
 

Cohadar

master of fugue
Reaction score
209
Oh I see, well I just hacked that in few minutes,
it does not matter really, it is GUI anyways and I don't want to bother with that, waste of time...

Try jassing...
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
> Try jassing...

Duuuh... I know, GUI sux. I just wanted to report that. :)
 

Flare

Stops copies me!
Reaction score
662
Ah, I guess I overlooked that. Still trying to figure out how to get around the error in my VARIABLEDAMAGE and VARIABLEHEAL constant functions (it says 'Expected a name'). It's not an absolute requirement, but it makes the spell more customizable :)

EDIT: Just noticed that I didn't null the timer t in BArrowActions. Do I need to null it, or would that cause problems with the timer?
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
Sooo okay tested it!
I really love this spell. It looks so nice when the effects appear on all units into a line. Doesn't lag and you made the code configuration very newbfriendly (using degrees, colors in %). +Rep because it's great.

I got one little "but" though^^
Could you please make it that way, that it doesn't go further the targeted spellpoint? It is quite easy to do that. Just use an struct integer which, e.g., you call ticks. Then when the spell is fired you do s.th. like this.

JASS:
local location l = GetSpellTargetLoc()
local real lx = GetLocationX(l)
local real ly = GetLocationY(l)
local real x = lx - GetUnitX(a.caster)
local real y = ly - GetUnitY(a.caster)
set a.ticks = R2S(SquareRoot( x * x + y * y) / MOVEDIST) // distance between caster and target location / the distance that is traveled every period
    call RemoveLocation(l)
set l = null


In your callback function you always set a.ticks = a.ticks - 1 and you always check whether a.ticks >= 1... if true then you do all your movement thing etc. if not you do the explode-stuff.

Edit: Null the timer, won't cause any problems... and you should also null the timer in the callback function.

Edit2: Ahh and for physicals sake give the arrow a fly height... normally arrows do NOT move ON the ground^^. Will also look much better.
 

BRUTAL

I'm working
Reaction score
118
when i open the updated map in WE then click test map
it brings me to the Warcraft 3 menu screen :confused:
 

Flare

Stops copies me!
Reaction score
662
Doesn't lag and you made the code configuration very newbfriendly (using degrees, colors in %)

That's pretty much what I was aiming for. Being a JASS newb myself, it's nice to be able to easily configure a spell without diving right in and looking for everything and not understanding it. And, pretty much every other JASS spell I've seen has a configuration block, so why shouldn't I do it ^^

I guess that was one of the disadvantages of spending so long using GUI (the newb-unfriendly-ness)


EDIT AGAIN
I have a quick question:
For my first decent attempt at a JASS spell, would this be good/bad/average? End result-wise and complexity of code-wise (would you say it's a fairly simple thing to do for a beginner?)
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
Hmm I'll try to give a pros / cons feedback

+ Spell is in vJASS
+ You use unit sliding
+ You use coordinates
+ You successfully use ABC
+ MUI / MPI
+ Result is pretty nice^^
+ Awesome config, very newbfriendly
+ method use
+ quite efficient coding ( probably more then trice as good as your GUI version [though I never threw a look at it])

------------
- code could be neater at some points (not at config ;) )


-->
Conclusion:
In my opinion a very nice remake of one of your own GUI spells. You learned a lot in the past days I guess... and we can see that :D. Great result for a first JASS spell.
And... I'm happy to see someone GUIing for so long to finally took over JASS ;s
 

Flare

Stops copies me!
Reaction score
662
+ Spell is in vJASS
+ You use unit sliding
+ You use coordinates
+ You successfully use ABC
+ MUI / PUI
+ Result is pretty nice^^
+ Awesome config, very newbfriendly
+ method use
+ quite efficient coding ( probably more then trice as good as your GUI version [though I never threw a look at it])

------------
- code could be neater at some points (not at config )

1) -
2) I was able to do that before with Key Timers (but it used PolarProjectionBJ)
3) Coordinate geometry would be one of my stronger points when it comes to maths ^^
4) Woot!
5) Ahm... PUI? If you are talking about Perfect Unit Indexing, no comment :nuts:
6) Thanks
7) That was the plan when I thought out the configuration
8) Copied it from cr4xzzz's JASS version of Frozen Orb (I still don't understand what methods do, but I know how to use that one ^^)
9) Thanks :D

-----------------------------------------------------------

1) Any suggestions on making it neater (should I space out the functions more? better indentation?)
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
Mean MPI...
Don't say woot to ABC usage... many beginners don't get it work :S.
And at least you used methods... which is good. Though you might not directly understand how they work yet, which is to be honest no shame. It took me ages to understand em^^
 

Flare

Stops copies me!
Reaction score
662
Don't say woot to ABC usage... many beginners don't get it work :S.

I'm saying woot because the last few times I tried to use ABC, it was a pretty epic failure (I got loads of ingame errors, lag and crashes) so I'm just happy that I got it to work successfully :D

EDIT: Updated the first post with a little more information on the GUI/JASS versions and the technical details.

EDIT 2: Updated the first post again, cleaned up some stuff and added the JASS code, JASS implementation instructions and credits to the first post.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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!
    +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

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top