1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. 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
  3. 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
  4. 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
  5. Dismiss Notice
  6. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  7. 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.

Custom Spheres

Submitted by Acutesharpness
This bundle is marked as awaiting update. A staff member has requested changes to it before it can be approved.
Custom Spheres



Uses custom sphere animation to render Blood Mage's spheres. They move differently every game, randomly too.

To alter the speed, go to trigger editor and change the numbers. (sphereangle in "render" trigger and spheredistance in "render" trigger)





  • triple sphere
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Set sphereangle[1] = 120.00
      • Set sphereangle[2] = 0.00
      • Set sphereangle[3] = 240.00
      • Set cp = (Position of Blood Mage 0000 <gen>)
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Set spheredistance[(Integer A)] = 100.00
          • Set cp2 = (cp offset by 100.00 towards sphereangle[(Integer A)] degrees)
          • Unit - Create 1 sphere for Player 1 (Red) at cp2 facing (Random angle) degrees
          • Custom script: call RemoveLocation(udg_cp2)
          • Set spheres[(Integer A)] = (Last created unit)
      • Custom script: call RemoveLocation(udg_cp)
      • Set mage = Blood Mage 0000 <gen>
      • Trigger - Turn on rendermovement <gen>


  • rendermovement
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set sphereangle[1] = (sphereangle[1] + (Random real number between 0.75 and 1.25))
      • Set sphereangle[2] = (sphereangle[2] + (Random real number between 0.75 and 1.25))
      • Set sphereangle[3] = (sphereangle[3] + (Random real number between 0.75 and 1.25))
      • Set cp = (Position of mage)
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Set spheredistance[(Integer A)] = (spheredistance[(Integer A)] + (Random real number between -0.50 and 0.50))
          • Set cp2 = (cp offset by spheredistance[(Integer A)] towards sphereangle[(Integer A)] degrees)
          • Unit - Move spheres[(Integer A)] instantly to cp2, facing (Random angle) degrees
          • Custom script: call RemoveLocation(udg_cp2)
      • Custom script: call RemoveLocation(udg_cp)
Previews
Contents

Custom Spheres (Map)

Reviews
KILLCIDE
Hey Destiny.Knight, before I can approve this system, you're going to do a bit of work. Needs Fixed Spells / Systems need to be MUI. Refer to these tutorials (Visualize: Dynamic Indexing / Hashtables and MUI) and the rest of approved submissions in...
  1. Mega-Lord123

    Mega-Lord123

    Joined:
    Mar 2, 2016
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Can I use it to add a sphere to another model, even if it isn't the Blood Mage?
     
  2. Quilnez

    Quilnez

    Joined:
    Oct 12, 2011
    Messages:
    3,272
    Resources:
    37
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    2
    JASS:
    4
    Resources:
    37
    Hello. It's a nice idea here. The native sphere (using attachment points) sometimes makes the sphere movements looks weird as the blood mage moves. It certainly can use some improvements.

    But at the moment, your system is not ready yet to replace the original one because:
    • It's not MUI.
    • It doesn't exactly mimic or improve the behavior of original sphere:
      • BM loses one sphere whenever he casts a spell
      • He launches it to the spell target point
      • The sphere respawns a moment after being used (with customizable delay)
    • The movement is simpler than the original one. At very least it should also takes vertical (x/y axis) angles into calculation.
    Also please, post the system triggers in this thread as it's required.

    If you need help in fixing/improving this spell, feel free to PM any spell reviewer/moderator.

    These threads can probably help:
    Good luck.
     
  3. Acutesharpness

    Acutesharpness

    Joined:
    Aug 14, 2007
    Messages:
    932
    Resources:
    3
    Maps:
    3
    Resources:
    3
    I had uploaded two previews to show GUI codes from the world editor. A brief explanation for the actions, it creates 3 spheres at the start positioned in a triangle shape. The orbs then circle around blood mage slightly randomly every 0.04 second.

    You can do that by changing the target unit, the orbs will surround the unit, this does not use animation but positions instead. In order to use a different orb, simply change the model at the object editor.
     
  4. KILLCIDE

    KILLCIDE

    Administrator

    Joined:
    Jul 22, 2015
    Messages:
    3,504
    Resources:
    20
    Models:
    2
    Icons:
    10
    Spells:
    7
    Tutorials:
    1
    Resources:
    20
    How to Post Your Trigger

    Your submission is still not MUI. Please refer back to Quilinez's post.
     
  5. Acutesharpness

    Acutesharpness

    Joined:
    Aug 14, 2007
    Messages:
    932
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Updated to show trigger codes in description.
     
  6. KILLCIDE

    KILLCIDE

    Administrator

    Joined:
    Jul 22, 2015
    Messages:
    3,504
    Resources:
    20
    Models:
    2
    Icons:
    10
    Spells:
    7
    Tutorials:
    1
    Resources:
    20
    Hey Destiny.Knight, before I can approve this system, you're going to do a bit of work.

    Needs Fixed

    • Spells / Systems need to be MUI. Refer to these tutorials (Visualize: Dynamic Indexing / Hashtables and MUI) and the rest of approved submissions in the section. You can also make a post in Triggers & Scripts if you need help
    • You are extremely lacking in configurablity. You should avoid having hard-coded values in your code like the dummy unit-type, or the periodic loop timer. As I mentioned above, I recommend looking at the rest of the approved submissions in the section to get an idea of what a config section should look like
    • Prefix your variables with something very specific / related to your system. For example, I personally would add the "CuSp_" prefix.

    Suggestions


    Status


    Awaiting Update