HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Assistance System

05-07-2006, 09:47 PM#1
vile
A fully customizable Assistance System which displays a player's name if he aids you in your killing of another hero. Generally designed for an AOS, this system can work on any map. It supports gold bounty sharing, so that the bounty will be shared among players who assist you. A random bounty amount is also supported. The system can be easily configured, and I wish to see this in all the AOS maps out there.

NOTE: This assistance system only works on PRE PLACED UNITS! That means only heroes that were placed on the map initially and not created by a building or by a trigger.
If you want this to work on a created unit, just use the following:
Trigger:
Custom Script: call AssistanceSystem_Register(unit)

Updated (v1.1):
- Now fully supports up to 12 assisters
- Added script comments
- Removed unneeded nulls
Attached Images
File type: jpgAssistanceSystem.jpg (58.3 KB)
Attached Files
File type: w3xVile'sAssistanceSystem(v1.1).w3x (46.8 KB)
05-08-2006, 08:05 AM#2
Freakazoid
Okay, thank you, hope it works good.
05-08-2006, 12:14 PM#3
Blade.dk
Useful. Approved :).
05-08-2006, 04:48 PM#4
Chuckle_Brother
Sounds fun, now I can go lazy style and not make my own.

GJ
05-08-2006, 05:03 PM#5
nooK
Very good
+Rep
05-08-2006, 07:28 PM#6
PipeDream
Hopefully constructive criticism:
- Uncommented
- Limited to 6 assisters (12 players, fine). Don't believe in the loop statement?
- It's unnecessary to null local variables of type player or any other object you never deallocate.
- Why do you use functions like ConvertUnitEvent(52) instead of writing in the constant? It makes it hard to read and is either slower or no faster.
05-08-2006, 09:02 PM#7
vile
I'll improve those things when I get the chance to. It's limited to 6 assisters because you can't do anymore than 6v6.
05-09-2006, 04:58 PM#8
FatalError
Quote:
Originally Posted by vile
It's limited to 6 assisters because you can't do anymore than 6v6.
And what if my map is 9v3? ;)
05-09-2006, 08:10 PM#9
Freakazoid
I think he designed this for AoM :), it's good. But it can be silly. I can just feed while someone else is killing,..
05-09-2006, 09:03 PM#10
vile
As I said, i'll update it soon to support up to 12 players :)

You can "feed while someone else is killing" ?!

I see no point in what you said. When assisting a hero with his kill, you get bounty as well, I can't see any bad things that comes out of it.

Edit: Updated the system.
05-10-2006, 10:48 AM#11
Freakazoid
No I mean, i hit the guy 1 time before he dies, and we split the bountey,...
05-10-2006, 12:25 PM#12
vile
The bounty ONLY works if the target dies by either you or the assisters.
You should also turn off the normal bounty from the object editor if you have bounty set to on, on the system's options.

The bounty is given by:
The killer gets the full bounty, while the assisters gets it as splitted.
If you kill a hero and the bounty is set to a random of 100-200, and the outcome is 200, if you got 1 assister he will get 100 and you get 200. If you got 2 assisters you will get 200 and they will get 66 gold (200/3), and so on.

It works perfectly fine, since I have it on my map.
05-11-2006, 05:03 PM#13
BertTheJasser
Very good. +Rep
You could use a single timer instead of for every player one timer, you only have to chance how the system acts when flushing assistance. Just a suggestion. If you don't wanna change... oh well.
05-11-2006, 05:40 PM#14
blu_da_noob
An if/then/else for every combination of assisters from 1 to 12 seems horribly inefficient...
05-11-2006, 08:51 PM#15
vile
the if then elses are required since you cannot loop it, you have to check if the assisters exist and then show it properly.

if you have a better way to do it blu, be my guest.