PooBucket
New Member
- Reaction score
- 12
Well, I have a few questions about some of the GUI functions. I also have a little problem in spells. Can anyone please explain to me some of the GUI functions and help me fix up the spells?
(A) Spells - Arcane Light: Jaina creates a light full of magical power, it moves towards 700 range from Jaina and then teleports her to there. Anything in it's path gets damaged. The problem I'm having is that she won't get teleported.
That's the main trigger, I have some others which work with it, but that's the main problem right now.
(B) Spells - Spiritual Walls: Jaina creates 4 spiritual walls around her in a square formation, any enemy units that go through the walls gets pushed back and dealt damage with some mana sapped. The problem is my angles, I'm no good with it, it creates a wall at the top and bottom of her, but the other 2 walls attach to each of the top and bottom walls on the right and left of it. Also, when a unit walks into it, the results only happen if they go through the middle of the wall, why not the other parts? (I think I know why, but I want any enemy unit which goes through ANY part of the wall gets hurt.)
There are also 3 other of those copies (for each separate wall).
Functions: (A) For Each (Integer A) from 1 - 10, do (Actions). I don't understand the 1 - 10 part. Also, what's the difference with Integer A and B and Integer Variable?
(B) What's a ubersplat?
(C) Is leaderboard the one like Dota's -di? And is multiboard the one where a list just gets created in the center of your screen and you have to click one of those things on it?
(D) How do you set flying height?
(E) Is rescue when you take ownership of a unit?
(F) Is the only way how to remove corpses by Unit - Remove Unit when a unit dies?
Thanks people!
Edit: Oh by the way, when I import something from outside, and I delete the file but I've already imported it in WE, will it still work? Cause my brother getting capped >.<
(A) Spells - Arcane Light: Jaina creates a light full of magical power, it moves towards 700 range from Jaina and then teleports her to there. Anything in it's path gets damaged. The problem I'm having is that she won't get teleported.
Code:
Arcane Light
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Arcane Light
Actions
Set Arcane_Light_Caster = (Casting unit)
Set Arcane_Light = (Position of Arcane_Light_Caster)
Unit - Create 1 Arcane Light for (Owner of Arcane_Light_Caster) at Arcane_Light facing Default building facing degrees
Set Light = (Last created unit)
Set Light_Pos = (Position of Light)
Trigger - Add to Damage Light <gen> the event (Unit - A unit comes within 80.00 of Light)
Unit - Order Light to Move To (Arcane_Light offset by 700.00 towards (Facing of Arcane_Light_Caster) degrees)
Wait until ((Distance between Light_Pos and Arcane_Light) Greater than or equal to 700.00), checking every 0.10 seconds
Unit - Move Arcane_Light_Caster instantly to Light_Pos
Unit - Remove Light from the game
Special Effect - Create a special effect attached to the origin of Arcane_Light_Caster using Objects\Spawnmodels\NightElf\NEDeathSmall\NEDeathSmall.mdl
Special Effect - Destroy (Last created special effect)
Set Arcane_Light_Caster = No unit
Set Light = No unit
Custom script: call RemoveLocation (udg_Arcane_Light)
Custom script: call RemoveLocation (udg_Light_Pos)
That's the main trigger, I have some others which work with it, but that's the main problem right now.
(B) Spells - Spiritual Walls: Jaina creates 4 spiritual walls around her in a square formation, any enemy units that go through the walls gets pushed back and dealt damage with some mana sapped. The problem is my angles, I'm no good with it, it creates a wall at the top and bottom of her, but the other 2 walls attach to each of the top and bottom walls on the right and left of it. Also, when a unit walks into it, the results only happen if they go through the middle of the wall, why not the other parts? (I think I know why, but I want any enemy unit which goes through ANY part of the wall gets hurt.)
Code:
[Spiritual Walls
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spiritual Walls
Actions
Set Spirit_Caster = (Casting unit)
Set Spirit = (Position of Spirit_Caster)
Set Spiritual_Wall[1] = (Spirit offset by 600.00 towards 0.00 degrees)
Unit - Create 1 Spiritual Wall for (Owner of Spirit_Caster) at Spiritual_Wall[1] facing Default building facing degrees
Set Walls[1] = (Last created unit)
Custom script: call RemoveLocation (udg_Spiritual_Wall[1])
Trigger - Add to Trigger Walls 1 <gen> the event (Unit - A unit comes within 80.00 of Walls[1])
If ((Level of Power Tome for Spirit_Caster) Equal to 1) then do (Unit - Add a 15.00 second Generic expiration timer to Walls[1]) else do (Unit - Add a 10.00 second Generic expiration timer to Walls[1])
Set Spiritual_Wall[2] = (Spirit offset by 600.00 towards 90.00 degrees)
Unit - Create 1 Spiritual Wall for (Owner of Spirit_Caster) at Spiritual_Wall[2] facing Default building facing degrees
Set Walls[2] = (Last created unit)
Custom script: call RemoveLocation (udg_Spiritual_Wall[2])
Trigger - Add to Trigger Walls 2 <gen> the event (Unit - A unit comes within 80.00 of Walls[2])
If ((Level of Power Tome for Spirit_Caster) Equal to 1) then do (Unit - Add a 15.00 second Generic expiration timer to Walls[2]) else do (Unit - Add a 10.00 second Generic expiration timer to Walls[2])
Set Spiritual_Wall[3] = (Spirit offset by 600.00 towards 180.00 degrees)
Unit - Create 1 Spiritual Wall for (Owner of Spirit_Caster) at Spiritual_Wall[3] facing Default building facing degrees
Set Walls[3] = (Last created unit)
Custom script: call RemoveLocation (udg_Spiritual_Wall[3])
Trigger - Add to Trigger Walls 3 <gen> the event (Unit - A unit comes within 80.00 of Walls[3])
If ((Level of Power Tome for Spirit_Caster) Equal to 1) then do (Unit - Add a 15.00 second Generic expiration timer to Walls[3]) else do (Unit - Add a 10.00 second Generic expiration timer to Walls[3])
Set Spiritual_Wall[4] = (Spirit offset by 600.00 towards 270.00 degrees)
Unit - Create 1 Spiritual Wall for (Owner of Spirit_Caster) at Spiritual_Wall[4] facing Default building facing degrees
Set Walls[4] = (Last created unit)
Custom script: call RemoveLocation (udg_Spiritual_Wall[4])
Trigger - Add to Trigger Walls 4 <gen> the event (Unit - A unit comes within 80.00 of Walls[4])
If ((Level of Power Tome for Spirit_Caster) Equal to 1) then do (Unit - Add a 15.00 second Generic expiration timer to Walls[4]) else do (Unit - Add a 10.00 second Generic expiration timer to Walls[4])]
Code:
Trigger Walls 1
Events
Conditions
((Triggering unit) belongs to an ally of (Owner of Spirit_Caster)) Equal to False
Actions
Set Pushed_Wall = ((Position of (Triggering unit)) offset by (150.00 + (50.00 x (Real((Level of Spiritual Walls for Spirit_Caster))))) towards (Facing of (Triggering unit)) degrees)
Unit - Cause Spirit_Caster to damage (Triggering unit), dealing (20.00 + (10.00 x (Real((Level of Spiritual Walls for Spirit_Caster))))) damage of attack type Spells and damage type Normal
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - (15.00 + (5.00 x (Real((Level of Spiritual Walls for Spirit_Caster))))))
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\Feedback\ArcaneTowerAttack.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move (Triggering unit) instantly to Pushed_Wall
Custom script: call RemoveLocation (udg_Pushed_Wall)[/SPOILER]
There are also 3 other of those copies (for each separate wall).
Functions: (A) For Each (Integer A) from 1 - 10, do (Actions). I don't understand the 1 - 10 part. Also, what's the difference with Integer A and B and Integer Variable?
(B) What's a ubersplat?
(C) Is leaderboard the one like Dota's -di? And is multiboard the one where a list just gets created in the center of your screen and you have to click one of those things on it?
(D) How do you set flying height?
(E) Is rescue when you take ownership of a unit?
(F) Is the only way how to remove corpses by Unit - Remove Unit when a unit dies?
Thanks people!
Edit: Oh by the way, when I import something from outside, and I delete the file but I've already imported it in WE, will it still work? Cause my brother getting capped >.<