Okay, so I'm kinda new to this so bear with me
I've encountered a problem that makes me unable to enter the map, but I can't seem to find the problem in the script. It says that a ';' is expected in row 29.
What I want AOESanityDmg to do is if the player is located inside ScriptArea_2 he should be damaged with 5 sanity dmg every 2 seconds... I don't think that it is working but it seems like there's something else that is wrong with the script, because I removed some script before so that I didn't have 29 rows of script, but the error still remained... Anyone know how to fix it?
Thx in advance
Sry for English
(This post was last modified: 02-26-2012, 06:28 PM by Tozken.)
(02-26-2012, 02:20 PM)Tozken Wrote: Okay, so I'm kinda new to this so bear with me
I've encountered a problem that makes me unable to enter the map, but I can't seem to find the problem in the script. It says that a ';' is expected in row 29.
What I want AOESanityDmg to do is if the player is located inside ScriptArea_2 he should be damaged with 5 sanity dmg every 2 seconds... I don't think that it is working but it seems like there's something else that is wrong with the script, because I removed some script before so that I didn't have 29 rows of script, but the error still remained... Anyone know how to fix it?
Thx in advance
Sry for English
Hey man!
I'm also new at this, but I know you shouldn't have more that TWO '}' in void OnStart.
Like this
void OnStart()
{
AddEntityCollideCallback....
.......
}
Hope that helps you some?
(02-26-2012, 06:31 PM)Tozken Wrote: Bump! Really need help with this. I can't continue until I solve it :/
Okey, so.. I tested it out and with this following script, everything should do it!
Thanks for your help! Unfortunately, it didn't work. It was something with the .map file I think.... I tried creating a new map with the same things and same script and it worked. Thanks again anyway!
(This post was last modified: 02-26-2012, 07:50 PM by Tozken.)
(02-26-2012, 02:20 PM)Tozken Wrote: Okay, so I'm kinda new to this so bear with me
I've encountered a problem that makes me unable to enter the map, but I can't seem to find the problem in the script. It says that a ';' is expected in row 29.
What I want AOESanityDmg to do is if the player is located inside ScriptArea_2 he should be damaged with 5 sanity dmg every 2 seconds... I don't think that it is working but it seems like there's something else that is wrong with the script, because I removed some script before so that I didn't have 29 rows of script, but the error still remained... Anyone know how to fix it?
Thx in advance
Sry for English
Dude you have this "
AddTimer("", 2, "AOESanityDmg");
}
}"
(02-26-2012, 02:20 PM)Tozken Wrote: Okay, so I'm kinda new to this so bear with me
I've encountered a problem that makes me unable to enter the map, but I can't seem to find the problem in the script. It says that a ';' is expected in row 29.
What I want AOESanityDmg to do is if the player is located inside ScriptArea_2 he should be damaged with 5 sanity dmg every 2 seconds... I don't think that it is working but it seems like there's something else that is wrong with the script, because I removed some script before so that I didn't have 29 rows of script, but the error still remained... Anyone know how to fix it?