[sorta OT] Looking for help :)

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: [sorta OT] Looking for help :)

Post 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.
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: [sorta OT] Looking for help :)

Post 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
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: [sorta OT] Looking for help :)

Post 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
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: [sorta OT] Looking for help :)

Post 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.
Wizardry Dragon
Posts: 1241
Joined: Thu May 14, 2020 1:34 pm

Re: [sorta OT] Looking for help :)

Post 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
Cheers, Wizardry Dragon
Lead Designer, Ultima VII: The Feudal Lands
www.thefeudallands.ca
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: [sorta OT] Looking for help :)

Post by drcode »

Sure, go ahead. Adding ought to work, and I can try it tonight at home.
Locked