Clan TMMM
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The official site of Clan TMMM
 
HomeHomeSearchLatest imagesRegisterLog in


Latest topics
» Kevkevqaz is back
What is wrong with my Variables ?!? I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
What is wrong with my Variables ?!? I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
What is wrong with my Variables ?!? I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
What is wrong with my Variables ?!? I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
What is wrong with my Variables ?!? I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
What is wrong with my Variables ?!? I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
What is wrong with my Variables ?!? I_icon_minitimeby Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

SC2 Links
SC2 Challenge/Tourney Info

Official SC2 Forums

SC2 Curse

SC2Mapster

Team Liquid

SC2 Replayed

SC2 Strategy
WC3 Links
Clan_TMMM[Host] Info

WC3 Challenge/Tourny Rules

Epicwar
Poll
What game does everyone play now?
Starcraft 2
What is wrong with my Variables ?!? I_vote_lcap26%What is wrong with my Variables ?!? I_vote_rcap
 26% [ 8 ]
Warcraft 3
What is wrong with my Variables ?!? I_vote_lcap35%What is wrong with my Variables ?!? I_vote_rcap
 35% [ 11 ]
League of Legends
What is wrong with my Variables ?!? I_vote_lcap19%What is wrong with my Variables ?!? I_vote_rcap
 19% [ 6 ]
World of Warcraft
What is wrong with my Variables ?!? I_vote_lcap0%What is wrong with my Variables ?!? I_vote_rcap
 0% [ 0 ]
Diablo 2
What is wrong with my Variables ?!? I_vote_lcap0%What is wrong with my Variables ?!? I_vote_rcap
 0% [ 0 ]
No games at all
What is wrong with my Variables ?!? I_vote_lcap10%What is wrong with my Variables ?!? I_vote_rcap
 10% [ 3 ]
Other game not listed
What is wrong with my Variables ?!? I_vote_lcap10%What is wrong with my Variables ?!? I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 What is wrong with my Variables ?!?

Go down 
3 posters
AuthorMessage
BonoMania
Recruit
Recruit




What is wrong with my Variables ?!? Empty
PostSubject: What is wrong with my Variables ?!?   What is wrong with my Variables ?!? I_icon_minitimeTue Jan 01, 2013 7:50 pm

I do have a Variable Called "Players" it's "Unit Array"

And WHY cant i find the Variable in "Events" ?

Did i do something wrong or is it just like that so you cant find your Variable Question.

I tried to make a Collision Because Pat said it was better than Immolation.

I spawn my DH's With a Trigger.

If you guys could do me a trigger then pls do it cuz, i cant.

I tried to do like this
Spoiler:

but it didn't work :p

Then i tried this

Spoiler:

And it worked perfectly.

WHY PAT WHY are Immolation bad :O!?

Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



What is wrong with my Variables ?!? Empty
PostSubject: Re: What is wrong with my Variables ?!?   What is wrong with my Variables ?!? I_icon_minitimeTue Jan 01, 2013 9:13 pm

so lemme get this straight
you have a variable named players
but instead of being an array of players its an array of units
ok well thats kinda weird but lets keep going

next up is your choice of smiley face. makes me question things.

Quote :
I tried to make a Collision Because Pat said it was better than Immolation.
yes; the rest of the world including pat

Quote :
I spawn my DH's With a Trigger.
i'm guessing this is where your problems are coming from trying to reference things that dont exist
ie you create your demon hunters after the game starts via a trigger
but before game starts you have a bunch of triggers (see collision) which are referencing these future demon hunters. you can do this but you need to make use of the variable that references the demon hunters correctly (ie not the way youre doing it now)

try this:

function Trig_hero_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(udg_Players[0]) == 'Edem' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(11) ) ) then
return false
endif
return true
endfunction

function Trig_hero_Actions takes nothing returns nothing
call KillUnit( udg_Players[0] )
endfunction

//===========================================================================
function InitTrig_hero takes nothing returns nothing
set gg_trg_hero = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_hero, 45.00, null )
call TriggerAddCondition( gg_trg_hero, Condition( function Trig_hero_Conditions ) )
call TriggerAddAction( gg_trg_hero, function Trig_hero_Actions )
endfunction


then in your trigger that creates the demon hunters at the beginning of the game, make sure to remember to add them to your array "Player"

and lastly thank you for putting
Spoiler:
in a spoiler. that really helped me keep my screen from being cluttered and unworkable.
Back to top Go down
Pat1487
Moderator
Moderator
Pat1487



What is wrong with my Variables ?!? Empty
PostSubject: Re: What is wrong with my Variables ?!?   What is wrong with my Variables ?!? I_icon_minitimeTue Jan 01, 2013 9:55 pm

Just use immolation
Back to top Go down
BonoMania
Recruit
Recruit




What is wrong with my Variables ?!? Empty
PostSubject: Re: What is wrong with my Variables ?!?   What is wrong with my Variables ?!? I_icon_minitimeWed Jan 02, 2013 7:45 am

xd i will try sernity's way then immolation :p
Back to top Go down
Sponsored content





What is wrong with my Variables ?!? Empty
PostSubject: Re: What is wrong with my Variables ?!?   What is wrong with my Variables ?!? I_icon_minitime

Back to top Go down
 
What is wrong with my Variables ?!?
Back to top 
Page 1 of 1
 Similar topics
-
» What is wrong with this JASS?

Permissions in this forum:You cannot reply to topics in this forum
Clan TMMM :: Warcraft 3 :: WC3 Tutorials and Help-
Jump to: