skillid trouble!

Here you can post threads specific to the current release of the core (099)
Post Reply
gundamwing84
Grandmaster Poster
Posts: 178
Joined: Tue Sep 08, 2009 1:57 am

skillid trouble!

Post by gundamwing84 »

hey guys im having trouble with pol 99 declaring a "SKILLID_(skill)", is their a different way to define "for skillid := 0 to SKILLID_HIGHEST" for pol core 99?


the failing function:

Code: Select all

function LoadSkillArrayByValue (character)
	var dummy_dict := dictionary;
	for skillid := 0 to SKILLID_HIGHEST
		if (skillwin_override_GetSkillName(skillid) != "Non
	endfore")
			dummy_dict.insert (skillid, GetSortValue (character, skillid));
		endif


ecompile error:

Code: Select all

Compiling: c:/Shard/Broken Blade/scripts/misc/skillwin.src
Variable SKILLID_HIGHEST has not been declared on line 214.
Error compiling statement at c:\Shard\Broken Blade\scripts\misc\skillwin.src, Line 214
Error in function 'LoadSkillArrayByValue', File: c:\Shard\Broken Blade\scripts\misc\skillwin.src, Line 214

Error in function 'LoadSkillArrayByValue'.
File: c:\Shard\Broken Blade\scripts\misc\skillwin.src, Line 214
if anyone is able to show me how to fix this, please reply :)
Polytropon
New User
Posts: 19
Joined: Wed Sep 15, 2010 9:47 pm

Re: skillid trouble!

Post by Polytropon »

The compiler is telling that SKILLID_HIGHEST hasn´t been declared. As you seem to know how to declare a variable/constant, I guess you made it local instead of global, so it´s out of the scope of your function. If that´s the case, just move the declaration of the constant outside the program.
Post Reply