k0rd / Custom-Monsters-Plugin--Tshock-

Server Side Custom Monsters for Terraria
3 stars 1 forks source link

Custom invasions #8

Open Pychnight opened 12 years ago

Pychnight commented 12 years ago

Currently custom invasions are already possible but it's extremely roundabout method of doing it.

custom monsters v1.0 method

Npc spawns > npc dies > npc multiplys X Amount 150 times >_> (lags)

Method suggested for implementation

when you spawn a invasion type monster say Slime the format should look like this

name:Hell Pinky basetype:-4 life:300 boss:false value:1000 forest:25 shooterdata:84:1:10:5 multiplyondeath:5 poisoned:true

the new features that would allow invasions to be possible and would be semi-easy to do.

Spawnlifetime:150:50 Spawnmessage:Slime Army has Invaded spawnlifetimend:Slime Army was Defeated

^ this function will keep spawning the npc into this value reachs 0 then it will broadcast the life time end message only issue is you must prevent the message being spammed, so my suggestion is to flip flag that will prevent the messages being announced into all the value spawnlifetime has reached 0

there might be better ways to do this. but I'm thinking of a template npc spawner that will spawn into it's gone.

^ this feature might be needed to be split into it's own plugin but it would be nice.