HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Useful System? Y/N?

03-06-2009, 03:38 AM#1
Blackroot
Well I'm a little confused at something I made just a moment ago. It started out fine and dandy sure; but I feel it came out a bit... pointless?

All it does it set up a way to allow you avoid making any triggers for when the spell fires; and instead handles that itself. (1 trigger for every spellcast.) It also makes constructing a spells initializer faster, too.

Anyways; any comments reguarding it?

Expand JASS:
03-06-2009, 04:12 AM#2
xombie
Hm, first comment.

Quote:
Originally Posted by Blackroot
Collapse JASS:
        constant playerunitevent EVENT_EFFECT = EVENT_PLAYER_UNIT_SPELL_EFFECT
        constant playerunitevent EVENT_END = EVENT_PLAYER_UNIT_SPELL_ENDCAST
        constant playerunitevent EVENT_FINISH = EVENT_PLAYER_UNIT_SPELL_FINISH
        constant playerunitevent EVENT_CAST = EVENT_PLAYER_UNIT_SPELL_CAST
        constant playerunitevent EVENT_CHANNEL = EVENT_PLAYER_UNIT_SPELL_CHANNEL
        constant playerunitevent EVENT_LEARN = EVENT_PLAYER_HERO_SKILL

To be honest this is just a waste of allocated memory, just use the blizzard constants for the system. Who cares if they take a little bit longer to type lol.
03-06-2009, 04:31 AM#3
Blackroot
Quote:
Originally Posted by xombie
Hm, first comment.



To be honest this is just a waste of allocated memory, just use the blizzard constants for the system. Who cares if they take a little bit longer to type lol.

Remember that constants are inlined by vjass; it saves some time, no?
03-06-2009, 04:52 AM#4
azlier
So you made BJ's... for constants?
03-06-2009, 04:59 AM#5
DioD
Inline is lame...

Use common.j data
03-06-2009, 06:51 AM#6
Jazradel
Isn't there already something like this in xe/caster system?
03-06-2009, 09:24 AM#7
DioD
yes ofc, but this system use "other" methods
03-06-2009, 09:40 AM#8
akolyt0r
Collapse JASS:
        call TriggerAddAction(Cast, function CastActions)
        call TriggerAddAction(Learn, function LearnActions)

I would use Conditions here ...since they are faster...
Sure you cant have no waits in Conditionfuncs ...but that doesnt matter ..since you are using .execute ..which runs the "real" Actions func in a new thread.