Page 1 of 1

In need help!

PostPosted: Sat Jun 23, 2007 1:20 pm
by regine
How to do this?

my code is:
in collision event of the player:
load = rand(10);
if(load == 7)
{
LoadGame("Fight.ged");
}
if(load == 3)
{
LoadGame("Fight.ged");
}

i want to load the Fight.ged when the random number is 3 or 7.
How to do that?

PostPosted: Sat Jun 23, 2007 1:24 pm
by regine
It only opens data sometimes when i have it as an normal actor not in infinite.

Sorry for the bad english.

PostPosted: Sat Jun 23, 2007 1:48 pm
by Caaz Games
Please dont post topics named "I need help!"

http://game-editor.com/forum/tp-1789-Su ... Forum.html

PostPosted: Sat Jun 23, 2007 2:05 pm
by Oman
ok, right now you have it making a random number. It has a 20% chance of executing that command. If i were you i would change it to...

int load;
load = rand(10);
if(load == 7)
{
LoadGame("Fight.ged");
}
if(load == 3)
{
LoadGame("Fight.ged");
}

... and if load is a variable that you made in the variables box, delete it.

PostPosted: Sat Jun 23, 2007 2:06 pm
by Oman
It only opens data sometimes when i have it as an normal actor not in infinite.


Not quite sure what u r talking about here though... please explain?