ID:140014
 
Code:
turf
TitleScreens
density=1
mouse_opacity=2
MainTitle
icon='NewGameBase2.png'
NewLoad
icon='newcharselect2.png'
//these next 2 are buttons that we overlay onto the new/load screenturf
NewButton
Click(mob/M)
if(M.client)
M.FadeScreen() // Fades In the screen
M.loc=locate(17,6,3) // teleports you to location
M.UnFadeScreen() // Fades Out the screen


Problem description:The mouse_opacity is not working, plus when i use the newbutton turf on map and click it it says this "runtime error: undefined variable /turf/TitleScreens/NewButton/var/client
proc name: Click (/turf/TitleScreens/NewButton/Click)
source file: TitleScreen.dm,12
usr: Taha123 (/mob)
src: NewButton (2,3,3) (/turf/TitleScreens/NewButton)
call stack:
NewButton (2,3,3) (/turf/TitleScreens/NewButton): Click(NewButton (2,3,3) (/turf/TitleScreens/NewButton), "GameWindow.GameMap", "icon-x=18;icon-y=31;left=1;scr...")
"
can some one please help me i am a newbie coder


In the case of Click(), usr is the mob of the player doing the clicking.
In response to Garthor (#1)
so how would this get fixed because i dont know how to figure it out cause ima a new coder
In response to Taha123 (#2)
Instead of using M, which is the location of the object being clicked, use usr.

Look up Click() in the reference to see what the arguments are supposed to be.
In response to Garthor (#3)
SO THANK YOU For The runtime error solution,

can ya help me for mouse_opacity? i ll show you a screenshot