Need help

Hot

New Member
Reaction score
9
I need help to make a Arrow System ( Like in Archers wars or Elunes arrow )
A link or anything would be helpfull and

i want it to be able to cast many at the same time is it called MUI?
 

Skippy

Active Member
Reaction score
39
I have this arrow system, but only for one arrow at the same time. I can write it here if u want and u can edit to whatever u want.
 

WilliamPa

Active Member
Reaction score
51
He needs an arrow system, which would move and arrow forwards(facing/custom angle), and when the arrow hits something, it will die and damage the target. Usual range is about 800-2000. Speed is about 6-12 range per 0.03 seconds. Also, i think he would want a system which can apply poisons and stuff when the arrow hits.


will write you something in the evening if nobody has made it by then, busy atm.
 

Hot

New Member
Reaction score
9
if u have time i would be very happy if u did it for me
the posion thing is not needed
 

WilliamPa

Active Member
Reaction score
51
Trigger:
  • ArrowSystemGUI
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • aO[(Integer A)] Equal to True
            • Then - Actions
              • Set temploc2 = (Position of u[(Integer A)])
              • Set temploc = (temploc2 offset by speed[(Integer A)] towards (Facing of u[(Integer A)]) degrees)
              • Custom script: call SetUnitX(udg_u[bj_forLoopAIndex], GetLocationX(udg_temploc))
              • Custom script: call SetUnitY(udg_u[bj_forLoopAIndex], GetLocationY(udg_temploc))
              • Set ticks[(Integer A)] = (ticks[(Integer A)] - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ticks[(Integer A)] Less than or equal to 0
                • Then - Actions
                  • Set aO[(Integer A)] = False
                • Else - Actions
              • Set tempugroup = (Units within radius[(Integer A)] of temploc matching ((Matching unit) Not equal to u[(Integer A)]))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in tempugroup) Greater than 0
                • Then - Actions
                  • Unit Group - Pick every unit in tempugroup and do (Actions)
                    • Loop - Actions
                      • Unit - Cause u[(Integer A)] to damage (Picked unit), dealing damage[(Integer A)] damage of attack type Pierce and damage type Normal
                  • Unit - Remove u[(Integer A)] from the game
                • Else - Actions
              • Custom script: call DestroyGroup(udg_tempugroup)
              • Custom script: call RemoveLocation(udg_temploc)
              • Custom script: call RemoveLocation(udg_temploc2)
            • Else - Actions

Trigger:
  • CastArrow
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set aM = (aM + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • aM Greater than 50
        • Then - Actions
          • Set aM = 1
        • Else - Actions
      • Set aO[aM] = True
      • Set damage[aM] = 100.00
      • Set radius[aM] = 30.00
      • Set speed[aM] = 8.00
      • Set ticks[aM] = 100
      • Set temploc = (Position of (Triggering unit))
      • Set temploc2 = (Target point of ability being cast)
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at temploc facing (Angle from temploc to temploc2) degrees
      • Set u[aM] = (Last created unit)
      • Custom script: call RemoveLocation(udg_temploc)
      • Custom script: call RemoveLocation(udg_temploc2)


My plans got cancelled <.< Here is the system. Demo map attached.
 

Attachments

  • arrowsystemthingy.w3x
    11.2 KB · Views: 152

WilliamPa

Active Member
Reaction score
51
Yes, it is MUI, can hold up to 50 arrows at a time.

E: If you edit it, it can hold up to 8192 arrows at a time.
 

Hot

New Member
Reaction score
9
Yes, it is MUI, can hold up to 50 arrows at a time.

E: If you edit it, it can hold up to 8192 arrows at a time.

well i dont think 8192 arrows are needed :thup:
it will probably be most 10-20 at one time
thx again
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
This should work with the old system; @Hot, if you are supposed to submit this spell somewhere, know that it might not be accepted. That is why Blizzard made this update of Hashtables in GUI, so that we avoid this inefficient triggering of indexes.
 
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