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

      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