• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] DDS attempt need opionions

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
Hey, I decided to learn how a DDS works so I took a look from the weeps DDS and and converted it to as much GUI as possible. So I want opionions on what you think should be changed/improved.


  • init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Custom script: if GetUnitAbilityLevel(GetEnumUnit(), 'Aloc') == 0 then
          • Custom script: set udg_GDDS_trigger [GetUnitUserData(GetEnumUnit())] = CreateTrigger()
          • Trigger - Add to GDDS_trigger[GDDS_integer] the event (Unit - (Picked unit) Takes damage)
          • Custom script: call TriggerAddCondition(udg_GDDS_trigger [GetUnitUserData(GetEnumUnit())], Condition(function GDDS_store))
          • Custom script: endif
  • init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Custom script: if GetUnitAbilityLevel(GetEnumUnit(), 'Aloc') == 0 then
          • Custom script: set udg_GDDS_trigger [GetUnitUserData(GetEnumUnit())] = CreateTrigger()
          • Trigger - Add to GDDS_trigger[GDDS_integer] the event (Unit - (Picked unit) Takes damage)
          • Custom script: call TriggerAddCondition(udg_GDDS_trigger [GetUnitUserData(GetEnumUnit())], Condition(function GDDS_store))
          • Custom script: endif
  • add
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Custom script: if GetUnitAbilityLevel(GetTriggerUnit(), 'Aloc') == 0 then
      • Custom script: set udg_GDDS_trigger [GetUnitUserData(GetTriggerUnit())] = CreateTrigger()
      • Trigger - Add to GDDS_trigger[GDDS_integer] the event (Unit - (Triggering unit) Takes damage)
      • Custom script: call TriggerAddCondition(udg_GDDS_trigger [GetUnitUserData(GetTriggerUnit())], Condition(function GDDS_store))
      • Custom script: endif
  • remove
    • Events
      • Unit - A unit leaves (Playable map area)
    • Conditions
    • Actions
      • Custom script: if GetUnitAbilityLevel(GetTriggerUnit(), 'Aloc') == 0 then
      • Custom script: call DestroyTrigger(udg_GDDS_trigger [GetUnitUserData(GetTriggerUnit())])
      • Custom script: endif
  • store
    • Events
    • Conditions
    • Actions
      • Custom script: endfunction
      • Custom script: function GDDS_store takes nothing returns boolean
      • Set GDDS_Damage = (Damage taken)
      • Set GDDS_Damaging_Unit = (Damage source)
      • Set GDDS_Damaged_Unit = (Triggering unit)
      • Set GDDS_event = 1.00
      • Set GDDS_event = 0.00
      • Custom script: return false
 
Status
Not open for further replies.
Top