Author Topic: how do i make a zombie defence game?  (Read 853 times)

I was wondering how to make a zombie defence game. Do i use certain events is there a mod? Thanks.

I would say the only thing you'll need is of course zombie mod and maybe variables.

Using variables you could create a sort of point system that could be used to buy things like walls or weapons, or activate stationary turrets out on the field.

spawn zombies
Build wall.
yay

But how do I make it so when i kill a zombie it adds a point and also adds a variable. And when I want to buy a weapon I have to pay with points and my points go down?

Onzombiedeath Player AddVariable zombie hunter 1

- is this correct?

Well that's if you're still using V4 vars, which I suggest upgrading to VCE.

Is OnZombieDeath an actual input?

Where is the vce update thingy. And im pretty sure that OnZombieDeath is an input event.



ok i downloaded it and looked at it, but how do i make it so the variable follows the score. And how do i take away from the score?


Well that's if you're still using V4 vars, which I suggest upgrading to VCE.

Is OnZombieDeath an actual input?
Comes standard with Gamemode_Zombie

is there a guide on how to use VCE?

It's a button in the event menu at the top, next to the Clear button.

never mind found a manual. But, im still confused on how to buy items. Anyone know how?

I'm still somewhat new with VCE, but I believe it would be:

0 OnActivate | Self | VCE_ifVariable | <var:(target money is bound to):(name of money variable)> | >= | (Amount of money it costs) | 1 3
1 OnVariableTrue | (target money is bound to) | VCE_Modvariable | <var:(target money is bound to):(name of "money" variable)> | Subtract | (Amount of money it costs)
2 OnVariableTrue | Player | SetInventory | (weapon) | (slot)
3 OnVariableFalse | Client | Chatmessage | "You don't have enough money to buy this."