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
Start Point Spawn Need Help I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
Start Point Spawn Need Help I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
Start Point Spawn Need Help I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
Start Point Spawn Need Help I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
Start Point Spawn Need Help I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
Start Point Spawn Need Help I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
Start Point Spawn Need Help 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
Start Point Spawn Need Help I_vote_lcap26%Start Point Spawn Need Help I_vote_rcap
 26% [ 8 ]
Warcraft 3
Start Point Spawn Need Help I_vote_lcap35%Start Point Spawn Need Help I_vote_rcap
 35% [ 11 ]
League of Legends
Start Point Spawn Need Help I_vote_lcap19%Start Point Spawn Need Help I_vote_rcap
 19% [ 6 ]
World of Warcraft
Start Point Spawn Need Help I_vote_lcap0%Start Point Spawn Need Help I_vote_rcap
 0% [ 0 ]
Diablo 2
Start Point Spawn Need Help I_vote_lcap0%Start Point Spawn Need Help I_vote_rcap
 0% [ 0 ]
No games at all
Start Point Spawn Need Help I_vote_lcap10%Start Point Spawn Need Help I_vote_rcap
 10% [ 3 ]
Other game not listed
Start Point Spawn Need Help I_vote_lcap10%Start Point Spawn Need Help I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 Start Point Spawn Need Help

Go down 
2 posters
AuthorMessage
BonoMania
Recruit
Recruit




Start Point Spawn Need Help Empty
PostSubject: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeSun Dec 30, 2012 7:34 am

Every time in my maze when i want to spawn a random point, its ALLWAYS the same point i spawn...

I'm checking it every day to try to fix it, but my trigger says "a Random point in_region_001"

im using GUI

pls help Smile
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeMon Dec 31, 2012 8:55 am

you need to post your trigger
right click on the trigger and hit copy as text then post it here
Back to top Go down
BonoMania
Recruit
Recruit




Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeTue Jan 01, 2013 12:04 am

function Trig_Spawn_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'Edem', Player(0), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[0] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(1), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[1] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(2), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[2] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(3), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[3] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(4), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[4] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(5), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[5] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(6), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[6] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Edem', Player(7), GetRandomLocInRect(gg_rct_Region_000), 90.00 )
set udg_Players[7] = GetLastCreatedUnit()
endfunction

//===========================================================================
function InitTrig_Spawn takes nothing returns nothing
set gg_trg_Spawn = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Spawn, 0.01 )
call TriggerAddAction( gg_trg_Spawn, function Trig_Spawn_Actions )
endfunction
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeMon Jan 07, 2013 7:45 pm

replace the entire contents of your Spawn trigger with this:

Code:
function Trig_Spawn_Actions takes nothing returns nothing
    local integer i = 0
   
    loop
        exitwhen i > 7
       
        set udg_Players[i] = CreateUnit(Player(i), 'Edem', GetRandomReal(GetRectMinX(gg_rct_Rect_000), GetRectMaxX(gg_rct_Rect_000)), GetRandomReal(GetRectMinY(gg_rct_Rect_000), GetRectMaxY(gg_rct_Rect_000)), 90)
       
        set i = i + 1
    endloop
endfunction

//===========================================================================
function InitTrig_Spawn takes nothing returns nothing
    set gg_trg_Spawn = CreateTrigger( )
    call TriggerRegisterTimerEvent( gg_trg_Spawn, 0.01, false)
    call TriggerAddAction( gg_trg_Spawn, function Trig_Spawn_Actions )
endfunction

1000!!!
Back to top Go down
BonoMania
Recruit
Recruit




Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeTue Jan 08, 2013 1:55 pm

ty, but what do you mean with
Spoiler:
Smile?
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeTue Jan 08, 2013 3:45 pm

you wrote a trigger
i rewrote it to work
replace yours with mine
Back to top Go down
BonoMania
Recruit
Recruit




Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeTue Jan 08, 2013 4:08 pm

dude i still spawn the same point, as i did with my trigger xd.

but i keep your trigger anyway :p
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeTue Jan 08, 2013 5:52 pm

how big is your region? make it bigger. lots bigger
Back to top Go down
BonoMania
Recruit
Recruit




Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeFri Jan 11, 2013 8:01 pm

its like 5x5
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitimeMon Jan 14, 2013 4:42 pm

make bigger
Back to top Go down
Sponsored content





Start Point Spawn Need Help Empty
PostSubject: Re: Start Point Spawn Need Help   Start Point Spawn Need Help I_icon_minitime

Back to top Go down
 
Start Point Spawn Need Help
Back to top 
Page 1 of 1
 Similar topics
-
» get point by name

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