life on TD

  • Thread starter Thread starter Nightsisters
  • Start date Start date
N

Nightsisters

Guest
Hello, how do i make life on a TD map ? so if a monster enters a region my "life" or whatever it is calld drops by 1 ? :confused:

ex: I begin whit 60 lifes. then 4 monsters enters the portal 'region' and mt life drops 4. 60-->56 :P
 
leak
Events
Unit - A unit enters Leak
Conditions
(Owner of (Entering unit)) Equal to Player who spawns the creeps
Actions
Set Lives = (Lives - 1)
 
Neopolis3 said:
leak
Events
Unit - A unit enters Leak
Conditions
(Owner of (Entering unit)) Equal to Player who spawns the creeps
Actions
Set Lives = (Lives - 1)
You sould probably also have an if/then/else statement checking if the lives are zero, after they are subtracted. Also, in my TD, I have it so your life is a Real, and the leaked unit's precentage health is subtracted. That way, you don't go ()@#&%)(#&%) when you leak one guy at 14/100000 health
 
so how do i set the life to 60 then ?
and where do i find the 'Set lives - (lives -1)' ????
 
Nightsisters said:
so how do i set the life to 60 then ?
and where do i find the 'Set lives - (lives -1)' ????
Under the General - Set Variable. You have to have a Lives variable first.
 
and right. why cant i open my map. it says:

Error.

Unable to load file: 'c:\\......'

Tigger data missing or invalid

:nuts: :(
 
because you are trying to open a protected map, we do not support map unprotection.
 
this text i am about to post is from a another thread i replied to so ill just tell you what i told the other guy.



This is actually not that complicated of a trigger, First make a Variable and name it lives(or whatever), make it an integer and set its value to however many lives you want the people to start with. Then make a rect , make this rect the place you want the ppl to lose lives if a unit from a player enters it. Now to the Trigger part, first let me just say i cannot be exact about the trigger names because i am not on my home machine...

Event- A unit enters (specified rect)

condition- If unit belongs to player(the player who gets the creeps who move in the td)

Action- Set Variable (lives) ; (lives) - 1
Remove (Triggering or Entering[both will work]) unit
-----------------------------------------------------------------------
Then make a new trigger, this will be for when lives reaches 0, the players will lose.

Event- Periodic;every 1.00 seconds of game time
Action- If/Multiple actions/else
if- (lives = 0)
then- (you can display whatever here but lets just go with this...)Make the player lose the game[again i cannot be specific about trigger name) and have it display the defeat message and make that whatever you want.
else- Do Nothing
------------------------------------------------------------------------
Now this is if you want it to be put on a multiboard, have the columns blah blah blah, have a column named lives and etc. make a new trigger....

Event- periodic;every 0.10 seconds
action-set text of (last created multiboard[this wont work if u have more then one multiboard]) to *convert integer to String of variable [lives] * Again sorry about not being specific but meh : /

Hope i helped with your issue
 
Nightsisters said:
and right. why cant i open my map. it says:

Error.

Unable to load file: 'c:\\......'

Tigger data missing or invalid

:nuts: :(

i am sorry for double posting but i wanted to respond to this, this thing happening with your map, ONLY happens in 2 cases, 1 - you try to open a protected map(probably not your case ) and 2- you did something in the triggers or object editor(like having a unit have 2 abilities made from the base of the same ability), aanyway, if its a protected map, either is not urs or u protected by mistake[i do not condone this but if u must u must] find a map unprotector and unprotect your map, if its #2 then all i can say is: your map is gone, now u can begin to learn from the mistakes you have made to never have the same error happen to any other maps and heres a tip : i had this same exact bs happen to me while i was still a "newbie", so now whenever i change anything in my map, i save it as EX: blahblahblah.021 or blahblahblah.022 just incase i f**ked up i dont lose all my work, just a tiny piece of it...
 
Acually, if it is #2, then the work is not lost. You can edit it back with an MPQ application.
 
actually i beleive its case #3, where (s)he is using a cd crack (saw this on another post). if this is the problem, we do not support cd cracks, buy the game. (not dicouraging other people to find other solutions, im not 100% sure)
 
mixmax2 said:
this text i am about to post is from a another thread i replied to so ill just tell you what i told the other guy.



This is actually not that complicated of a trigger, First make a Variable and name it lives(or whatever), make it an integer and set its value to however many lives you want the people to start with. Then make a rect , make this rect the place you want the ppl to lose lives if a unit from a player enters it. Now to the Trigger part, first let me just say i cannot be exact about the trigger names because i am not on my home machine...

Event- A unit enters (specified rect)

condition- If unit belongs to player(the player who gets the creeps who move in the td)

Action- Set Variable (lives) ; (lives) - 1
Remove (Triggering or Entering[both will work]) unit
-----------------------------------------------------------------------
Then make a new trigger, this will be for when lives reaches 0, the players will lose.

Event- Periodic;every 1.00 seconds of game time
Action- If/Multiple actions/else
if- (lives = 0)
then- (you can display whatever here but lets just go with this...)Make the player lose the game[again i cannot be specific about trigger name) and have it display the defeat message and make that whatever you want.
else- Do Nothing
------------------------------------------------------------------------
Now this is if you want it to be put on a multiboard, have the columns blah blah blah, have a column named lives and etc. make a new trigger....

Event- periodic;every 0.10 seconds
action-set text of (last created multiboard[this wont work if u have more then one multiboard]) to *convert integer to String of variable [lives] * Again sorry about not being specific but meh : /

Hope i helped with your issue


1) plz use the vB code to organize your post for us readers
2) dbl post...
--------------------------------------------------------------------------
Back to the topic: to set the lives i suggest you use the dialog so ppl can select if they want 60,40,20 (easy, normal, hard) and if they choose hard,
Code:
Set lives = 60
if they choose normal
Code:
set lives = 40
and so on... and u have the loses a life and such.
If you dont no about dialogs read this tutorial, its pretty good if u read it thouroghly... Dialog Turorial
 
Please can anyone PM me whit 100% instruction, im not so good at this stuff :(
 
look to set a life u will need a dialog or anything that will life to the value:
Go to Varible In Trigger Editor
Creat a integer called life
integer life 0
Now set the triggger to value (x) //x == w/e you want
Code:
Life Value
Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Set life = 40
Now when a unit enters a region u do the actions:
Code:
    Events
        Unit - A unit enters (Entire map)
    Conditions
    Actions
        Unit - Remove (Entering unit) from the game
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                life Less than or equal to 0
            Then - Actions
                Custom script:     //Do the Win/lose Actions:
                Custom script:     call EndGame( true )
                Game - Display to (All players) the text: DEFEAT!
            Else - Actions
                Set life = (life - 1)
 
what the prob is is that its like 500 options on If/Then/else. I cant find :rolleyes: :confused: :nuts:
 
i know where to find the If then else action. its the next step i cant find... :o
The:

If - Conditions
life Less than or equal to 0
Then - Actions
Custom script: //Do the Win/lose Actions:
Custom script: call EndGame( true )
Game - Display to (All players) the text: DEFEAT!
Else - Actions
Set life = (life - 1)
 
afet creat the if go to nw Condition and type "i" again them click on the first tab and put "life" the second tab put less than or equal to last tab put
0
. after that u need set your win/lose comand.
the else if for set life = life - 1
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • The Helper The Helper:
    Also, anyone who is reading this and is sad - don't be, turn off the Internet, step away from the box - enjoy your life - there is so much more out there for you than there is here for you.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top