1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Spread Shot Spell

Discussion in 'Requests' started by pandamanana, Jun 10, 2007.

  1. pandamanana

    pandamanana

    Joined:
    Dec 26, 2006
    Messages:
    328
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I need a spell where the caster shoots her guns, firing 5 shots that spread out in a cone shape that hit and deal damage to the first enemy they find (hit).

    Could someone make this spell for me using Quilboar's Missle Animation for the bullets?
     
  2. Pyritie

    Pyritie

    Joined:
    Nov 26, 2006
    Messages:
    11,356
    Resources:
    60
    Models:
    30
    Icons:
    9
    Packs:
    3
    Skins:
    12
    Tools:
    1
    Maps:
    1
    Tutorials:
    4
    Resources:
    60
    Well here's something similar that Elder Hong posted on Maps 'n' Mods. What this does is fires a dart that puts the first enemy it touches to sleep.

    • TranquilizerDartTrigger
      • Events: - unit start the effect of an ability
      • Conditions: - Ability being cast equals to Tranquilizer Dart
      • Actions:
        • Unit - Create a dart at (position of Triggering Unit) facing (Angle of Triggering Unit)
        • ------ Add Timer here ------
        • unit group -Add last created unit into MyDartUnitGroup
        • Trigger -Turn on DartMovementTrigger


    • DartMovementTrigger
      • Events
        • Time - Every 0.05 seconds of game time
      • Conditions
        • (MyDartUnitGroup is empty) Equal to False
      • Actions
        • Unit Group - Pick every unit in MyDartUnitGroup and do (Actions)
          • Loop - Actions
            • Custom script: local real dist = 30 //travel 30 distance per 0.05 second
            • Custom script: local real aoe = 100 //collision size
            • Custom script: local string order = "sleep" //order string
            • Custom script: local unit target = null //Do not touch starting this line
            • Custom script: local unit caster = GetEnumUnit()
            • Custom script: local real angle = GetUnitFacing( caster )
            • Custom script: local location p = GetUnitLoc(caster)
            • Custom script: local group g = CreateGroup()
            • Custom script: set g = GetUnitsInRangeOfLocAll( aoe , p)
            • Custom script: loop
            • Custom script: set target = FirstOfGroup(g)
            • Custom script: exitwhen target ==null
            • Custom script: call GroupRemoveUnit(g,target)
            • Custom script: if IsUnitEnemy(target, GetOwningPlayer(caster)) then
            • Custom script: call GroupRemoveUnit(udg_MyDartUnitGroup,caster)
            • Custom script: call GroupClear(g)
            • Custom script: call KillUnit( caster )
            • Unit - Create 1 Dummy Caster for (Owner of (Picked unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
            • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
            • Custom script: call IssueTargetOrderBJ( GetLastCreatedUnit() , order, target )
            • Custom script: call RemoveLocation( p )
            • Custom script: call DestroyGroup(g)
            • Custom script: return
            • Custom script: endif
            • Custom script: endloop
            • Custom script: call RemoveLocation( p )
            • Custom script: call DestroyGroup(g)
            • Custom script: call SetUnitPosition(caster, GetUnitX( caster ) + dist * Cos(angle * bj_DEGTORAD), GetUnitY( target ) + dist * Sin(angle * bj_DEGTORAD) )


    I know no JASS, so I can't really help you.
     
  3. pandamanana

    pandamanana

    Joined:
    Dec 26, 2006
    Messages:
    328
    Resources:
    1
    Maps:
    1
    Resources:
    1
    yeah. that really didn't help. but thanks for trying?? (I'm looking for a shotgun like spell where the all 5 bullets shoot out in a cone shape from the caster and damage anyone that they touch.)
     
  4. Pyritie

    Pyritie

    Joined:
    Nov 26, 2006
    Messages:
    11,356
    Resources:
    60
    Models:
    30
    Icons:
    9
    Packs:
    3
    Skins:
    12
    Tools:
    1
    Maps:
    1
    Tutorials:
    4
    Resources:
    60
    Could you do something similar to shockwave?
     
  5. pandamanana

    pandamanana

    Joined:
    Dec 26, 2006
    Messages:
    328
    Resources:
    1
    Maps:
    1
    Resources:
    1
    no. please stop trying to help me. your suggestions are useless.

    Could someone who knows what they are doing help me?
     
  6. Pyritie

    Pyritie

    Joined:
    Nov 26, 2006
    Messages:
    11,356
    Resources:
    60
    Models:
    30
    Icons:
    9
    Packs:
    3
    Skins:
    12
    Tools:
    1
    Maps:
    1
    Tutorials:
    4
    Resources:
    60
    Why are you being so mean? T_T