HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

2 functions with the same names in diff. triggers

10-07-2006, 04:31 AM#1
darkwulfv
So say I had a function named Conditions in one trigger, and another named Conditions in another. In the Trigger Initialization (or any call that refrences a function), will it potentially call up the function from the other trigger, or just from that one trigger? (I know 2 functions with the same name in the same trigger, but idk about 2 different triggers)
10-07-2006, 04:48 AM#2
Vexorian
It is impossible to have 2 functions with the same name...
10-07-2006, 04:53 AM#3
darkwulfv
Oh... Ok, I better go change them before my script explodes in my face.
10-07-2006, 02:56 PM#4
blu_da_noob
All triggers actually 'exist' together in one big .j file, so you could use a function from one trigger in another trigger (provided the ordering is right, but don't bother trying because of the retarded way WC3 handles trigger insertion order).
10-07-2006, 05:00 PM#5
arpha_storm
Yeah, so no matter how much you try re-ordering your triggers, they'd still be arranged by date of creation.
10-07-2006, 05:28 PM#6
BertTheJasser
Just copy/paste the trigger which refers to the func and safe. You are done.
10-07-2006, 11:06 PM#7
The)TideHunter(
Quote:
Originally Posted by arpha_storm
Yeah, so no matter how much you try re-ordering your triggers, they'd still be arranged by date of creation.

Unless you disable and enable that trigger, then it gets shifted (to top or bottom, cant remember).
10-07-2006, 11:09 PM#8
Blade.dk
Just put it in the custom script section if you want to use it multiple places.