ID:140224
 
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!
did you try defining the quests as mob variables?

mob
var
quest1
quest2
quest3
quest4


for the verb Links_Quests you would have to change
mob/Quests
verb
Link_Quests(var/mob/M)
set category = "Quests"
if(!M.Quest2 && !M.Quest3 && !M.Quest4)


I could be way off base here, but thought i'd try to help :)
In response to RedI
RedI wrote:
did you try defining the quests as mob variables?

> mob
> var
> quest1
> quest2
> quest3
> quest4
>

for the verb Links_Quests you would have to change
> mob/Quests
> verb
> Link_Quests(var/mob/M)
> set category = "Quests"
> if(!M.Quest2 && !M.Quest3 && !M.Quest4)
>

I could be way off base here, but thought i'd try to help :)
This doesn't help because the quests are supposed to be available to everyone in the world not just one person!
have you tried getting rid of the world and defining at the beginning of the left margin?
var
Quest1
Quest2
Quest3
Quest4


I beleive procs and variables that arn't assigned under mob or obj are defaulted as world defenitions. Once again, sorry if i'm wrong :p I'm sure one of the more experienced around here will shut me up soon enough!
In response to RedI
RedI wrote:
have you tried getting rid of the world and defining at the beginning of the left margin?
> var
> Quest1
> Quest2
> Quest3
> Quest4
>

I beleive procs and variables that arn't assigned under mob or obj are defaulted as world defenitions. Once again, sorry if i'm wrong :p I'm sure one of the more experienced around here will shut me up soon enough!

A little late I tried that a few min before I got this! Thanks anyways
well i may be repeating what was first suggested but you said you only changed the var names...how bout everything else? btw im not sure u can even use world..the only thing that i think even looks something like that would be var/global/Quest1 :S

var/Quest1
var/Quest2
var/Quest3
var/Quest4

mob/Quests
verb
Link_Quests()
set category = "Quests"
if(!Quest2 && !Quest3 && !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"
Quest1 = 1
var/EnemyLink = /mob/enemy/Link2
new EnemyLink(locate(10,8,2))
if(!Quest1 && 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(!Quest2 && 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(!Quest3 && 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))
<dm>
In response to Masschaos100
Masschaos100 wrote:
well i may be repeating what was first suggested but you said you only changed the var names...how bout everything else? btw im not sure u can even use world..the only thing that i think even looks something like that would be var/global/Quest1 :S

> var/Quest1
> var/Quest2
> var/Quest3
> var/Quest4
>
> mob/Quests
> verb
> Link_Quests()
> set category = "Quests"
> if(!Quest2 && !Quest3 && !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"
> Quest1 = 1
> var/EnemyLink = /mob/enemy/Link2
> new EnemyLink(locate(10,8,2))
> if(!Quest1 && 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(!Quest2 && 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(!Quest3 && 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))
> <dm>
You are too late on reply
In response to Narutorox123456
:( awww