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. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

Please help with spawning spell

Discussion in 'World Editor Help Zone' started by Knightmawk, Jun 1, 2009.

  1. Knightmawk

    Knightmawk

    Joined:
    Apr 17, 2008
    Messages:
    44
    Resources:
    0
    Resources:
    0
    I want to make a spell, similar to dark arrow, that spawns a unit from a killed one. Except in this case I don't want to make it a spell that autocasts, I want to make it an ability that has a percentage of happening, like has a 15% chance to spawn unit x from killed unit.

    Is there a way I can do this without triggers? and if not, how do I do it with triggers?

    I know this same thread is up already but I accidently posted it as solved last time
     
  2. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,698
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Describe exactly what this spell must do?

    If its basically a target spell with % chance to spawn on death, then use triggers to deal the damage. If the damage was fatal (unit is dead after dealing damage) then do your random % statment (if random integer between 0 and 99 < 15) and if that passes then create a minion, if not then do nothing.

    That is if the spell you want deals a large sum of damage and on killing does that. If you mean the unit is cursed for X seconds with that curse to spawn a minion on death, then something else is needed.

    Like I said, you need to be more clear as dark arrow does not spawn a unit from a killed one, it spawns a unit from a unit that dies to it.
     
  3. dansaDisco

    dansaDisco

    Joined:
    Jun 25, 2008
    Messages:
    963
    Resources:
    15
    Models:
    5
    Icons:
    8
    Skins:
    2
    Resources:
    15
    Hai.

    I made this in a minute, I believe it's what you're asking for?
     

    Attached Files:

  4. Coolty44

    Coolty44

    Joined:
    Dec 10, 2008
    Messages:
    576
    Resources:
    1
    Spells:
    1
    Resources:
    1
    I think this is what you want, I didnt test it, but it should work. Just take the ability Sphere, change its values, give it some icons, and set the Buff field to Black Arrow. It should work, if it doesn't ,tell me and I'll figure out why.

    • Dark Arrow
      • Events
        • Unit - A unit Dies
      • Conditions
        • ((Triggering unit) has buff Black Arrow) Equal to True
      • Actions
        • Set ArrowChance = (Random integer number between 1 and 100)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ArrowChance Less than or equal to 15
          • Then - Actions
            • Set UnitLoc = (Position of (Attacked unit))
            • Unit - Create 1 Footman for (Owner of (Attacking unit)) at UnitLoc facing Default building facing degrees
            • Custom script: call RemoveLocation(udg_UnitLoc)
          • Else - Actions
        • Set ArrowChance = 0


    Hopefully it works, I'll keep the trigger around just incase.
     
  5. dansaDisco

    dansaDisco

    Joined:
    Jun 25, 2008
    Messages:
    963
    Resources:
    15
    Models:
    5
    Icons:
    8
    Skins:
    2
    Resources:
    15
    Lol, that's pretty much exactly my system, except mine has levels and special effects :p

    btw you don't have to reset ArrowChance.

    It's set to a new value the next time trigger runs Oo
     
  6. Coolty44

    Coolty44

    Joined:
    Dec 10, 2008
    Messages:
    576
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Meh, All I'd need to do is maybe change 2-3 lines at the most for level, and the arrow effects come from the ability its basd on, thank god for an ability that does nothing but effects
     
  7. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,698
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Dieing units do not have buffs.... So I have no clue how your triggers are meant to work...
     
  8. dansaDisco

    dansaDisco

    Joined:
    Jun 25, 2008
    Messages:
    963
    Resources:
    15
    Models:
    5
    Icons:
    8
    Skins:
    2
    Resources:
    15
    I think it's meant to be "killing unit", not triggering.

    Mine works. i tested it :p
     
  9. UreDe4D

    UreDe4D

    Joined:
    Nov 4, 2006
    Messages:
    1,181
    Resources:
    2
    Maps:
    2
    Resources:
    2
    if you use killing unit, i would base the buff off an aura (with target self only) with no effects, probably the easiest thing to do, although sphere should work too