Page 1 of 1

Fortune Cookie Demo

PostPosted: Wed Apr 23, 2008 11:36 pm
by catacomber
Am following the Fortune Cookie Demo, but when I go to add script to the actor

FortuneCookieBackground

Create Actor
Script Actor

init_NR_RAND();
shuffle_NR_RAND();

I get a compilation error: undeclared identifier for both of them

is that because they're functions I have to declare? Is it because it's an older demo?

If I have to declare these functions or somehow add them to the game, how do I do it?

I see a comment in one of the scripts:

The init_NR_RAND,shuffle_NR_RAND, and get_NR_RAND are located in the "Global code"
//These routines were generously contributed to the GE community by GE Forum Member: Jazz-e-Bob.

But I don't see them built into the game now in any way.

Re: Fortune Cookie Demo

PostPosted: Thu Apr 24, 2008 12:43 am
by makslane
Can't see the problem.
I've downlaoded the demo and works for me.

Re: Fortune Cookie Demo

PostPosted: Thu Apr 24, 2008 12:47 am
by catacomber
The demo works for me as a demo but I'm rebuilding it from scratch. I'm following the creation of it, adding all the actors and scripts as it is in the demo. Maybe once I have all the pieces in it will be fine.

But it looks as though in rebuilding the demo, I would have to add those functions into game editor--I don't see where those two functions are built into the current version of game editor. They're very useful functions. : )

Re: Fortune Cookie Demo

PostPosted: Thu Apr 24, 2008 1:11 am
by makslane
Will works after put the funcions in the Global Code editor

Re: Fortune Cookie Demo

PostPosted: Thu Apr 24, 2008 1:41 am
by catacomber
I C IT!!!!! :D :D :D :D :D :D :D

Thanks to you and Pyrometal. : ) ) )

Thank you!