Um, yeah i'll have to get the code i wrote, its not on this pc
Im not trying to spawn the player character, I do however have a lot more variabes in the function than in the example I got on top. Infact its a struct array thing in a script module
so its kinda like this
int spawnnpc(int npc, int view, int health, string name,int xpos, int ypos)
{
npc[npc].health = health;
npc[npc].name = name;
charachter[npc].changeview(view);
character[npc].changeroom(player.room, xpos,ypos)
}
but there is a lot mor variables, ill have to paste the code I guess cuz its got a lot more variables...
What happens is that the game seems to get stuck before the fade in, as if it was paused with no error message. it works fine when I take out the changeroom bit
also:
even the npc.name string ends up messed up and not what I define in the function.
I did not export the struct, only the spawnnpc function. It still compiles though
Im not trying to spawn the player character, I do however have a lot more variabes in the function than in the example I got on top. Infact its a struct array thing in a script module
so its kinda like this
int spawnnpc(int npc, int view, int health, string name,int xpos, int ypos)
{
npc[npc].health = health;
npc[npc].name = name;
charachter[npc].changeview(view);
character[npc].changeroom(player.room, xpos,ypos)
}
but there is a lot mor variables, ill have to paste the code I guess cuz its got a lot more variables...
What happens is that the game seems to get stuck before the fade in, as if it was paused with no error message. it works fine when I take out the changeroom bit
also:
even the npc.name string ends up messed up and not what I define in the function.
I did not export the struct, only the spawnnpc function. It still compiles though