//example of basic turf
turf
title
name = "Title"
icon = 'title1.PNG'
layer = 2
density = 1
opacity = 0
//example of attempted broken code
turf
title
name = "Title"
layer = 2
density = 1
opacity = 0
if(gamemode==1)
icon = 'title1.PNG'
if(gamemode==2)
icon = 'title2.PNG'
Problem description: I have an image for my title screen I would like to change corresponding to certain variables in the world. When the value of the variable changes, the turf will not react.
But with the coding example I show above, I get errors. Such as;
layout.dm:11:error: gamemode: duplicate definition
layout.dm:11:error: "1": duplicate definition
layout.dm:11:error: ==: instruction not allowed here
layout.dm:11:error: : duplicate definition
layout.dm:13:error: gamemode: duplicate definition
layout.dm:13:error: "2": duplicate definition
layout.dm:13:error: ==: instruction not allowed here
layout.dm:13:error: : duplicate definition
layout.dm:12:error: : duplicate definition
layout.dm:14:error: : duplicate definition
Game.dmb - 10 errors, 0 warnings (double-click on an error to jump to it)