• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Refresh v1.01

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
A simple system that allows a player to heal the mana and life of his units to 100% and reset all their abilities :)

Refresh
  • Refresh Configuration
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Ref_String = -refresh
      • Set Ref_Players = (All players)
  • Refresh Run
    • Events
      • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
      • Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
      • Player - Player 4 (Purple) types a chat message containing <Empty String> as A substring
      • Player - Player 5 (Yellow) types a chat message containing <Empty String> as A substring
      • Player - Player 6 (Orange) types a chat message containing <Empty String> as A substring
      • Player - Player 7 (Green) types a chat message containing <Empty String> as A substring
      • Player - Player 8 (Pink) types a chat message containing <Empty String> as A substring
      • Player - Player 9 (Gray) types a chat message containing <Empty String> as A substring
      • Player - Player 10 (Light Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 11 (Dark Green) types a chat message containing <Empty String> as A substring
      • Player - Player 12 (Brown) types a chat message containing <Empty String> as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to Ref_String
          • ((Triggering player) is in Ref_Players) Equal to True
        • Then - Actions
          • Set Ref_Group = (Units owned by (Triggering player))
          • Unit Group - Pick every unit in Ref_Group and do (Actions)
            • Loop - Actions
              • Unit - Set life of (Picked unit) to 100.00%
              • Unit - Set mana of (Picked unit) to 100.00%
              • Unit - Reset ability cooldowns for (Picked unit)
        • Else - Actions
      • Custom script: call DestroyGroup(udg_Ref_Group)

Keywords:
refresh, heal, full, life, mana, system, dota
Contents

Refresh (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. 22:25, 10th Dec 2012 Magtheridon96: I'm terribly sorry, but this is not a proper system because it lacks quality :/ Although not bad in terms of coding, it has no application whatsoever.

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

22:25, 10th Dec 2012
Magtheridon96: I'm terribly sorry, but this is not a proper system because it lacks quality :/
Although not bad in terms of coding, it has no application whatsoever.
 

BUP

BUP

Level 9
Joined
Sep 9, 2012
Messages
172
This a very very simple and bad idea....
Useful in using as a cheat...
You need to come up with more complex idea...

Sorry for the first line if it made myself rude

EDIT:It is refreshing all the units that is own by the player....you should refresh the owner's currently selected unit
  • Set Ref_Group = (Units within 10000000.00 of (Center of (Playable map area)) matching (((Matching unit) is selected by (Triggering player)) Equal to True))
 
Don't be like that guys.
He's just a beginner

Configurables
  • Init
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set String = -refresh
    • Set Player[1] = Player 1
    • Set Player[2] = Player 2
    • Set Player[3] = Player 3
    • Set Player[4] = Player 4
    • Set Player[5] = Player 5
    • Set Player[6] = Player 6
    • Set Player[7] = Player 7
    • Set Player[8] = Player 8
    • Set Player[9] = Player 9
    • Set Player[10] = Player 10
    • Set Player[11] = Player 11
    • Set Player[12] = Player 12
    • Trigger - Add to Refresh <gen> the event (Player - Player[1] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[2] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[3] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[4] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[5] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[6] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[7] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[8] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[9] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[10] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[11] types a chat message containing String as An exact match)
    • Trigger - Add to Refresh <gen> the event (Player - Player[12] types a chat message containing String as An exact match)
    • Set Mana_Percentage = 100.0
    • Set Life_Percentage = 100.0
  • Events
  • Conditions
  • Actions
    • Set Ref_Group = (Units owned by (Triggering player))
    • Unit Group - Pick every unit in Ref_Group and do (Actions)
      • Loop - Actions
        • Unit - Set life of (Picked unit) to Life_Percentage%
        • Unit - Set mana of (Picked unit) to Mana_Percentage%
        • Unit - Reset ability cooldowns for (Picked unit)
        • Custom script: call DestroyGroup(udg_Ref_Group)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
gorilla, you have graduated from School of Troll, now make me proud, oh wait, you already did.
On the system, yes we can be lenient towards new people that just started coding (especially system), but really guys, this is too simple to be a "system", this is more like a map-specific and 3-minutes create of a work.

You should find more aspiring ideas instead of this one, I admire you effort, but this one seems like it's such a waste of time.
 

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,887
Congratiolations, you know how to increase the size of a map, variables Ref_Players and Ref_String aren't needed, why you cache them into a variable when it's possible to do it directly without increasing the size of a map?
  • Refresh run
    • Events
      • Player - Player 1 (Red) types a chat message containing -refresh as An exact match
      • Player - Player 2 (Blue) types a chat message containing -refresh as An exact match
      • Player - Player 3 (Teal) types a chat message containing -refresh as An exact match
      • Player - Player 4 (Purple) types a chat message containing -refresh as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -refresh as An exact match
      • Player - Player 6 (Orange) types a chat message containing -refresh as An exact match
      • Player - Player 7 (Green) types a chat message containing -refresh as An exact match
      • Player - Player 8 (Pink) types a chat message containing -refresh as An exact match
      • Player - Player 9 (Gray) types a chat message containing -refresh as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -refresh as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -refresh as An exact match
      • Player - Player 12 (Brown) types a chat message containing -refresh as An exact match
    • Conditions
    • Actions
      • Set Ref_Group = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in Ref_Group and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to 100.00%
          • Unit - Set mana of (Picked unit) to 100.00%
          • Unit - Reset ability cooldowns for (Picked unit)
      • Custom script: call DestroyGroup(udg_Ref_Group)


Anyway, I dont see the point of this simple system, it can be done even in 1 min.
 
100/5!!!

What if I want the refresh to only work for a single unit or for only selected units?

also, I don't see the point of the second check as it will always be true... now if the purpose is that if the user changes the Ref player group, well then the user should delete the event for the players that aren't included so that you won't have extra events...

Actually I don't see the point of the whole if-then part...

other than that, hmmmm... I see no real use for this...
 
Top