ID:174375
 
Before I go on with my newest project. I want to make sure if it's possible to use "if" in a .dms file. I have something like this:

macro
if(nameinput)
a return "lettera"


And its giving me this error:

C:\Documents and Settings\Lukas\Desktop\BYOND\AngelicIre\MyRpg\TypingInName.d ms:3:error at 'a': statement syntax error

(The bold part is the actual error)

Thank you for your help.
Nope, you can't put any DM code in DMS script files. You can put the if()s in the verbs themselves, though (which is probably a better idea anyway).