Aura system - GUI MUI

User avatar
Enalias
Site Admin
Site Admin
Posts: 200
Joined: Sat Sep 15, 2018 1:57 pm
Reputation: 9
Location: Florida, U.S.A.
Website: http://chaosrealm.co/memberlist.php?mod ... rofile&u=2
Discord: https://discord.gg/BUEZkef
Twitch: https://www.twitch.tv/enalias
Contact:
United States of America

Aura system - GUI MUI

#1

Post by Enalias » Mon Nov 05, 2018 11:54 am

You might be thinking what is this?
Simply to say it's an easy to way to create a custom aura :)
You can create things such as Aura of strength, Aura of intelligence, Aura of Bash, Aura of Kamehameha, Aura of Aura which gives aura units auras if they are not aura spreading aura to aura to aura to MarioDizzy

This aura allows you to detect health changes and then deal a little damage over time.
Combined with a damage detecting system you can check when damage is dealt to a unit allowing the units to take damage :)
Spoiler
Show
[gui]Aura loop values are edited here
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in AP_group and do (Actions)
Loop - Actions
Set AP_unit = (Picked unit)
Set AP_point = (Position of AP_unit)
Set AP_integer2 = (Level of Aura of derpity for AP_unit)
-------- Detects wheter the target units have the buff --------
Set AP_group2 = (Units within 1000.00 of AP_point matching ((((Matching unit) belongs to an ally of (Owner of AP_unit)) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) has buff Devotion Aura) Equal to True))))
Unit Group - Pick every unit in AP_group2 and do (Actions)
Loop - Actions
Set AP_unit2 = (Picked unit)
Custom script: set udg_AP_handle = GetHandleId(udg_AP_unit2)
-------- The health of the units --------
Set AP_health = (Life of AP_unit2)
-------- A counter checking when it is time to damage, as it runs every 0,01 of a second . --------
Set AP_counter = ((Load (Key counter) of AP_handle from Hashtable) + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AP_counter Less than 100
Then - Actions
Else - Actions
-------- Reset counter and damage --------
Set AP_counter = 0
Unit - Cause AP_unit to damage AP_unit2, dealing ((Max life of AP_unit2) x (0.01 x (Real(AP_integer2)))) damage of attack type Spells and damage type Normal
Hashtable - Save AP_counter as (Key counter) of AP_handle in (Last created hashtable)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AP_unit2 is in AP_group3) Equal to False
Then - Actions
Unit Group - Add AP_unit2 to AP_group3
Else - Actions
Set AP_health = (Load (Key health) of AP_handle from Hashtable)
-------- Detecting if it's going to kill the units --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AP_health Less than or equal to 0.99
Then - Actions
Unit - Cause AP_unit to damage AP_unit2, dealing 1.00 damage of attack type Spells and damage type Normal
Else - Actions
Unit - Set life of AP_unit2 to AP_health
Hashtable - Save AP_health as (Key health) of AP_handle in Hashtable
Custom script: call DestroyGroup(udg_AP_group2)
-------- If a unit is stil considered under the effect of the aura, but is nolonger in range --------
Set AP_group2 = (Units within 20000.00 of AP_point matching ((((Matching unit) belongs to an ally of (Owner of AP_unit)) Equal to False) and ((((Matching unit) is in AP_group3) Equal to True) and (((Matching unit) has buff Devotion Aura) Equal to False))))
Unit Group - Pick every unit in AP_group2 and do (Actions)
Loop - Actions
Set AP_unit2 = (Picked unit)
Custom script: set udg_AP_handle = GetHandleId(udg_AP_unit2)
Hashtable - Clear all child hashtables of child AP_handle in Hashtable
Unit Group - Remove AP_unit2 from AP_group3
Custom script: call DestroyGroup(udg_AP_group2)
Custom script: call RemoveLocation(udg_AP_point)
[/gui]
What you need for this to function:
Spoiler
Show
What you need for the system to work
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in AP_group and do (Actions)
Loop - Actions
Set AP_unit = (Picked unit)
Set AP_point = (Position of AP_unit)
-------- Level of aura for caster --------
Set AP_integer2 = (Level of Aura of derpity for AP_unit)
-------- Detects wheter the target units have the buff --------
Set AP_group2 = (Units within 1000.00 of AP_point matching ((((Matching unit) belongs to an ally of (Owner of AP_unit)) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) has buff Devotion Aura) Equal to True))))
Unit Group - Pick every unit in AP_group2 and do (Actions)
Loop - Actions
Set AP_unit2 = (Picked unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AP_unit2 is in AP_group3) Equal to False
Then - Actions
Unit Group - Add AP_unit2 to AP_group3
Else - Actions
Custom script: call DestroyGroup(udg_AP_group2)
-------- If a unit is stil considered under the effect of the aura, but is nolonger in range --------
Set AP_group2 = (Units within 20000.00 of AP_point matching ((((Matching unit) belongs to an ally of (Owner of AP_unit)) Equal to False) and ((((Matching unit) is in AP_group3) Equal to True) and (((Matching unit) has buff Devotion Aura) Equal to False))))
Unit Group - Pick every unit in AP_group2 and do (Actions)
Loop - Actions
Set AP_unit2 = (Picked unit)
-------- Removing unit form unitgroup --------
Unit Group - Remove AP_unit2 from AP_group3
Custom script: call DestroyGroup(udg_AP_group2)
Custom script: call RemoveLocation(udg_AP_point)
Credits: Baaabuuu
You do not have the required permissions to view the files attached to this post.

Return to “Systems”

×