Hi all,
It´s been a long time since the last time I posted something on the forum. I have just downloaded the last version of Wintermute, and I have to say, really, congratulations for this outstanding piece of software. My grattitude forever, Mnemonic.
I´m having some issues developing the script of my game, as I haven't got much knowledge of programming. I reached a point where things are not behaving as expected... if someone could help me out, here´s my question:
I´ve got this script structure (it´s an example of one of many I have already in the game):
////////////////////
[code=script][code=script]global myvariable
function actorDialogue()
{
if (myvariable == 0)
{
actorDialogue1();
}
else if (myvariable == 1)
{
actor.
Talk("Hello World");
actorDialogue2();
}
else if (myvariable == 2)
{
actor.
Talk("Hello again");
actorDialogue3();
}
else if (myvariable == 3)
{
actorDialogue4();
}
else if (myvariable == 4)
{
}
}
[/code][/code]
///////////////////////////////////////////////////
The variable I have declared is working in every case, it is being change by another character of the game, after a couple of actions (myvariable = 1, myvariable =2, etc) except for the last one, when is equal to 4.
Is there a limitation of 3? or is there something that I did wrong?
As I said, my knowledge of programming is very poor, so I assume there must be an easy way to approach this kind of things...
If anyone can help me I woul apprectiate it, thanks a lot.