Files

> > CS2D > Lua Scripts > Spawn NPC's on certain tiles
Files overviewCS2D overviewLua Scripts overview

English Spawn NPC's on certain tiles >

2 comments825 b, 419 Downloads

old Spawn NPC's on certain tiles

AtomKuh
User Off Offline

I have recently played around with lua scripting and want to share my script with u now

What is it about?
You are able to select certain frames of a tileset for allowing NPC's to spawn there. You are also able to set the maximum amount of NPC's that are allowed on the entire map. The script will check the amount of NPC's which are alive and respawn NPC's on random tiles of the selected frames every minute. In addition, the respawn will not occur on tiles with monsters on them.

Configuration:
monstertiles = {1,2,3}
entiremob_amount = 150
NPC_ID = 1

This is an example for:
• Selected frames: 1,2,3
• 150 maximum monsters
• Zombies for Respawning (NPC ID: 1)

> Please do not use this script for your own
project without giving me credit.

Have fun
Approved by Sparty

Download Download

825 b, 419 Downloads

Comments

2 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

_Lima_
User Off Offline

Nice, more.
I like it!

old

haha1955
User Off Offline

cool, pls more more more:D
I like it!
To the start Previous 1 Next To the start