help with my TD

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Bill Gates
Old Wrinkly Member
Posts: 250
Joined: May 20th, 2007, 5:03 am
Location: Gages Lake(Da H00d), Illinois

help with my TD

Post by Bill Gates »

i made a Td but i want it so if a player isnt there no creatures spawn. i know this is really easy but i donno it haha
I 4M BI11 G4735 F34R M3!!!!!!
I got H4xX0r3d by ID...oh noes
Image
Image
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: help with my TD

Post by weirdone2 »

if GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING then [then create ter units however you wanna do this]
That would check for red.
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Re: help with my TD

Post by namespoofer »

You make things too complicated.. :shock:

Just use a boolean variable, if a player is there, set it to true, and when you want the creeps to spawn, use a condition that checks if the boolean is true/false >.>
Ehh this is eaiser to do in GUI in my eyes
Image
Doesn't Dekar make the world easier?

"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"

Catch me on Azeroth (U.S. East) - NameSpoofer
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: help with my TD

Post by weirdone2 »

namespoofer wrote:You make things too complicated.. :shock:

Just use a boolean variable, if a player is there, set it to true, and when you want the creeps to spawn, use a condition that checks if the boolean is true/false >.>
Ehh this is eaiser to do in GUI in my eyes
Complicated? It's very easy to understand and if you just add a loop you don't have to have more then one line of it. :) But I dint feel like adding the loop cuz it prolly woulda confused him. :(
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Re: help with my TD

Post by namespoofer »

Ehh, ok.. your right I'm wrong >.<

local integer i=0
loop
exitwhen i>11
GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING
set i=i+1
endloop

Or w/e, don't have JC atm, or I would just make the whole trigger >.>
Image
Doesn't Dekar make the world easier?

"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"

Catch me on Azeroth (U.S. East) - NameSpoofer