Hello gamestudio community. I don't know how to start but since this is my first time here i'd like to introduce myself. I'm Yasin, I live in Sweden and been visiting this site frequently but never actually registered, great community with lots of nice people who share there abbilities like the shaders guy (can't remember his name atm ^^) etc etc. I've 6 years of 3dsmax experience and 2 years of maya 2008 from school so I guess if I have time I can perhaps model some stuff for you guys =]
anyway i've been using gamestudio a5 for a while now, like 3 years or so not for a serious project but for just trying different things out and small self projects. I got a7 some weeks ago.
I've used basketballbens turn based rpg tutorial (final fantasy) and I managed to get it to work with A7 in the past few weeks, i've also added alot of features like class changing, weapons changing, inventory code, another playable character so you are two in battle isntead of one and yes everything is done with c-script. Now!
i'm actually converting teh code to lite-c and i've got some problems.
//////////////Let's says this is my entity pointer:ENTITY* white_mage;
ENTITY* temp_freezy;
var white_mage_frozen;
////////////this is the action with the entity assigned on itaction white_mage_act() {white_mage = me;}
//////////////these are the frames that the array will keep track ofvar wait_start = 0;
var wait_end = 1;
var white_mage_frames[6] = { 2,10,11,31,32,53 };
//////////////prototype for the function belownpc_animate(who, &frames, frozen);
//////////////then we got a function with this called inside itnpc_animate(white_mage, white_mage_frames, white_mage_frozen);
//////////////and this is the function we called above, temp_npc is who and who is white_mage etc etc
function npc_animate(who, &frames, frozen)
{
temp_npc = who;
if (frozen == yes) {goto end;}
if ((temp_npc.frame > frames[wait_end])||(temp_npc.frame < frames[wait_start]))
{temp_npc.frame = frames[wait_start];}
temp_npc.frame += .7*time;
if (temp_npc.frame > frames[wait_end]) {temp_npc.frame = frames[wait_start];}
end:
}
////////////////////and here is that "frozens" codefunction freeze_someone(freezy)
{
temp_freezy = freezy;
if (temp_freezy == white_mage) {white_mage_frozen = yes;}
}
as u see everything is connected to each other which gives full control, but when I tried converting the code to lite-c I get this error when I run it in Wed. Said something like Subscript requires array or pointer type at line 86 which was function npc_animate(.............)
I would really appreciate if someone could help me out on this part because almost all of the script is based on this style with pointers and stuff inside the parantheses of the functions.
THanks in advance and I look forward to share/learn new stuff from/with the community
