dude_obj said:It would be a perfect environment for modelling critters and other game objects....
Darn Right! Thats why Java is a nicer OO model language than C++.
(well from a programing perspective anyways)
Alos, Good idea about a smaller VM model instead of the standard J2SE one.
I think now the FSE has 2 elements: a INT to JAVA convertor and extra fallout flavoured meathods, classes.
Other than the potentially LONG wait while the FSE parses thru the native fallout scripts and creates the java/class files.
But once they are converted the scripts will be ?nicer? to edit as Java files.
Also:
Code:
/**
* Whenever the critter takes damage of any type, this procedure will be
* called. Things like setting ENEMY_ and LVAR_Personal_Enemy can be set
* here.
*
* @return int value
*/
public int damage_p_proc()
{
if (source_obj()==dude_obj()) {
set_local_var(6, 1);
set_global_var(7, 1);
}
return 0;
}
Would it be possible to GET RID OF NUMBERED VARIABLES?
such as "set_local_var(6, 1);", it is both annoying and likely a source of errors...
I mean if these Fallout scripts are gonna get Javafied we might as well go all the way... named variables and all.