ID:148623
 
How do I execute (or call) the Character_Login proc(already defined) when someone clicks the turf.


turf
StartClick
icon = 'Clickscreen.dmi'
icon_state = "nothing"
density = 1
Click()



mob
var
team
character_login
proc
Character_Login()
team = (input("What team do you want to be on?","team") in list("Red","Blue"))
var/area/A = locate("[team] base")
if(!Move(A)) loc = locate(/turf) in A
if(team=="Red")
icon='red.dmi'
else
icon='blue.dmi'
By calling it in the turf's Click() proc.
You need to check out several posts now:

[link] -- in which I show you the correction to the errors you inherited from Zlegend2

That follows from these posts:

[link] -- in which OneFishDown had the brain fart that introduced a new error into that code, without fixing the old one
[link] -- in which I summarily chewed out OneFishDown for the aforementioned brain fart

Lummox JR