• 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.

Injury System

Status
Not open for further replies.
Level 1
Joined
Dec 6, 2006
Messages
72
UPDATED:v.1.02
Updates in v.1.02
-Dead Units do not spark
-Blood Hit trigger added in
-Optimized some of the code
-Added Poll Waits

-Made in [COMPLETE] JASS

UPDATED:v.1.01
-If a Unit If Mechanical the unit will spark and emit electricity
(thanks for that comment)

Injury System V.1.02

A simple injury system that displays a bleeding effect on a unit once it reaches less than 30% health (can be edited)

JASS:
UPDATED:
-If a Unit If Mechanical the unit will spark and emit electricity

---------Requirements----------
V.1.02

******To Implement This Into Your Map The Easy Way Just Copy The Whole Injury System Folder and Paste It Into Your Triggers*****

--Required Triggers:--

-Preload Trigger
-Pick Every Unit Trigger
-Show Blood Effect Trigger
-Remove Unit If Healed Trigger
-Blood on Dmg Trigger

------Required Script in Custom Header------
-Read Implementation Comment
______________________________________________
--Variables Used:--

Name:                                Type:            Array:            Size:
Human_BleedEffect             String               Yes                 4
Orc_BleedEffect                 String               Yes                 4
Undead_BleedEffect            String               Yes                 4
NightElves_BleedEffect        String               Yes                 4
BleedingGroup                   Unit Group          No                  --
cscache                          Game Cache        No                  --

______________________________________________

--Features:--
-Easily Editable by changing some strings for the blood and some small triggers
-Covers the 4 main races
-Should not lag if so preload all the effect strings
-Should not contain leaks
-Shows the blood on a 2 second
-Shows blood type for that specific race (Ex. Orcs will bleed orc blood not human)
-Shows different types of blood effects 4 for each race
-If a Unit If Mechanical the unit will spark and emit electricity
-Easily Editable for different races
-NOW features blood on dmg script...which creates blood depending on the race everytime a unit is damaged
______________________________________________
Ideal For:
Any-map
______________________________________________
Updates In Next Version:
-A Jass Script for this system (ex. call Injury_System (blah blah) )
-Make the whole system 1 Trigger

Credits 
              -Hero12341234 for the System
             -Emjlr3 for the DamDetect_Attacks System
             -Vexorian for the CS_Cache

JASS:
Implementation

Copy the Custom Header of this map

It includes

Vexorian's CS_Cache
          and
Emjlr3's Attack Detect System


First should be the cs_cache
under that the attack detect system

*****NOTE BEFORE SAVING YOUR MAP YOU MUST CREATE A VARIABLE CALLED cscache  (case sensitive, must all be lowercased) it is a game cache and has no array
*****NOT Following this rule MAY make your map CRASH

______________________________________________

--Total Variables Used:-- (this is including the Injury System)

Name:                                Type:            Array:           Size:
Human_BleedEffect           String            Yes                4
Orc_BleedEffect                 String            Yes                4
Undead_BleedEffect          String            Yes                4
NightElves_BleedEffect      String            Yes                4
BleedingGroup                  Unit Group       No                --
cscache                          Game Cache     No                --
______________________________________________

******To Implement This Into Your Map The Easy Way Just Copy The Whole Injury System Folder and Paste It Into Your Triggers*****

Other Wise...

--Required Triggers:--

-Preload Trigger
-Pick Every Unit Trigger
-Show Blood Effect Trigger
-Remove Unit If Healed Trigger
-Blood on Dmg Trigger

Get The Updated System Here: View attachment Injury System v1.02.w3x
 
Last edited by a moderator:
Level 32
Joined
Oct 23, 2006
Messages
5,291
Although the map performs flawlessly and seems to be a powerful and effective system, the tutorial itself has issues that make its approval impossible in its present state.

Become familiar with the General Tutorial Submitting Rules and Guidelines - Read Before Posting!
The content of the tutorial should be in the post. We won't accept attached .doc / html documents, nor images that have all the contents of the tutorial.

If you're using JASS in your tutorial, use the JASS tags.

All image files must be attached to your post. We don't wish to be dependent on other sites (To avoid situations in which the server on which the images have been saved falls, damaging the tutorial).
Authors MUST enter the contents of their tutorials in the vBuelletin format.

THW's JASS Specialists will analyze the code for validity and original content.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Very good, one of the better systems I have seen. The mechanical effect is great, same with the blood effect. No major flaws are noticed but one tiny flaw is really noticable, you did not nullify all your local handles and so they are leaking. Please update with setting all local handles you make, set to null at the end of the function or it might cause lag late game due to leakage. Anyway I see no reason why this tutorial should not be approved when it meets the tutorial rule format.
 
Level 1
Joined
Dec 6, 2006
Messages
72
Very good, one of the better systems I have seen. The mechanical effect is great, same with the blood effect. No major flaws are noticed but one tiny flaw is really noticable, you did not nullify all your local handles and so they are leaking. Please update with setting all local handles you make, set to null at the end of the function or it might cause lag late game due to leakage. Anyway I see no reason why this tutorial should not be approved when it meets the tutorial rule format.

Will..do...this will also help me to update stuff on the other sites :thumbs_up:

Although the map performs flawlessly and seems to be a powerful and effective system, the tutorial itself has issues that make its approval impossible in its present state.

Become familiar with the General Tutorial Submitting Rules and Guidelines - Read Before Posting!
Quote:
The content of the tutorial should be in the post. We won't accept attached .doc / html documents, nor images that have all the contents of the tutorial.

If you're using JASS in your tutorial, use the JASS tags.

All image files must be attached to your post. We don't wish to be dependent on other sites (To avoid situations in which the server on which the images have been saved falls, damaging the tutorial).
Authors MUST enter the contents of their tutorials in the vBuelletin format.

THW's JASS Specialists will analyze the code for validity and original content.

Very sorry..will fix this one up..so far I fixed up the Tree Revival System

This will be fixed hopefully in a couple days...at least before Saturday..if time life allows me to do this.
 
Level 2
Joined
May 6, 2007
Messages
17
Hi

Hi~Ricky

The idea of it sounds great. Only i wont ever find out unless you completely reorginise it. I cant understand a thing. It is more of a "heres how to do it" Than a tutorial. So if you manage to sort this out a lot more people would post good things
 
Status
Not open for further replies.
Top