ID:148075
 
I am trying to make it that if the person's team variable is "Collective" and his team does not have a /turf/radar/CollRadar, he does not have /mob/verb/scan and the same for the other team. However, I keep getting these errors:

builder.dm:20:error:S:undefined var
builder.dm:21:error:S.team:undefined var
builder.dm:22:error:S.vers:undefined var
builder.dm:25:error:S:undefined var
builder.dm:26:error:S.team:undefined var
builder.dm:27:error:S.vers:undefined var
builder.dm:19:error:M.model:undefined var
builder.dm:24:error:M.model:undefined var
builder.dm:19:error::missing expression
builder.dm:24:error::missing expression

From this code:

mob
hidden
verb
Demolish(mob/M as turf in oview(1))
world << "[usr] demolishes [M]!"
if(M.model = "collradar")
for(S as mob in world)
if(S.team == "Collective")
S.vers -= /mob/verb/scan
else continue
if(M.model = "titanradar")
for(S as mob in world)
if(S.team == "Titan")
S.vers -= /mob/verb/scan
else continue
del(M)


turf
var
model
radar
TitanRadar
icon = 'radar.dmi'
icon_state = "titan"
model = "titanradar"
CollRadar
icon = 'radar.dmi'
icon_state = "coll"
model = "collradar"
Drafonis wrote:
I am trying to make it that if the person's team variable is "Collective" and his team does not have a /turf/radar/CollRadar, he does not have /mob/verb/scan and the same for the other team. However, I keep getting these errors:

builder.dm:20:error:S:undefined var
builder.dm:21:error:S.team:undefined var
builder.dm:22:error:S.vers:undefined var
builder.dm:25:error:S:undefined var
builder.dm:26:error:S.team:undefined var
builder.dm:27:error:S.vers:undefined var
builder.dm:19:error:M.model:undefined var
builder.dm:24:error:M.model:undefined var
builder.dm:19:error::missing expression
builder.dm:24:error::missing expression

From this code:

mob
> hidden
> verb
> Demolish(mob/M as turf in oview(1))
> world << "[usr] demolishes [M]!"
> if(M.model = "collradar")
> for(S as mob in world)
> if(S.team == "Collective")
> S.vers -= /mob/verb/scan
> else continue
> if(M.model = "titanradar")
> for(S as mob in world)
> if(S.team == "Titan")
> S.vers -= /mob/verb/scan
> else continue
> del(M)

turf
> var
> model
> radar
> TitanRadar
> icon = 'radar.dmi'
> icon_state = "titan"
> model = "titanradar"
> CollRadar
> icon = 'radar.dmi'
> icon_state = "coll"
> model = "collradar"


The M.model errors are because you are defining a mob and saying that it should be a turf mob/M as turf. Change that to mob/M in oview(1).

The other thing is that you didn't define what type of variable S is. S as mob in world. Try mob/S as mob in world.