Page 2 of 2

Re: [sorta OT] Looking for help :)

Posted: Sun Aug 03, 2003 10:20 pm
by drcode
Oops, one more thing: When Usecode is called from the script as above, the 'event' value is set to 2. These values also should have symbolic names, and right now, the only description in them is in the source file 'usecode/ucmachine.h'.

Looks like it's time for me to start working on this again.

Re: [sorta OT] Looking for help :)

Posted: Sat Aug 09, 2003 2:41 pm
by Wizardry Dragon
Some named constants would certainly be nice.

Is there a way for me to program global variables without them having to be flags?

~ Wizardry Dragon

Re: [sorta OT] Looking for help :)

Posted: Sat Aug 09, 2003 2:45 pm
by Wizardry Dragon
Another thing, I can get the party remove items function to work fine to take away gold, but I cannot get the party add function to work to add the item I'm giving the player in exchange for the gold.

~ Wizardry Dragon

Re: [sorta OT] Looking for help :)

Posted: Mon Aug 11, 2003 7:21 am
by drcode
U7 doesn't have global variables, other than the flags. It's something I've been thinking about adding to Exult fairly soon.

Re: [sorta OT] Looking for help :)

Posted: Mon Aug 11, 2003 8:09 am
by Wizardry Dragon
Okay, definetly soemthing to add :)

Any thoughts on why items will remove but not add?

Want me to post the snippet?

~ Wizardry Dragon

Re: [sorta OT] Looking for help :)

Posted: Mon Aug 11, 2003 9:27 am
by drcode
Sure, go ahead. Adding ought to work, and I can try it tonight at home.