Delete_Town(var/turf/town/T in world)
Problem description:
This lets players right-click any turf and delete it, but I only want them to be able to right-click only /turf/town :(
ID:144608
Oct 16 2006, 8:38 am
|
|
Code:
Delete_Town(var/turf/town/T in world) Problem description: This lets players right-click any turf and delete it, but I only want them to be able to right-click only /turf/town :( |
In response to GhostAnime
|
|
I already set it up like #2 unless there was no way to make it work like I wanted; it just seems wierd that there's no differance between:
Delete_Town(var/turf/town in world) and Delete_Town(var/turf in world) =( I should also probably set it to oview() instead of world. I'll do that~ |
In response to Cowdude
|
|
Well, there's another method, you can create a list and fill it up with town turfs can ask the person which one he/she wants to delete. Eg:
mob/verb/Delete_Town() - GhostAnime |
However, there's two ways I can think of what you can do:
1) Give the verb to the town rather than the mob, eg:
2) Add an if() statement in your current verb, checking if the turf being deleted belongs to the correct turf before deleting:
- GhostAnime