System Assist v 1.0

muzk

Member
Reaction score
3
Yup, another Assitance System.
I was looking for an Assistance System that don't use Forces or units groups, I didnt find so I created this one.

Requires:

- NewGen Editor
- AIDS
- TimerUtils
- Damage
- GetPlayerNameColored (it is just for displaying colored messages)


Pros
- Doesn't use groups or force, like others systems
- Easy to implement
- Easy to combine with others systems, like a killing streak one. You just have to go to the configuration zone and edit the event responces functions.

JASS:
//==================
//  Assist
//==================
// 
//
//  ABOUT:
//          Assist is an Assistance System which could handle multiple Heros/Units per player. It uses AIDS struct, 
//          so it's really easy to use. It doesn't uses force or unit groups, it was made using linked list idea.
//          By now, this system registers as an assist any damage greater than 0, and lasts for 'ASSIST_DAMAGE_INTERVAL' 
//          seconds. Also, you can use AssistSpellModule library to register these spells with no damage, 
//          e.g. slows, as an assyst.
//
//  IMPLEMENTATION:
//          Create a new trigger object called Assist, go to 'Edit -> Convert
//          to Custom Text', and replace everything that's there with this script.
//
//          Also, this library requires:
//                  - Damage  (<a href="http://www.thehelper.net/forums/showthread.php/131287-Damage" class="link link--internal">http://www.thehelper.net/forums/showthread.php/131287-Damage</a>)
//                  - TimerUtils (<a href="http://www.wc3c.net/showthread.php?t=101322" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://www.wc3c.net/showthread.php?t=101322</a>)
//                  - GetPlayerNameColored (http://www.wc3c.net/showthread.php?...spells that doesnt damages.
- v 1.0 : Release
 

Attachments

  • Assist.w3x
    61 KB · Views: 406

Laiev

Hey Listen!!
Reaction score
188
hmmm... this will bug with Status (for example), because Status use a dummy to cast all the spells, will register the dummy instead of the real caster |:
 

muzk

Member
Reaction score
3
Oh yeah, AssistSpellModule will "bug" with status, you have to do sth like this:
Code:
if Assist_isUnitRegistered(t) and IsUnitEnemy(t,who) and GetUnitTypeId(GetTriggerUnit())!=DUMMY__UNIT_ID then
Anyways, that is an optional module. You can use Assist[unit].registerPlayer(player) whenever you want
 

tooltiperror

Super Moderator
Reaction score
231
- Doesn't use groups or force, like others systems

Internally, groups are just lists/heaps/something of units. Remaking a list of units instead of a group is equal at best, and less efficient/speedy the rest of the time. And why should I use your system instead of an existent one?

And you should add links to the systems.
 

muzk

Member
Reaction score
3
I'm using it because I don't wanna use 1 player force for each unit registered, also, you cant just use an array cuz you will reach max instances.

You should use it cuz its very flexible, you can add your own actions in event response functions like increase the death/killer/asssist count for X player and actualice multiboards, give bounty's etc.
 

tooltiperror

Super Moderator
Reaction score
231
you cant just use an array cuz you will reach max
But the same limit is imposed on you by a linked list. If you want to do something else, you must become O(n).

hmmm... this will bug with Status (for example), because Status use a dummy to cast all the spells, will register the dummy instead of the real caster |:

Let's have a scenario. You create the spell Hurl Boulder with the hypothetical rawcode [ljass]'hurl'[/ljass]. The rawcode in Status for the stun spell is [ljass]'A500'[/ljass]. Your condition for casting hurl boulder would look like this:

JASS:
.   private function Conditions takes nothing returns boolean
        return (GetSpellAbilityId()==&#039;hurl&#039;)
    endfunction


It will not trigger off of for Status, because it's working off of [LJASS]'hurl'[/LJASS] not [LJASS]'A500'[/LJASS].

And you should still add in the links to the systems, preferably hot links.
 

muzk

Member
Reaction score
3
But the same limit is imposed on you by a linked list. If you want to do something else, you must become O(n).
What you meant with O(n)?
And you should still add in the links to the systems, preferably hot links.
Oh, I forgot, added ;)
 

tooltiperror

Super Moderator
Reaction score
231
1) The documentation is horribly ugly. It's a big turn off, I don't want to read that when I put it in my map. Here's a skeleton to give you an idea of what people like.

JASS:

//==================
//  Assist
//==================
//
//  ABOUT:
//
//  IMPLEMENTATION:
//
//  CREDITS:
//
//
// ~ ~ ~ ~~~~~~~
library Assist requires ...


That's just how I like to do it. You should make it how you like it, and it's not a requirement for approval, but it looks nice.

2) Your functions appear to be over documented. Assume people who are editing it know JASS.

JASS:

.   //@Assist_filter: use this filter to determine wich units do you wanna register using this system.
    // Registered units when die, it display a menssage to all players. This mensagge shows the killer players and players who assisted.
    // For example you can register only heroes.
    private function Assist_filter takes unit u returns boolean
        return IsUnitType(u,UNIT_TYPE_HERO)
    endfunction


->

JASS:

.   // Checks if a unit is a valid assisting unit
    private function Filter takes unit u returns boolean
        return IsUnitType(u,UNIT_TYPE_HERO)
    endfunction


I think they can figure it out. Again, optional.

3) You have a ton of spelling errors, about everywhere. It will behoove you to fix them.

Not any comments on the system core.
 

tooltiperror

Super Moderator
Reaction score
231
Another long time with no updates (and he even promised them!)

Graveyarded.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top