Template CST - Coded Summoning Template

duyen

New Member
Reaction score
214
Basically, this lets you summon units in abilities very simply and very easily. Your probably saying to yourself ROFL, this is a riot I could just use Summon Water Elemental. That is true, for simple spells, but here are some things you couldn't do with any object editor summon spell.




-Randomness: You could give the units random ability's summon random units etc.

-Upgrades: If you have researchable upgrades to make your abilities stronger, or an ability that makes all your other abilities stronger.

-Buffs: You could make it so once the units are summoned they have Bloodlust or some other buff, cast upon them for some time.

This list can go on and on...


This is:

-MUI

-Leakless

-Easy to Import


Now for the code:
Code:
Summon Template
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Summon 
    Actions
        Set Unit_Type = Footman
        -------- The type of unit you want to summon --------
        Set Unit_Number = (Level of Summon  for (Triggering unit))
        -------- The number of units your spell summons --------
        Set Unit_Time = 15.00
        -------- How long the units last --------
        Set Summon_Point = (Position of (Triggering unit))
        For each (Integer A) from 1 to Unit_Number, do (Actions)
            Loop - Actions
                Unit - Create 1 Unit_Type for (Owner of (Triggering unit)) at Summon_Point facing (Facing of (Triggering unit)) degrees
                -------- Add anything special here such as unit bonuses, damage bonuses ability add-ons, etc. --------
                Unit - Add a Unit_Time second Generic expiration timer to (Last created unit)
        Custom script:   call RemoveLocation(udg_Summon_Point)

Because I used Integer A you can do anything, even making specific units different.

To wrap it all up, this is basically better then feral spirit or whatever because of it's flexibility.
 

Attachments

  • SummoningTemplate.w3x
    55.3 KB · Views: 225

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Why don't you make it JASS so you won't need to copy the code every time you need it. With a line like call Summon(unit, unitID, location, duration, extraabilityID) it will be much easier in my opinion.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
JASS:
library SummonTemplate

function Summon takes integer unitID,player Owner,integer HowManyUnit, location Loc, real Duration,integer ExtraAbility1, integer ExtraAbility2, integer ExtraAbility3 returns nothing
local unit u 
local integer i = 0

loop
exitwhen i>HowManyUnit
    set u = CreateUnitAtLoc(Owner,unitID,Loc,270) 
    
        if ExtraAbility1 != 0 then
            call UnitAddAbility(u,ExtraAbility1)
        endif
        
        if ExtraAbility2 != 0 then
            call UnitAddAbility(u,ExtraAbility2)
        endif
        
        if ExtraAbility3 != 0 then
            call UnitAddAbility(u,ExtraAbility3)
        endif
    
    call UnitApplyTimedLife(u,'BTLF',Duration)
    set i = i +1
endloop


endlibrary

This should be what cr4xzZz want.

It does everything the GUI script at top does, but it is hard to modify. GUI-er can easily add action in the GUI script on top but not in this Jass Script.
 

duyen

New Member
Reaction score
214
The only problem with that, is GUI-ers can't modify it easily like you can with my spell, and then they mineaswell base theres off Feral Spirit.
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
I fail to see the difference between this and Dark Portal.
 

duyen

New Member
Reaction score
214
Ah, but can you still, say if you get to a certain point, modify the units summoned? Or do a quest which will upgrade it?
 

Hero

─║╣ero─
Reaction score
250
Ah, but can you still, say if you get to a certain point, modify the units summoned? Or do a quest which will upgrade it?

Alrite well you have proved your point stop the useless fighting you two.


The point of this is to summon units and be able to customize them, which is what it does. Now all you need is a jass version.

If you want you can also create a simple AI for the summon like Vexorian did. But you can make it more advanced and customizable. And yes Vexorian's AI Summon AI system is simple and can be more complex.

I will download this map and rate it after my computer De-fragments.

Dark Portal is nice and all but this can be far more powerful if developed completely.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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