Expert Help Please

  • Thread starter Thread starter DU_CyNiCaL_oNe
  • Start date Start date
D

DU_CyNiCaL_oNe

Guest
Heres wat i need: I'm makin a level and need 2 know how 2 make levels. Not what you're thinking of, lemme give u an example: In TD's, when u kill all the monsters u go on to the next level, how do u make it do that? I want 50 levels, I know i'll need alot of variables, and i have gotten good with them, but now I need to know how to make levels .... And one more question, how do u make it so when a unit dies it gives a certain amount of gold, again, like in TD's? Please help.. Thnx


-Robin
 
dude all u have to do is after the battle at the level or whatever it is is over u have to transport those people or person to a differnt part of the map u could put a region over that whole level and say when there r no creeps r enemies there for about 10 sec to conform that there will be no more there it will transport u somewhere else
 
-.- Dude u dont get it do u? I know how 2 change the lives, and remove units when they enter goal. I just wanna know how 2 make the levels, and the creep spawns. LoL

Heres an example: Open a TD level and check the trigs and variables, then you'll see what i mean. Heres one i have u can open, its a normal TD, nuffin special.. Erm.. not creep SPAWN, i no how 2 make em spawn, i just wanna know how 2 make em spawn after a level is completed.. = /
 
i know what i said was transport the units to a differnet spot or u can make them come out at differnet times and hope that the guy killed them
 
Naw, thats stupid. I already have a level like that, if u want me 2 ill post it. It's OK........ nothing special.. 20 waves. each spawns every like 30 seconds? but in the meantime, I need Darg Or SD_Ryoko (variable experts! amongst other things.. ;) )

No offense.. = / but there HELLA good at it...
 
dude they r on now but i also said that u can make creeps come out at differnet times or make it so after all of the creeps of that type or thos die the new ones come
 
1. Make your custom units you want as levels. Set the BOUNTY fields for each custom unit. Make sure each unit is worth SOME kind of food.

2. Use the trigger Player - Turn GIVES BOUNTY on for (players creeps belong to)

3. Spawn the units and use regions to move them around the map

4. Start a level timer with whatever length. Have a trigger that spawns the units when time expires.

5. Keep tabs on the food with this trigger event to change levels. When all the creeps are dead, the food will be 0.

Player - (Creep players) Food used becomes Less than 1.00

That trigger will up the level 1, and start the timer for the next wave.

Heres some basics.

-Custom units with bounty and food
-A trigger that spawns when a timer expires
-A trigger that cleans up and starts the timer for next level when food is zero
-Trigger to remove units and keep track of leaks
-Trigger to tally scores.

If you patient, we may have a TD tutorial in the works, no promises. If you have X-TD, you can open that with worldedit. Hes a map-hack, but his methods are good.

-Dan

Originally posted by DU_CyNiCaL_oNe
Heres wat i need: I'm makin a level and need 2 know how 2 make levels. Not what you're thinking of, lemme give u an example: In TD's, when u kill all the monsters u go on to the next level, how do u make it do that? I want 50 levels, I know i'll need alot of variables, and i have gotten good with them, but now I need to know how to make levels .... And one more question, how do u make it so when a unit dies it gives a certain amount of gold, again, like in TD's? Please help.. Thnx


-Robin
 
Darg; Think you could help at all? Heh, i just need all the help i can get.. think u can put that all into code writing for me Dan? Pweez? :P Btw guys, my names Robin, plz stop calling me DU. ;)
 
Waitttttt. how the **** do u start the timer? I made the varible "Timer" As a "New timer" with a value of "new timer". Now, how do i start it? LoL! I need 2 know how 2 set the level 2... hehe..

Tell me in code how 2 set the level change, and timer, and ect...
 
Code:
Start Timer
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Countdown Timer - Start (Game_Timer) as a One-shot timer that will expire in 20.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Your Title
        Countdown Timer - Show (Last created timer window)

Trip Level
    Events
        Time - Game_Timer expires
    Conditions
    Actions
     Spawn all your units here.

Level Complete
    Events
        Player - (Creep players) Food used becomes Less than 1.00
    Conditions
    Actions
     Display level complete!
     Level = Level+1;
     Countdown Timer - Start (Game_Timer) as a One-shot timer that will expire in 20.00 seconds

LOL if your so bent on us calling you Robin, you should have made your account as such. :)
 
AH HA!!!!!!! NOW! What would the "level" variable be? Integer array i suppose? But then how wood i set it up.?
 
Aight this is ALOT Harder then i ever imagined it would be; here's the questions:

How do i set it so when a unit enters a region it only subtracts lives from a team .. its a 3v3v3, how do i set it so a team loses a life, rather then everyone?

How do i set it so when a team loses all there lives they erm.. well lose ..not everyone, just that team..

How do i make it so when a level starts it spawns the corresponding units i set the CREEPS as?

More 2 come as i discover things i need help with. Thanks so much ryoko, you have helped me immensely.
 
Yup - bout time to buy me that 12 pack.

I thought it was obvious in my last block of code?

Using your unit-type array CREEPS[CURRENT LEVEL HERE!!]

Team_Lives[1] = 30
Team_Lives[2] = 30
Team_Lives[3] = 30

One Trigger creates the units.

Each DUMP region has its own trigger. That tells them to move them to MOVE. That trigger sets custom value of unit, 1, 2, or 3 depending on where it was made.

Last trigger removes unit. Removes Team_Lives[custom value of unit]

Some code from MY map. I removed the text messages, bonus levels, and multiboard triggers. You won't need that. (Your so privilaged.)

Code:
Move 1A
    Events
        Unit - A unit enters Spawn Region 1 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
    Actions
        Unit - Order (Triggering unit) to Move To (Center of Point 1 <gen>)
        Unit - Set the custom value of (Triggering unit) to 1

Move 3A
    Events
        Unit - A unit enters Spawn Region 3 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
    Actions
        Unit - Order (Triggering unit) to Move To (Center of Point 8 <gen>)
        Unit - Set the custom value of (Triggering unit) to 2

Units Remove
    Events
        Unit - A unit enters Final Region <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Team_Lives[(Custom value of (Triggering unit))] Greater than 0
            Then - Actions
                Set Team_Lives[(Custom value of (Triggering unit))] = (Max(0, (Team_Lives[(Custom value of (Triggering unit))] - 1)))
       Unit - Explode (Triggering unit)

Its not like its a big secret or something people need to find out... and theres MANY different ways to do it. Its just hardcore CODE. Programming is a skill; you can do those things yourself with little thought.
 
JESUS CHRIST! LoL! Whats the variable for Team_Lives ? Integer? Hm..... Can u gimme the code for a level or 2?

like this:

Code:
----------Level 1----------
Set CREEPS Type [1] (something like that)
Set Level = 1

And the level complete thingy... Set Level (Level +1)
|ccffffcLevel Complete|r
And for some reason my timer won't start, but the level 1 creeps spawn.. wtf? If u can help thnx..

-- Another thing --

What u mean Remove_Team[Lives]?
And, custom value of unit? explain please.. I set the custom value of some of the units, basically only the towers though.. for selling em, which btw works!! :) And, last question; Why is it that when a unit enters the region, only some of the units go, one ALWAYS stays behind.. wtf?
 
Man, Its really simple.

Three teams, three sets of lives. Team_Lives[1,2 & 3] (actually I have 4, but who cares) Three spawn regions, three triggers, three custom values.

I am using the CUSTOM VALUES to keep track of WHO leaked it.

-There probobly not all moving because you don't have a seperate trigger to move them. Your trying to move em when you create em.
-Make your timer trigger exactly like mine. It works perfect.

-----------------------------------------------
Init Trigger
-Sets level timer
-Defines creep list

Spawn Trigger
-Fires when timer expires
-Spawns units in whatever regions, nothing more.
-Dumps units into REGION1

Move Trigger X 3
-Fires when a unit enters REGION1 (applies to unit creation as well!)
-Tells it to MOVE when the spawn puts it there
-Sets the custom value

Remove Trigger
-Removes lives from the team who leaked it (custom value)
-Removes the unit

Level Complete Trigger
-Fires when food is 0
-Ups the level 1
-Start the timer over again

Wheres my 12 pack!?!?
 
Hmmm.... That Helps Some.. :P Hehe.. Anyway... I'll try some s*it tonite aand post my level and see if u can do anything with it. If u can setup some of the levels and give me something 2 go by, I'll give u TONS of credit when the level comes out!!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top