Forum

> > CS2D > Scripts > Nazi Zombies 'Rounds' Lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Nazi Zombies 'Rounds' Lua

6 replies
To the start Previous 1 Next To the start

old Nazi Zombies 'Rounds' Lua

Fiz
User Off Offline

Quote
Thanks in advance to all that clicked on this thread:
Hi all,
I need help with a 'rounds' script. This basically means that at the start of a game, it says 'level 1' in the bottom left corner. Then, after 1 minute, 'level 1' dissappears and 'level 2' appears. That goes on for a minute, before 'level 2' dissappears and 'level 3' appears. (That then lasts for a minute and it goes on to lvl 4, then lvl 5 etc.)
I can do it with entity's but if anyone can show how to script this, it would be saving me a lot of time (possibly a day of on-off work).
Thank you.
edited 5×, last 03.07.11 08:23:40 pm

old Re: Nazi Zombies 'Rounds' Lua

RAVENOUS
BANNED Off Offline

Quote
If you don't know Lua, you're lost.

If you do, here the simple solution:

[Minute hook]
-> increase rounds by 1
-> hudtxt change
-- done

Easypeazy

old Re: Nazi Zombies 'Rounds' Lua

Fiz
User Off Offline

Quote
Meh, I have many restrictions in lua, this is one of them. I guess I'm doing it via entity's -.-. For 16 maps. Thanks anyway.
2 other users have made Nazi Zombies maps, none had scripts. Apart from a very simple one uploaded a thousand years ago. + I have a few 'carry on' demands in my mailbox ;).

EDIT: RAVENOUS, could you give me like, an example?
Just so you know how terrible I am at lua, here is my best attempt:
1
2
3
4
5
6
7
addhook("minute", "rounds")
Functionsaytxt("Round 1")
end

addhook("mniute", "rounds2")
Functionsaytxt("Round 2")
end

I don't think I need to say anymore.

EDIT: Oh come on, I know somebody out there must be able to do it. Please, you would be saving someone a huge amount of boredom of having to do each individual entity.
edited 2×, last 03.07.11 10:54:32 pm

old Re: Nazi Zombies 'Rounds' Lua

RAVENOUS
BANNED Off Offline

Quote
1
2
3
4
5
6
7
x=1

addhook("minute", "rounds")
function rounds()
	x=x+1
	parse('hudtxt 1 'Round: '..x'' 140 240 1')
end

Something like that too bored to make a good one
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview