Page 2 of 3
Re: Adding Time with LunaDLL Tutorial
Posted: Fri Mar 07, 2014 6:50 pm
by SuperWingedYoshi
Pseudo-dino wrote:1.3.0.2 is just a slight update to 1.3.0.1, smwforever. It just had a couple of extra fixes or something.
Well, okay, but where can I download 1.3.0.2? This forum only offers a link to 1.3.0.1...
Re: Adding Time with LunaDLL Tutorial
Posted: Sat Mar 08, 2014 5:37 am
by DarkShadeX
smwforever45 wrote:Pseudo-dino wrote:1.3.0.2 is just a slight update to 1.3.0.1, smwforever. It just had a couple of extra fixes or something.
Well, okay, but where can I download 1.3.0.2? This forum only offers a link to 1.3.0.1...
It's not done yet.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 10:58 am
by RudeGuy
I try to add time in one of my levels, but it don't functions.
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,5,1,0,350,0
// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0
#END
The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 12:28 pm
by DarkShadeX
Christian07 wrote:I try to add time in one of my levels, but it don't functions.
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,5,1,0,350,0
// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0
#END
The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Try this:
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,9000,1,0,350,0
// Time's up,now kill the player!
#9000
Kill,0,0,0,0,1,0
#END
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 1:40 pm
by RudeGuy
Darkchaox100 wrote:Christian07 wrote:I try to add time in one of my levels, but it don't functions.
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,5,1,0,350,0
// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0
#END
The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Try this:
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,9000,1,0,350,0
// Time's up,now kill the player!
#9000
Kill,0,0,0,0,1,0
#END
Well, same thing.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 1:42 pm
by DarkShadeX
Christian07 wrote:Darkchaox100 wrote:Christian07 wrote:I try to add time in one of my levels, but it don't functions.
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,5,1,0,350,0
// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0
#END
The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Try this:
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #5 after choosen frames!
Timer,0,9000,1,0,350,0
// Time's up,now kill the player!
#9000
Kill,0,0,0,0,1,0
#END
Well, same thing.
Did you renamed the txt as lunadll.txt and is it also in the level folder? (level.lvl \ level)
Also do you use the patched SMBx 1.3.0.1 with Lunadll.dll?
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 1:50 pm
by RudeGuy
Did you renamed the txt as lunadll.txt and is it also in the level folder? (level.lvl \ level)
Also do you use the patched SMBx 1.3.0.1 with Lunadll.dll?[/quote]
Yes, I did it.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 1:52 pm
by DarkShadeX
Christian07 wrote:Did you renamed the txt as lunadll.txt and is it also in the level folder? (level.lvl \ level)
Also do you use the patched SMBx 1.3.0.1 with Lunadll.dll?
Yes, I did it.
Thats weird...
Try if this works on your level:
Code: Select all
///--LunaDLL Timer--///
#0
// Activate #1000 after choosen frames!
Timer,0,1000,1,0,21350,0
// Time's up,now kill the player!
#1000
Kill,0,0,0,0,1,0
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 2:14 pm
by bossedit8
There is an issue with the Timer. If you hit a NPC where the Level ends (SMB2 Birdo's Crystal Orb, SMB3 Card, SMB3 '?' Orb, SMW Goal Gate, etc...) the Timer still runs which is not so good because it can be an issue if the Timer hits at zero maybe it can be a result, being destroyed during the victory.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 2:15 pm
by DarkShadeX
bossedit8 wrote:There is an issue with the Timer. If you hit a NPC where the Level ends (SMB2 Birdo's Crystal Orb, SMB3 Card, SMB3 '?' Orb, SMW Goal Gate, etc...) the Timer still runs which is not so good because it can be an issue if the Timer hits at zero maybe it can be a result, being destroyed during the victory.
Theres an function called:
DeleteEventsFrom,???,0,0,0,1,0
which can stop the killing event.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun Mar 09, 2014 9:59 pm
by leif_erikson
I'll try to disable Timer during that in the next version of lunadll. But I'm not actually sure how to detect if the level is being ended.
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 10, 2014 11:54 am
by DarkShadeX
Why not try to add a kind of sensor when the Goal NPCS in the level doesnt exist anymore. (if you collect them)
Re: Adding Time with LunaDLL Tutorial
Posted: Tue Apr 22, 2014 4:21 pm
by Melting Terminal
Ahh, this is really useful, thanks! I was going to be making an episode and I was considering how to insert a timer into it, but then I learnt about a wonderful thing called LunaDLL. Anyway, thanks for making this tutorial.
Re: Adding Time with LunaDLL Tutorial
Posted: Sun May 11, 2014 11:38 am
by Lx Xzit
Awesome! Thanks for this information Darkchaox300

Re: Adding Time with LunaDLL Tutorial
Posted: Mon May 12, 2014 2:45 pm
by Lx Xzit
How I can add 400 seconds to my level?
Re: Adding Time with LunaDLL Tutorial
Posted: Mon May 12, 2014 3:00 pm
by FanofSMBX
100 - 1.Second
350 - 5.Seconds
650 - 10.Seconds
950 - 15.Seconds
1250 - 20.Seconds
Multiply 1250 by 20.
Re: Adding Time with LunaDLL Tutorial
Posted: Mon May 12, 2014 3:05 pm
by zlaker
#0
// Set timer to 400, trigger 1000 when expired
Timer,0,1000,1,0,24050,0
// Trigger 1001 when exit is collected
IfNPC,11,2,0,1001,0,0
#1000
// Kill player when time runs out
Kill,0,0,0,0,1,0
#1001
// Delete kill event
DeleteEventsFrom,1000,0,0,0,0,0
#END
Re: Adding Time with LunaDLL Tutorial
Posted: Tue May 13, 2014 5:37 pm
by leif_erikson
Ice wrote:#0
// Set timer to 400, trigger 1000 when expired
Timer,0,1000,1,0,24050,0
// Trigger 1001 when exit is collected
IfNPC,11,2,0,1001,0,0
#1000
// Kill player when time runs out
Kill,0,0,0,0,1,0
#1001
// Delete kill event
DeleteEventsFrom,1000,0,0,0,0,0
#END
Thanks, that's the best way to make sure the timer stops.
Re: Adding Time with LunaDLL Tutorial
Posted: Sat May 17, 2014 10:25 pm
by Lx Xzit
Ice wrote:#0
// Set timer to 400, trigger 1000 when expired
Timer,0,1000,1,0,24050,0
// Trigger 1001 when exit is collected
IfNPC,11,2,0,1001,0,0
#1000
// Kill player when time runs out
Kill,0,0,0,0,1,0
#1001
// Delete kill event
DeleteEventsFrom,1000,0,0,0,0,0
#END
Thanks.
Re: Adding Time with LunaDLL Tutorial
Posted: Sat May 17, 2014 10:38 pm
by MECHDRAGON777
So, What is 360 seconds, When I did the math, I got 362 seconds on the clock!