Warcraft III: MapsModelsSkinsIconsSpellsToolsTutorials
WC3 JASS: Code SnippetsJASS and vJASS Spells and SystemsJass Tutorials
Chat @Discord

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - radamantus

Pages: [1]
1
Warcraft III Spells and Systems / Dummy Caster
« on: June 30, 2013, 07:48:09 AM »
Oh so you moved my resources :D
That's why I thought you deleted them lol

2
Warcraft III Spells and Systems / Dummy Caster
« on: June 27, 2013, 03:13:03 PM »
This is the Dummy Caster system,this allows you to use dummy to cast abilities based on your orders.
This system is good for stunning,nova,and destroy trees.
Doesnt support summonings and channeling.

To Import:
If you have any dummy,don't copy the dummy.
Copy the trigger and variables

3
Warcraft III Spells and Systems / Compressed Tavern v1.4
« on: June 27, 2013, 02:55:54 PM »
This system allows you to put a limitless number of heroes in just one tavern.
Example:a hero inside a tavern inside a tavern inside a tavern..............

To Import:
Make sure to create a tavern just like in the demo map.
Copy the variables and triggers

4
Warcraft III Spells and Systems / Custom Ability Source Cost v1.1
« on: June 27, 2013, 02:48:58 PM »
Categories: System, GUI
Rating: 4
Image/screenshot:
Warcraft III spell resource
« Created: June 10, 2017, 06:30:02 AM by moyack »
Allows you to use custom ability source cost.

To Import:
Copy the triggers and variables

Setup:
Trigger: Test 1744742026
   
           
  • CASC Setup
  • Events
  • Map initialization
  • Conditions
  • Actions
  • Custom script: set udg_CASC_Hash = InitHashtable()
  • -------- --------------------------- --------
  • -------- Determines the abilities and its required resource --------
  • -------- --------------------------- --------
  • Set CASC_Abil = Example 1
  • Set CASC_Gold = 100
  • Set CASC_Lumber = 75
  • Set CASC_Life = 0.00
  • Set CASC_Mana = 0.00
  • -------- --------------------------- --------
  • -------- Save --------
  • -------- --------------------------- --------
  • Trigger - Run CASC Save <gen> (ignoring conditions)
  • Set CASC_Abil = Example 2
  • Set CASC_Gold = 0
  • Set CASC_Lumber = 0
  • Set CASC_Life = 100.00
  • Set CASC_Mana = 75.00
  • -------- --------------------------- --------
  • -------- Save --------
  • -------- --------------------------- --------
  • Trigger - Run CASC Save <gen> (ignoring conditions)
           

Save
Trigger: Test 476798043
   
           
  • CASC Save
  • Events
  • Conditions
  • Actions
  • Custom script: call SaveInteger(udg_CASC_Hash,udg_CASC_Abil,1,udg_CASC_Gold)
  • Custom script: call SaveInteger(udg_CASC_Hash,udg_CASC_Abil,2,udg_CASC_Lumber)
  • Custom script: call SaveReal(udg_CASC_Hash,udg_CASC_Abil,3,udg_CASC_Life)
  • Custom script: call SaveReal(udg_CASC_Hash,udg_CASC_Abil,4,udg_CASC_Mana)
           

Cast
Trigger: Test 1005407197
   
           
  • CASC Cast
  • Events
  • Unit - A unit Begins casting an ability
  • Conditions
  • Actions
  • Custom script: set udg_CASC_TempAbil = GetSpellAbilityId()
  • Set CASC_Caster = (Triggering unit)
  • Set CASC_Player = (Triggering player)
  • -------- --------------------------- --------
  • -------- Load --------
  • -------- --------------------------- --------
  • Set CASC_LoadGold = (Load 1 of CASC_TempAbil from CASC_Hash)
  • Set CASC_LoadLumber = (Load 2 of CASC_TempAbil from CASC_Hash)
  • Set CASC_LoadLife = (Load 3 of CASC_TempAbil from CASC_Hash)
  • Set CASC_LoadMana = (Load 4 of CASC_TempAbil from CASC_Hash)
  • -------- --------------------------- --------
  • -------- Variables --------
  • -------- --------------------------- --------
  • Set CASC_CurrentGold = (CASC_Player Current gold)
  • Set CASC_CurrentLumber = (CASC_Player Current lumber)
  • Set CASC_CurrentLife = (Life of CASC_Caster)
  • Set CASC_CurrentMana = (Mana of CASC_Caster)
  • -------- --------------------------- --------
  • -------- Checking --------
  • -------- --------------------------- --------
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • And - All (Conditions) are true
  • Conditions
  • CASC_CurrentGold Greater than CASC_LoadGold
  • CASC_CurrentLumber Greater than CASC_LoadLumber
  • CASC_CurrentLife Greater than CASC_LoadLife
  • CASC_CurrentMana Greater than CASC_LoadMana
  • Then - Actions
  • Unit - Set life of CASC_Caster to (CASC_CurrentLife - CASC_LoadLife)
  • Unit - Set mana of CASC_Caster to (CASC_CurrentMana - CASC_LoadMana)
  • Player - Set CASC_Player Current gold to (CASC_CurrentGold - CASC_LoadGold)
  • Player - Set CASC_Player Current lumber to (CASC_CurrentLumber - CASC_LoadLumber)
  • Else - Actions
  • Unit - Order CASC_Caster to Stop
  • Set CASC_TempPlayer = (Player group(CASC_Player))
  • Game - Display to CASC_TempPlayer the text: |cffffcc00Not enoug...
  • Custom script: call DestroyForce(udg_CASC_TempPlayer)
           


Quote
Changelog
v1.1
-Changed event(due to quick casting)
-Removed ability remove and add.(if matched with my new event,the caster will be stuck up)

5
Warcraft III Spells and Systems / Knockback 2D
« on: June 25, 2013, 07:02:18 PM »
This is the knockback system.
This features the following:
-Easy configuration for the spells
-Bouncing effect if the path is not walkable
-Features friction and velocity
-Destroy Trees and MUI
-Lagless effects(if not abused)
-Booleans like allow collision

To use:
Apply the configuration of your spell in the setup trigger then run the save trigger.
To use the cast save actions run the Init Knockback action then it will automatically start the loop.
You may also change the SFX if you want.

The speed is the one hard to calculate,so i would suggest use this method so you would understand the speed per interval:
(((Speed/Maxtime)x(Loopx2)) - (((Speed/Maxtime)x(Loopx2))/MaxTime)x(LoopxLoop))

Thats the formula.

The example in the map is:
(((1000/2)x(0.03x2)) - (((1000/2)x(0.03x2))/2)x(0.03x0.03))))
So.
((500x0.06) - ((500 x 0.06)/2) x (0.0009))
(30 - ( 30/2) x 0.0009)
((30 - (15 x 0.0009))
((30 - 0.0135))
SpeedInterval = 29.9865

So the Speed Interval is 29.9865
if the time is large and the speed is slow,hence,the unit wont be moved.

To apply knockback effect,make sure to follow the examples of how they are put.


To Import:
Copy the main trigger and variables

6
Warcraft III Spells and Systems / HSS v1.3
« on: June 25, 2013, 05:29:22 AM »
A unique window full screen hero selection :D

To Import:
Copy the models and the doodads, also copy the triggers and variables and dummies.

Triggers

Trigger: Test 1780133740
   
           
  • HSS Setup
  •     Events
  •         Map initialization
  •     Conditions
  •     Actions
  •         Custom script:   set udg_HSS_Hash = InitHashtable()
  •         -------- ------------------------------------ --------
  •         -------- Determines all the information of the hero --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroType = Paladin
  •         Set HSS_Model = Hero(Paladin)
  •         Set HSS_Icon = (Icon) Paladin
  •         Set HSS_Info = Warrior Hero, exceptional at defense and augmenting nearby friendly troops. Can learn Holy Light, Divine Shield, Devotion Aura and Resurrection. |n|n|cffffcc00Attacks land units.|r
  •         Set HSS_Name = |cffffcc00Paladin
  •         -------- ------------------------------------ --------
  •         -------- Strength --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[1] = 22 + 2.70
  •         -------- ------------------------------------ --------
  •         -------- Agility --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[2] = 13 + 1.50
  •         -------- ------------------------------------ --------
  •         -------- Intelligence --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[3] = 17 + 1.80
  •         -------- ------------------------------------ --------
  •         -------- Trigger --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Trigger = HSS Info <gen>
  •         -------- ------------------------------------ --------
  •         -------- Save --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Button = Button 0012 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         Set HSS_Button = Button 0033 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         -------- ------------------------------------ --------
  •         -------- Determines all the information of the hero --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroType = Archmage
  •         Set HSS_Model = Hero(Archmage)
  •         Set HSS_Icon = (Icon) Archmage
  •         Set HSS_Info = Mystical Hero, adept at ranged assaults. Can learn Blizzard, Summon Water Elemental, Brilliance Aura and Mass Teleport. |n|n|cffffcc00Attacks land and air units.|r
  •         Set HSS_Name = |cffffcc00Archmage
  •         -------- ------------------------------------ --------
  •         -------- Strength --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[1] = 14 + 1.80
  •         -------- ------------------------------------ --------
  •         -------- Agility --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[2] = 17 + 1.00
  •         -------- ------------------------------------ --------
  •         -------- Intelligence --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[3] = 19 + 3.20
  •         -------- ------------------------------------ --------
  •         -------- Trigger --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Trigger = HSS Info <gen>
  •         -------- ------------------------------------ --------
  •         -------- Save --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Button = Button 0013 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         Set HSS_Button = Button 0034 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         -------- ------------------------------------ --------
  •         -------- Determines all the information of the hero --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroType = Mountain King
  •         Set HSS_Model = Hero(Mountain King)
  •         Set HSS_Icon = (Icon) Mountain King
  •         Set HSS_Info = Warrior Hero, adept at offensive combat and disrupting enemy troops. Can learn Storm Bolt, Thunder Clap, Bash and Avatar. |n|n|cffffcc00Attacks land units.|r
  •         Set HSS_Name = |cffffcc00Mountain King
  •         -------- ------------------------------------ --------
  •         -------- Strength --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[1] = 24 + 3.00
  •         -------- ------------------------------------ --------
  •         -------- Agility --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[2] = 11 + 1.50
  •         -------- ------------------------------------ --------
  •         -------- Intelligence --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[3] = 15 + 1.50
  •         -------- ------------------------------------ --------
  •         -------- Trigger --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Trigger = HSS Info <gen>
  •         -------- ------------------------------------ --------
  •         -------- Save --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Button = Button 0035 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         Set HSS_Button = Button 0014 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         -------- ------------------------------------ --------
  •         -------- Determines all the information of the hero --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroType = Blood Mage
  •         Set HSS_Model = Hero(Blood Mage)
  •         Set HSS_Icon = (Icon) Blood Mage
  •         Set HSS_Info = Mystical Hero, adept at controlling magic and ranged assaults. Can learn Flame Strike, Banish, Siphon Mana and Phoenix. |n|n|cffffcc00Attacks land and air units.|r
  •         Set HSS_Name = |cffffcc00Blood Mage
  •         -------- ------------------------------------ --------
  •         -------- Strength --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[1] = 18 + 2.00
  •         -------- ------------------------------------ --------
  •         -------- Agility --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[2] = 14 + 1.00
  •         -------- ------------------------------------ --------
  •         -------- Intelligence --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Attribute[3] = 19 + 3.00
  •         -------- ------------------------------------ --------
  •         -------- Trigger --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Trigger = HSS Info <gen>
  •         -------- ------------------------------------ --------
  •         -------- Save --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Button = Button 0015 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         Set HSS_Button = Button 0036 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Save <gen> (ignoring conditions)
  •         -------- ------------------------------------ --------
  •         -------- Main Buttons --------
  •         -------- ------------------------------------ --------
  •         -------- ------------------------------------ --------
  •         -------- Select Hero Button --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Trigger = HSS Create Hero <gen>
  •         Set HSS_Button = Button 0021 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Main Save <gen> (ignoring conditions)
  •         Set HSS_Button = Button 0042 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Main Save <gen> (ignoring conditions)
  •         -------- ------------------------------------ --------
  •         -------- Random Hero --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Trigger = HSS Random <gen>
  •         Set HSS_Button = Button 0020 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Main Save <gen> (ignoring conditions)
  •         Set HSS_Button = Button 0041 <gen>
  •         Custom script:   set udg_HSS_Key[1] = GetHandleId(udg_HSS_Button)
  •         Trigger - Run HSS Main Save <gen> (ignoring conditions)
  •         -------- ------------------------------------ --------
  •         -------- Cameras --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Camera[0] = Camera Debugger <gen>
  •         Set HSS_Camera[1] = Camera Player 1 <gen>
  •         Set HSS_Camera[2] = Camera Player 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Regions --------
  •         -------- ------------------------------------ --------
  •         -------- ------------------------------------ --------
  •         -------- Main --------
  •         -------- ------------------------------------ --------
  •         Set HSS_MainRegion[1] = Main 1 <gen>
  •         Set HSS_MainRegion[2] = Main 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Info --------
  •         -------- ------------------------------------ --------
  •         Set HSS_RegionInfo[1] = Hero Info 1 <gen>
  •         Set HSS_RegionInfo[2] = Hero Info 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Heroes --------
  •         -------- ------------------------------------ --------
  •         Set HSS_RegionHeroes[1] = Heroes 1 <gen>
  •         Set HSS_RegionHeroes[2] = Heroes 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Hero Model --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroModelRegion[1] = Hero 3D Model 1 <gen>
  •         Set HSS_HeroModelRegion[2] = Hero 3D Model 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Hero Icon --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroIconRegion[1] = Hero Icon 1 <gen>
  •         Set HSS_HeroIconRegion[2] = Hero Icon 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Hero Name --------
  •         -------- ------------------------------------ --------
  •         Set HSS_HeroNameRegion[1] = Hero Name 1 <gen>
  •         Set HSS_HeroNameRegion[2] = Hero Name 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Agility --------
  •         -------- ------------------------------------ --------
  •         Set HSS_AgiRegion[1] = Hero Agi 1  <gen>
  •         Set HSS_AgiRegion[2] = Hero Agi 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Strength --------
  •         -------- ------------------------------------ --------
  •         Set HSS_StrRegion[1] = Hero Str 1 <gen>
  •         Set HSS_StrRegion[2] = Hero Str 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Intelligence --------
  •         -------- ------------------------------------ --------
  •         Set HSS_IntRegion[1] = Hero Int 1  <gen>
  •         Set HSS_IntRegion[2] = Hero Int 2 <gen>
  •         -------- ------------------------------------ --------
  •         -------- Sets all Players --------
  •         -------- ------------------------------------ --------
  •         Set HSS_Player[1] = Player 1 (Red)
  •         Set HSS_Player[2] = Player 2 (Blue)
  •         -------- ------------------------------------ --------
  •         -------- You can add all of the players if you want --------
  •         -------- Adding the triggers and cameras for them --------
  •         -------- ------------------------------------ --------
  •         For each (Integer HSS_Integer) from 1 to 2, do (Actions)
  •             Loop - Actions
  •                 Custom script:   set udg_HSS_Key[2] = GetHandleId(udg_HSS_Player[udg_HSS_Integer])
  •                 -------- ------------------------------------ --------
  •                 -------- Creates a text which will be replaced by an info --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_TextLoc = (Center of HSS_RegionInfo[HSS_Integer])
  •                 Floating Text - Create floating text that reads     at HSS_TextLoc with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •                 Set HSS_InfoText[HSS_Integer] = (Last created floating text)
  •                 Custom script:   call RemoveLocation(udg_HSS_TextLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Creates a text which will be replaced by a hero name --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_TextLoc = (Center of HSS_HeroNameRegion[HSS_Integer])
  •                 Floating Text - Create floating text that reads     at HSS_TextLoc with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •                 Set HSS_NameText[HSS_Integer] = (Last created floating text)
  •                 Custom script:   call RemoveLocation(udg_HSS_TextLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Creates a text which will be replaced by the agility of the hero --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_TextLoc = (Center of HSS_AgiRegion[HSS_Integer])
  •                 Floating Text - Create floating text that reads     at HSS_TextLoc with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •                 Set HSS_Agi[HSS_Integer] = (Last created floating text)
  •                 Custom script:   call RemoveLocation(udg_HSS_TextLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Creates a text which will be replaced by the Strength of the hero --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_TextLoc = (Center of HSS_StrRegion[HSS_Integer])
  •                 Floating Text - Create floating text that reads     at HSS_TextLoc with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •                 Set HSS_Str[HSS_Integer] = (Last created floating text)
  •                 Custom script:   call RemoveLocation(udg_HSS_TextLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Creates a text which will be replaced by the Intelligence of the hero --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_TextLoc = (Center of HSS_IntRegion[HSS_Integer])
  •                 Floating Text - Create floating text that reads     at HSS_TextLoc with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •                 Set HSS_Int[HSS_Integer] = (Last created floating text)
  •                 Custom script:   call RemoveLocation(udg_HSS_TextLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Creates the visibility --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_VisibilityLoc = (Center of HSS_MainRegion[HSS_Integer])
  •                 Unit - Create 1 Selector for HSS_Player[HSS_Integer] at HSS_VisibilityLoc facing Default building facing degrees
  •                 Set HSS_Selector[HSS_Integer] = (Last created unit)
  •                 Custom script:   call RemoveLocation(udg_HSS_VisibilityLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Starts the camera --------
  •                 -------- ------------------------------------ --------
  •                 Player Group - Add HSS_Player[HSS_Integer] to HSS_CameraGroup
  •                 Trigger - Turn on HSS Camera <gen>
  •                 Trigger - Add to HSS Select <gen> the event (Player - HSS_Player[HSS_Integer] Selects a unit)
  •         -------- ------------------------------------ --------
  •         -------- Hides all buttons --------
  •         -------- ------------------------------------ --------
  •         For each (Integer HSS_Integer) from 1 to 2, do (Actions)
  •             Loop - Actions
  •                 Custom script:   set bj_wantDestroyGroup = true
  •                 Unit Group - Pick every unit in (Units in HSS_MainRegion[HSS_Integer]) and do (Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency)
           

Trigger: Test 1458471571
   
           
  • HSS Save
  •     Events
  •     Conditions
  •     Actions
  •         Custom script:   call SaveInteger(udg_HSS_Hash,udg_HSS_Key[1],1,udg_HSS_HeroType)
  •         Custom script:   call SaveInteger(udg_HSS_Hash,udg_HSS_Key[1],2,udg_HSS_Model)
  •         Custom script:   call SaveInteger(udg_HSS_Hash,udg_HSS_Key[1],3,udg_HSS_Icon)
  •         Hashtable - Save HSS_Info as 4 of HSS_Key[1] in HSS_Hash
  •         Hashtable - Save HSS_Attribute[1] as 5 of HSS_Key[1] in HSS_Hash
  •         Hashtable - Save HSS_Attribute[2] as 6 of HSS_Key[1] in HSS_Hash
  •         Hashtable - Save HSS_Attribute[3] as 7 of HSS_Key[1] in HSS_Hash
  •         Hashtable - Save Handle OfHSS_Trigger as 8 of HSS_Key[1] in HSS_Hash
  •         Hashtable - Save HSS_Name as 9 of HSS_Key[1] in HSS_Hash
           

Trigger: Test 559942418
   
           
  • HSS Main Save
  •     Events
  •     Conditions
  •     Actions
  •         Hashtable - Save Handle OfHSS_Trigger as 8 of HSS_Key[1] in HSS_Hash
           

Trigger: Test 1333208013
   
           
  • HSS Select
  •     Events
  •     Conditions
  •         (Unit-type of (Triggering unit)) Equal to Button
  •     Actions
  •         Set HSS_CurrentButton = (Triggering unit)
  •         Custom script:   set udg_HSS_Key[3] = GetHandleId(udg_HSS_CurrentButton)
  •         Set HSS_TempPlayer = (Triggering player)
  •         -------- ------------------------------------ --------
  •         -------- Starting Trigger --------
  •         -------- ------------------------------------ --------
  •         Set HSS_ID = (Player number of HSS_TempPlayer)
  •         Trigger - Turn off (This trigger)
  •         Selection - Clear selection for HSS_TempPlayer
  •         Set HSS_TempTrigger = (Load 8 of HSS_Key[3] in HSS_Hash)
  •         Trigger - Run HSS_TempTrigger (ignoring conditions)
  •         Trigger - Turn on (This trigger)
           

Trigger: Test 1977117635
   
           
  • HSS Info
  •     Events
  •     Conditions
  •     Actions
  •         -------- ------------------------------------ --------
  •         -------- Removing all models --------
  •         -------- ------------------------------------ --------
  •         Unit - Remove HSS_CurrentModel[HSS_ID] from the game
  •         Destructible - Remove HSS_CurrentIcon[HSS_ID]
  •         -------- ------------------------------------ --------
  •         -------- Load --------
  •         -------- ------------------------------------ --------
  •         Custom script:   set udg_HSS_TempHeroType = LoadInteger(udg_HSS_Hash,udg_HSS_Key[3],1)
  •         Custom script:   set udg_HSS_TempModel = LoadInteger(udg_HSS_Hash,udg_HSS_Key[3],2)
  •         Custom script:   set udg_HSS_TempIcon = LoadInteger(udg_HSS_Hash,udg_HSS_Key[3],3)
  •         Set HSS_TempInfo = (Load 4 of HSS_Key[3] from HSS_Hash)
  •         Set HSS_TempAttribute[1] = (Load 5 of HSS_Key[3] from HSS_Hash)
  •         Set HSS_TempAttribute[2] = (Load 6 of HSS_Key[3] from HSS_Hash)
  •         Set HSS_TempAttribute[3] = (Load 7 of HSS_Key[3] from HSS_Hash)
  •         Set HSS_TempName = (Load 9 of HSS_Key[3] from HSS_Hash)
  •         -------- ------------------------------------ --------
  •         -------- Creating Icon --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLoc = (Center of HSS_HeroIconRegion[HSS_ID])
  •         Destructible - Create a HSS_TempIcon at HSS_TempLoc facing 0.00 with scale 1.50 and variation 0
  •         Set HSS_CurrentIcon[HSS_ID] = (Last created destructible)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLoc)
  •         -------- ------------------------------------ --------
  •         -------- Creating Hero Model --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLoc = (Center of HSS_HeroModelRegion[HSS_ID])
  •         Unit - Create 1 HSS_TempModel for HSS_TempPlayer at HSS_TempLoc facing 180.00 degrees
  •         Set HSS_CurrentModel[HSS_ID] = (Last created unit)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLoc)
  •         -------- ------------------------------------ --------
  •         -------- Creating Info --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLocSys = (Center of HSS_RegionInfo[HSS_ID])
  •         Floating Text - Destroy HSS_InfoText[HSS_ID]
  •         Floating Text - Create floating text that reads HSS_TempInfo at HSS_TempLocSys with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •         Set HSS_InfoText[HSS_ID] = (Last created floating text)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLocSys)
  •         -------- ------------------------------------ --------
  •         -------- Creating Name Info --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLocSys = (Center of HSS_HeroNameRegion[HSS_ID])
  •         Floating Text - Destroy HSS_NameText[HSS_ID]
  •         Floating Text - Create floating text that reads HSS_TempName at HSS_TempLocSys with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •         Set HSS_NameText[HSS_ID] = (Last created floating text)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLocSys)
  •         -------- ------------------------------------ --------
  •         -------- Creates all attribute info --------
  •         -------- ------------------------------------ --------
  •         -------- ------------------------------------ --------
  •         -------- Str --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLocSys = (Center of HSS_StrRegion[HSS_ID])
  •         Floating Text - Destroy HSS_Str[HSS_ID]
  •         Floating Text - Create floating text that reads HSS_TempAttribute[1] at HSS_TempLocSys with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •         Set HSS_Str[HSS_ID] = (Last created floating text)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLocSys)
  •         -------- ------------------------------------ --------
  •         -------- Agi --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLocSys = (Center of HSS_AgiRegion[HSS_ID])
  •         Floating Text - Destroy HSS_Agi[HSS_ID]
  •         Floating Text - Create floating text that reads HSS_TempAttribute[2] at HSS_TempLocSys with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •         Set HSS_Agi[HSS_ID] = (Last created floating text)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLocSys)
  •         -------- ------------------------------------ --------
  •         -------- Int --------
  •         -------- ------------------------------------ --------
  •         Set HSS_TempLocSys = (Center of HSS_IntRegion[HSS_ID])
  •         Floating Text - Destroy HSS_Int[HSS_ID]
  •         Floating Text - Create floating text that reads HSS_TempAttribute[3] at HSS_TempLocSys with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
  •         Set HSS_Int[HSS_ID] = (Last created floating text)
  •         Custom script:   call RemoveLocation(udg_HSS_TempLocSys)
  •         -------- ------------------------------------ --------
  •         -------- Creates a current selected indicator --------
  •         -------- ------------------------------------ --------
  •         If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  •             If - Conditions
  •                 HSS_Indicator[HSS_ID] Equal to No unit
  •             Then - Actions
  •                 Set HSS_TempLoc = (Position of HSS_CurrentButton)
  •                 Unit - Create 1 Current Selected for HSS_TempPlayer at HSS_TempLoc facing Default building facing degrees
  •                 Set HSS_Indicator[HSS_ID] = (Last created unit)
  •                 Custom script:   call RemoveLocation(udg_HSS_TempLoc)
  •             Else - Actions
  •                 Set HSS_TempLoc = (Position of HSS_CurrentButton)
  •                 Unit - Move HSS_Indicator[HSS_ID] instantly to HSS_TempLoc
  •                 Custom script:   call RemoveLocation(udg_HSS_TempLoc)
  •         Set HSS_CurrentSelected[HSS_ID] = HSS_CurrentButton
  •         Set HSS_CurrentHeroType[HSS_ID] = HSS_TempHeroType
           

Trigger: Test 1400486040
   
           
  • HSS Create Hero
  •     Events
  •     Conditions
  •     Actions
  •         If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  •             If - Conditions
  •                 HSS_CurrentSelected[HSS_ID] Not equal to No unit
  •             Then - Actions
  •                 Set HSS_TempLoc = (HSS_TempPlayer start location)
  •                 Unit - Create 1 HSS_CurrentHeroType[HSS_ID] for HSS_TempPlayer at HSS_TempLoc facing Default building facing degrees
  •                 -------- ------------------------------------ --------
  •                 -------- Removing Units --------
  •                 -------- ------------------------------------ --------
  •                 Unit - Remove HSS_Selector[HSS_ID] from the game
  •                 Unit - Remove HSS_CurrentSelected[HSS_ID] from the game
  •                 -------- ------------------------------------ --------
  •                 -------- Removing all models --------
  •                 -------- ------------------------------------ --------
  •                 Unit - Remove HSS_CurrentModel[HSS_ID] from the game
  •                 Destructible - Remove HSS_CurrentIcon[HSS_ID]
  •                 -------- ------------------------------------ --------
  •                 -------- Restoring Camera --------
  •                 -------- ------------------------------------ --------
  •                 Player Group - Remove HSS_TempPlayer from HSS_CameraGroup
  •                 Camera - Apply HSS_Camera[0] for HSS_TempPlayer over 0.00 seconds
  •                 Camera - Pan camera for HSS_TempPlayer to HSS_TempLoc over 0.00 seconds
  •                 Selection - Select (Last created unit) for HSS_TempPlayer
  •                 Custom script:   call RemoveLocation(udg_HSS_TempLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Creating Disabled Icon --------
  •                 -------- ------------------------------------ --------
  •                 Set HSS_TempLoc = (Position of HSS_CurrentSelected[HSS_ID])
  •                 Destructible - Create a   Button (Disabled) at HSS_TempLoc facing 0.00 with scale 1.50 and variation 0
  •                 Custom script:   call RemoveLocation(udg_HSS_TempLoc)
  •                 -------- ------------------------------------ --------
  •                 -------- Destroying all text --------
  •                 -------- ------------------------------------ --------
  •                 Floating Text - Destroy HSS_InfoText[HSS_ID]
  •                 Floating Text - Destroy HSS_NameText[HSS_ID]
  •                 Floating Text - Destroy HSS_Agi[HSS_ID]
  •                 Floating Text - Destroy HSS_Int[HSS_ID]
  •                 Floating Text - Destroy HSS_Str[HSS_ID]
  •                 Set HSS_CurrentSelected[HSS_ID] = No unit
  •             Else - Actions
           

Trigger: Test 1695723721
   
           
  • HSS Random
  •     Events
  •     Conditions
  •     Actions
  •         Set HSS_RandomGroup[1] = (Units in HSS_MainRegion[HSS_ID] matching ((((Unit-type of (Matching unit)) Equal to Button) and ((Matching unit) Not equal to Button 0020 <gen>)) and ((((Matching unit) Not equal to Button 0021 <gen>) and ((Matching unit) Not equal to Button 0042 <gen>)) and
  •         If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  •             If - Conditions
  •                 (Number of units in HSS_RandomGroup[1]) Greater than 0
  •             Then - Actions
  •                 Set HSS_RandomGroup[2] = (Random 1 units from HSS_RandomGroup[1])
  •                 Set HSS_TempButton[1] = Button 0021 <gen>
  •                 Set HSS_TempButton[2] = Button 0042 <gen>
  •                 Unit Group - Pick every unit in HSS_RandomGroup[2] and do (Actions)
  •                     Loop - Actions
  •                         Selection - Select (Picked unit) for HSS_TempPlayer
  •                 Selection - Select HSS_TempButton[HSS_ID] for HSS_TempPlayer
  •                 Custom script:   call DestroyGroup(udg_HSS_RandomGroup[2])
  •             Else - Actions
  •         Custom script:   call DestroyGroup(udg_HSS_RandomGroup[1])
           

Trigger: Test 1336952343
   
           
  • HSS Camera
  •     Events
  •         Time - Every 0.03 seconds of game time
  •     Conditions
  •     Actions
  •         Player Group - Pick every player in HSS_CameraGroup and do (Actions)
  •             Loop - Actions
  •                 Set HSS_TempID = (Player number of (Picked player))
  •                 Camera - Apply HSS_Camera[HSS_TempID] for (Picked player) over 0.00 seconds
           

7
Warcraft III Spells and Systems / Maelstrom v3
« on: June 19, 2013, 08:47:52 AM »
Maelstrom

Conjures a gigantic tornado that sucks enemy units towards the tornado in a spiral effect.Units affected will take damage.The nearer,the larger the damage is.Also affects buildings(damage not suck).

To import:
just copy the triggers after clicking the Files>Preferences>Create unknown variables while passing the data so that you wont create variables.Copy also the dummy and the ability

8
Warcraft III Spells and Systems / Static Bomb v4
« on: June 19, 2013, 08:41:39 AM »
Static Bomb
Target point to summon a Static Bomb.Static Bomb strikes the units with a bolt dealing 15/30/45 damage and stuns it for 0.25 seconds who come near it within 500 radius.Every time it strikes a unit,the orb collects 10/15/20 damage and adds it to the strike damage and collects 10/15/20 AoE radius and adds it to its base radius.Once the orb dies,all units within 500 + the collected radius will receive the number of damage collected by the orb.Orbs last for 5/7.5/10 seconds.


To Import:
Copy the triggers,variables,and the dummy

9
Warcraft III Spells and Systems / Dark Possession
« on: June 19, 2013, 08:30:57 AM »
Dark Possession
Conjures an orb of compressed dark energies at targeted point,which possesses any allied unit and enemy unit who comes within its area.Possessed allied unit will gain 10/15/20 mana x the number of enemy units affected with possession.Possessed enemy units will receive 15/20/25 damage x the number of allied units of the orb affected with possession.The AoE radius of the orb starts with 500 and grows with the speed of 50 units per second.The orb lasts for 5/7.5/10 seconds

To Import:
Copy the triggers,variables,and the dummy

10
Warcraft III Spells and Systems / Kinetic Ring
« on: June 19, 2013, 08:25:54 AM »
Covers the caster in the ring of magnetic energies that pulls enemy units inside.If a unit inside the ring tries to escape,the unit will be pulled inside,dealing damage per second and keeping him inside the ring.If the unit is too close to the caster,the unit's mana will be burned per second.Lasts for a few seconds or until the caster is dead.
Level 1 - Deals 30 damage,burns 15 mana and lasts for 5 seconds.
Level 2 - Deals 40 damage,burns 30 mana and lasts for 7.5 seconds.
Level 3 - Deals 50 damage,burns 45 mana and lasts for 10 seconds.

To Import:
Copy the dummy,triggers and variables

11
Warcraft III Spells and Systems / Arcane Eruption
« on: June 19, 2013, 08:17:12 AM »
The Caster concentrates his power to summon a very powerful energy,which releases orbs of arcane energies every 0.20 scattered around him/her,dealing damage and mana burn when it drops to the ground.
|cffffcc00Level 1|r - Deals 50 damage and mana burn per orb,maximum of 500 radius,1-3 orbs,lasts for 5 seconds.
|cffffcc00Level 2|r - Deals 75 damage and mana burn per orb,maximum of 750 radius,2-4 orbs,lasts for 5 seconds.
|cffffcc00Level 3|r - Deals 100 damage and mana burn per orb,maximum of 1000 radius,3-5 orbs,lasts for 5 seconds.

To Import:
Copy the dummy,triggers,and variables.Also import the starfall mdx

12
Warcraft III Spells and Systems / Spell Steal
« on: June 19, 2013, 08:11:55 AM »
A greatly inspired spell from DotA.

to import:
copy the triggers and variables

13
Warcraft III Spells and Systems / Split Earth
« on: June 19, 2013, 08:07:53 AM »
The Caster blows the earth with massive force,creating a huge fissure which travels towards the targeted point.After 1 second,the part of the fissure explodes,stunning enemy units within 500 radius around it and releasing fragments of lava scattered around fissure which deals damage.
|cffffcc00Level 1|r - 2000 range,stuns for 2 seconds,releases 6 fragments per spot,deals 10 damage per fragment.
|cffffcc00Level 2|r - 2500 range,stuns for 2.5 seconds,releases 8 fragments per spot,deals 17.5 damage per fragment.
|cffffcc00Level 3|r - 3000 range,stuns for 3 seconds,releases 10 fragments per spot,deals 25 damage per fragment

To Import:
Copy the dummies,spell,triggers and variables

14
Warcraft III Spells and Systems / Dark Portal
« on: May 31, 2013, 07:18:11 AM »
Summons a portal at a targeted point which is linked to the river of souls.After 2 seconds,the portal will release a random number of souls every 0.20 secs scattered around the portal,dealing damage when it drops to the ground.Portal lasts for a few seconds.
|cffffcc00Level 1|r - 1-3 souls,deals 10 damage,lasts for 14 seconds.
|cffffcc00Level 2|r - 2-4 souls,deals 17.5 damage,lasts for 19 seconds.
|cffffcc00Level 3|r - 3-5 souls,deals 25 damage,lasts for 24 seconds.

To Import:
Copy the dummies and triggers and variables

15
Warcraft III Spells and Systems / Void Sphere
« on: May 29, 2013, 09:10:48 PM »
Summons a dark sphere of energy,covering an area of 600 radius.Units who come inside the sphere will be pulled towards the center,taking damage over time and freezing its health.If the unit reaches the center,the unit will be thrown outward the sphere in a distance of 600 units and will take damage.If a unit's life drops to 10%,the unit will explode to death.Lasts for a few seconds.
|cffffcc00Level 1|r - 10 DPS,100 Impact Damage,6 second duration.
|cffffcc00Level 2|r - 15 DPS,150 Impact Damage,9 second duration.
|cffffcc00Level 3|r - 20 DPS,200 Impact Damage,12 second duration.

Remove unit in this spells is strictly illegal to be used because it causes map crash

To Import:
Copy the dummy.mdx and import it to your map, then copy the triggers and variables and the dummy

16
Warcraft III Spells and Systems / GetUnitCollisionSize v1 2 (1)
« on: May 21, 2013, 05:16:02 AM »
This is the GetUnitCollisionSize system,this calculates the collision size of a unit.This calculates 100% correct collision size results.

This is good for:
  • Destroying trees
  • Slide systems
  • Knockback Systems
  • Pathability
  • Immolation based spells
  • Novas
  • Missiles
  • And more.

To use this,just make sure to set the unit to GUCS_U then run the system by using run trigger action,get the collision size by putting the GUCS_Size.Dont change the value or use another value for the size after the system has run.Use the GUCS_Size after or it hasnt been replaced yet.

To Import:
Copy the trigger and variables

Trigger: Test 1301091664
   
           
  • GetUnitCollisionSize
  •     Events
  •         Map initialization
  •     Conditions
  •     Actions
  •         Custom script:   call ExecuteFunc("InitGetUnitCollisionSize")
  •         Custom script:   endfunction
  •         -------- ------------------------------------------------ --------
  •         -------- This function calculates the size --------
  •         -------- This function is 100% perfect in calculating --------
  •         -------- ------------------------------------------------ --------
  •         Custom script:   function CheckUnitCollisionSize takes unit u returns integer
  •         -------- ------------------------------------------------ --------
  •         -------- max collision is based on tier 3 halls --------
  •         -------- ------------------------------------------------ --------
  •         Custom script:   local integer maxcollision = 172
  •         Custom script:   local integer a = 0
  •         Custom script:   local integer radius = maxcollision
  •         Custom script:   local real x = GetUnitX(u)
  •         Custom script:   local real y = GetUnitY(u)
  •         Custom script:   loop
  •         Custom script:   if IsUnitInRangeXY(u, x + radius, y, 0) then
  •         Custom script:   set a = radius
  •         Custom script:   else
  •         Custom script:   set maxcollision = radius
  •         Custom script:   endif
  •         Custom script:   exitwhen maxcollision - a <= 1
  •         Custom script:   set radius = (maxcollision + a) / 2
  •         Custom script:   endloop
  •         Custom script:   set radius = radius - maxcollision + a
  •         Custom script:   return radius
  •         Custom script:   endfunction
  •         -------- ------------------------------------------------ --------
  •         -------- This function gets the collision size which also capsulates them for further use --------
  •         -------- ------------------------------------------------ --------
  •         Custom script:   function GetUnitCollisionSize takes nothing returns nothing
  •         Custom script:   local integer id = GetUnitTypeId(udg_GUCS_U)
  •         Custom script:   if not HaveSavedInteger(udg_GUCS_Hash,id,0) == false then
  •         Custom script:   set udg_GUCS_Size = CheckUnitCollisionSize(udg_GUCS_U)
  •         Custom script:   call SaveInteger(udg_GUCS_Hash,id,udg_GUCS_Size,0)
  •         Custom script:   else
  •         Custom script:   set udg_GUCS_Size = LoadInteger(udg_GUCS_Hash,id,0)
  •         Custom script:   endif
  •         Custom script:   endfunction
  •         -------- ------------------------------------------------ --------
  •         -------- Reset --------
  •         -------- ------------------------------------------------ --------
  •         Custom script:   function InitGetUnitCollisionSize takes nothing returns nothing
  •         Custom script:   local trigger t = GetTriggeringTrigger()
  •         Custom script:   call TriggerClearActions(t)
  •         Custom script:   call TriggerAddAction(t,function GetUnitCollisionSize)
           

17
Moyackx
I would like to suggest a feature where you can add a tool that can be integrated into JNGP,similar to this tutorial : http://www.hiveworkshop.com/forums/tutorial-submission-283/integrating-tools-into-jngp-234157/ ,but it was hard to code it inside the lua script,so we need a faster way of doing this.

18
Members Introduction / Introduction of the spell coder,Radamantus
« on: November 14, 2012, 07:03:24 AM »
Hi,im Radamantus.I joined here because this site is interesting and my friends are here.
sonofjay,eubz,PurgeandFire and also moyackx know me.
Im one of the spell coders in Hive and hope ill give great contributions in this site.
Feel free to contact me.
Ill be in the Help Zones,Trigger & Scripts forums to help them in their codes.
And ill be active most in the spells section.
See you at the forums guys :D

Pages: [1]
Blizzard Modding Information Center Starcraft II Modding Information Center Wacraft III Modding Information Center WC3JASS.com - The JASS Vault Chronicles of Darkness - A Warcraft III mod Jetcraft - A Starcraft II mod Troll Smash - A Warcraft III Arena
  Mod DB - Change the Game Power of Corruption - A Warcraft III altered melee map Chaos Realm - The world of Game modders and wc3 addicts Follow us on Facebook!!