Problems with vars in Developer Help
|
|
Code:
world/var/Quest1 world/var/Quest2 world/var/Quest3 world/var/Quest4
mob/Quests verb Link_Quests() set category = "Quests" if(!world.Quest2 && !world.Quest3 && !world.Quest4) world << "<font color = lime>Link Quest Information:</font> Link Quests have been Activated!" world << "<font color = lime>Link Quest Information:</font> Link Quests Part I - Triforce Master Training" world.Quest1 = 1 var/EnemyLink = /mob/enemy/Link2 new EnemyLink(locate(10,8,2)) if(!world.Quest1 && world.Quest2) world << "<font color = lime>Link Quest Information:</font> Link has been Defeated!" world << "<font color = lime>Link Quest Information:</font> Link Quests Part II - The Return of Shadow Ganon!" var/SGanon = /mob/enemy/SGanon new SGanon(locate(10,8,2)) if(!world.Quest2 && world.Quest3) world << "<font color = lime>Link Quest Information:</font> Shadow Ganon has been Defeated!!" world << "<font color = lime>Link Quest Information:</font> Link Quests Part III - The Zelda's Strength Test!" var/Zelda = /mob/enemy/Zelda new Zelda(locate(10,8,2)) if(!world.Quest3 && world.Quest4) world << "<font color = lime>Link Quest Information:</font> Zelda has been Defeated! Still not impressed" world << "<font color = lime>Link Quest Information:</font> Link Quests Part IV - The Final Battle!" var/Ganon = /mob/enemy/Ganon new Ganon(locate(10,8,2))
|
When I compile all of this I get this message:
loading Legend Of Zelda RPG.dme
loading skin.dmf
Code and icons\LOZRPG.dm:2:error: Quest1: variable declaration not allowed here
Code and icons\LOZRPG.dm:3:error: Quest2: variable declaration not allowed here
Code and icons\LOZRPG.dm:4:error: Quest3: variable declaration not allowed here
Code and icons\LOZRPG.dm:5:error: Quest4: variable declaration not allowed here
Legend Of Zelda RPG.dmb - 4 errors, 0 warnings (double-click on an error to jump to it)
I also tried doing
world/var Quest1 Quest2 Quest3 Quest4
|
but I got the same errors! Help!
|
for the verb Links_Quests you would have to change
I could be way off base here, but thought i'd try to help :)