wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Samples
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 05-07-2006, 09:47 PM   #1
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default Assistance System v1.1

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: jpg AssistanceSystem.jpg (58.3 KB, 939 views)
Attached Files
File Type: w3x Vile'sAssistanceSystem(v1.1).w3x (46.8 KB, 616 views)
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER

Last edited by vile : 05-09-2006 at 09:54 PM.
vile is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 05-08-2006, 08:05 AM   #2
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

Okay, thank you, hope it works good.
__________________
Freakazoid is offline   Reply With Quote
Old 05-08-2006, 12:14 PM   #3
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

Useful. Approved :).
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 05-08-2006, 04:48 PM   #4
Chuckle_Brother
Oh for the sake of fudge
 
Chuckle_Brother's Avatar


Respected User
 
Join Date: Dec 2005
Posts: 782

Submissions (2)

Chuckle_Brother will become famous soon enough (53)Chuckle_Brother will become famous soon enough (53)

Send a message via ICQ to Chuckle_Brother Send a message via AIM to Chuckle_Brother Send a message via MSN to Chuckle_Brother Send a message via Yahoo to Chuckle_Brother
Default

Sounds fun, now I can go lazy style and not make my own.

GJ
__________________
"...you play a mean banjo"
Chuckle_Brother is offline   Reply With Quote
Old 05-08-2006, 05:03 PM   #5
nooK
n1nja
 
nooK's Avatar
 
Join Date: Dec 2005
Posts: 211

nooK will become famous soon enough (30)nooK will become famous soon enough (30)

Default

Very good
+Rep
nooK is offline   Reply With Quote
Old 05-08-2006, 07:28 PM   #6
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

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.
__________________
PipeDream is offline   Reply With Quote
Old 05-08-2006, 09:02 PM   #7
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default

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.
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER
vile is offline   Reply With Quote
Old 05-09-2006, 04:58 PM   #8
FatalError
User
 
Join Date: Mar 2006
Posts: 101

FatalError has little to show at this moment (8)

Default

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? ;)
FatalError is offline   Reply With Quote
Old 05-09-2006, 08:10 PM   #9
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

I think he designed this for AoM :), it's good. But it can be silly. I can just feed while someone else is killing,..
__________________
Freakazoid is offline   Reply With Quote
Old 05-09-2006, 09:03 PM   #10
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default

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.
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER

Last edited by vile : 05-09-2006 at 09:54 PM.
vile is offline   Reply With Quote
Old 05-10-2006, 10:48 AM   #11
Freakazoid
I love you all.
 
Freakazoid's Avatar
 
Join Date: May 2003
Posts: 1,915

Submissions (14)

Freakazoid is a jewel in the rough (159)Freakazoid is a jewel in the rough (159)

Default

No I mean, i hit the guy 1 time before he dies, and we split the bountey,...
__________________
Freakazoid is offline   Reply With Quote
Old 05-10-2006, 12:25 PM   #12
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default

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.
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER

Last edited by vile : 05-10-2006 at 12:32 PM.
vile is offline   Reply With Quote
Old 05-11-2006, 05:03 PM   #13
BertTheJasser
xyzi - our universe
 
BertTheJasser's Avatar
 
Join Date: May 2005
Posts: 742

Submissions (2)

BertTheJasser has a spectacular aura about (111)BertTheJasser has a spectacular aura about (111)BertTheJasser has a spectacular aura about (111)BertTheJasser has a spectacular aura about (111)

Default

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.
__________________
Note: Bye... I had a lot of fun here!
Special thanks to Vexorian who helped me learn jass, the real jass and always helped me when problems occured, I would call him somehow my mentor. Pipedream, who made amazing Grimoire and helped me acclerating my map (currently at 99% finished, no developement atm).

Vote for Linux Ports in general of Blizzard products: http://www.PetitionOnline.com/ibpfl/
BertTheJasser is offline   Reply With Quote
Old 05-11-2006, 05:40 PM   #14
blu_da_noob
Nonchalant
 
blu_da_noob's Avatar


Respected User
 
Join Date: Mar 2006
Posts: 1,933

Submissions (2)

blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)

[Quicksilver #2] - 2nd Place[Quicksilver#1] 1st place

Send a message via MSN to blu_da_noob
Default

An if/then/else for every combination of assisters from 1 to 12 seems horribly inefficient...
__________________
blu_da_noob is offline   Reply With Quote
Old 05-11-2006, 08:51 PM   #15
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default

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.
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER

Last edited by vile : 05-11-2006 at 08:52 PM.
vile is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 04:11 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services