The official site of Clan TMMM
 
HomeHomeSearchUsergroupsFAQRegisterLog in


Latest topics
» Gotta click fast - WC3 Mazing #mildlyinteresting
by hoffmann Wed Jun 21, 2017 10:28 pm

» Hey whats up
by Eat_bacon_daily Mon Oct 10, 2016 6:24 am

» I'm getting married and you guys are invited
by Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
by Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
by Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
by Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

» What everyone been up to
by The_Chosen_Oreo Sun Jun 14, 2015 11:55 am

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
26%
 26% [ 8 ]
Warcraft 3
35%
 35% [ 11 ]
League of Legends
19%
 19% [ 6 ]
World of Warcraft
0%
 0% [ 0 ]
Diablo 2
0%
 0% [ 0 ]
No games at all
10%
 10% [ 3 ]
Other game not listed
10%
 10% [ 3 ]
Total Votes : 31
Transparency

Share | 
 

 Start Point Spawn Need Help

Go down 
AuthorMessage
BonoMania
Recruit
Recruit



PostSubject: Start Point Spawn Need Help   Sun 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
avatar


PostSubject: Re: Start Point Spawn Need Help   Mon 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



PostSubject: Re: Start Point Spawn Need Help   Tue 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
avatar


PostSubject: Re: Start Point Spawn Need Help   Mon 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



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

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


PostSubject: Re: Start Point Spawn Need Help   Tue 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



PostSubject: Re: Start Point Spawn Need Help   Tue 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
avatar


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

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



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

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


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

make bigger
Back to top Go down
Sponsored content




PostSubject: Re: Start Point Spawn Need Help   

Back to top Go down
 
Start Point Spawn Need Help
Back to top 
Page 1 of 1

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