ID:144192
 
Code:
world
mob = /mob/player
mob
var
game
mob/player
icon = 'Basic.dmi'
icon_state = "player"
density = 1
game = "off"
turf
playercage1
icon = 'cardmat.dmi'
icon_state = "playercage1"
Click()
walk_to(usr,src)
verb
start_game(mob/M as mob in oview(0))
M.game = "on"
M << "GAME ON!!!"


Problem description:OK basically I have no idea why it is not outputting on the start game verb. I simply put the output part there to let me know that the game variable is switched to "on". This is a TCG. I have even tried putting it under the players mob. When I walk up to the turf the verb appears but does nothing. I know this A, because it doesn't output B,I made a stat which embedded the game var and it is still set to off when I click the verb. so any suggestions? (and pleeease no smart a** comments, I did look in the help guide and I looked in the forum.)


wow u made a simple mistake u forgot set src in view(1)
Code:
> world
> mob = /mob/player
> mob
> var
> game
> mob/player
> icon = 'Basic.dmi'
> icon_state = "player"
> density = 1
> game = "off"
> turf
> playercage1
> icon = 'cardmat.dmi'
> icon_state = "playercage1"
> Click()
> walk_to(usr,src)
> verb
> start_game(mob/M as mob in oview(0))
set src in view(1)
> M.game = "on"
> M << "GAME ON!!!"
In response to Tubutas (#1)
Yes, but don't also use an argument, only the src setting is enough. usr is the player who ran the verb and src is the turf.
In response to Kaioken (#2)
alright thanks both of you I am adding you to credits list.