Exult Logo
 
Home | Download | Documentation | FAQ | Studio | Screen Shots
Development | Discussion | About Us | Letters | History | Links
 
Exult Discussion
Before posting, make sure you've read the FAQ and searched the message board for previous discussions. When reporting problems/bugs, please include details about your setup (Exult version, OS, sound and video cards).

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Maximum Functions?
Author: Knight Captain 
Date:   02-17-17 09:24

What's the maximum number of functions in Exult? SI Fixes has the autonumbering starting at 0xC00.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   02-24-17 15:09

Another question for Marzo: How can I use a usecode array or script block to move something a tile in a direction? I don't want to step_e or similar, because that changes the frame.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   02-24-17 16:03

Are the spells hard-coded to handle removing the reagents from the Avatar?

Looking at the spell code it appears that the game engine does this rather than Usecode. So it's not possible, for example, to take out a spell and replace it with one that use different reagents.

There also doesn't appear to be a check that looks for the ring of reagents in these spells.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   03-10-17 14:26

5426 (0x1532) worked in a very brief test today.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   03-16-17 21:50

How do I create an egg via Usecode and set all the parameters?

I want to create an egg that will need to use external criteria, but only trigger at a short distance. And some weather eggs that function on external criteria.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   03-16-17 21:59

Ah, here: http://exult.sourceforge.net/seventowers/ucc_ref.php?TYPE=3&DATAFILE=setegg

Reply To This Message
 
 Re: Maximum Functions?
Author: Donfrow 
Date:   03-17-17 14:53

Is that used in a script block on the egg usecode?

ie,

script item
{
setegg 1, 5
}

And then whatever you want to do with the egg us outside of the script block?

Scripting is a really big mystery to me even reading over the scripting reference pages.

Reply To This Message
 
 Re: Maximum Functions?
Author: KC via Telnet (---.sub-174-192-31.myvzw.com)
Date:   03-17-17 16:05

Yes. I believe the egg has to be created as a shape first, then modified via a script block. That should assign some other Usecode to the egg.

How to have it do basic things like weather, spawn monsters, and things that do not call another Usecode function is not clear to me.

As part of digging into the original SI Usecode I documented everything I could. Only byte(0x02) remains unknown, and it is only used once. None of this is posted yet though.

Reply To This Message
 
 Re: Maximum Functions?
Author: Donfrow 
Date:   03-17-17 17:59

So this isn't done use the create egg tool in Exult Studio, and then on the usecode assigned to that egg.

If I'm understanding correctly, you could create a shape, lets say a rock shape 1000, then on the usecode for that object shape, in the script use the setegg, which would make it have egg properties, similar to creating it through the Exult Studio create egg tool?

All the eggs I've done up until this point were eggs created in Exult Studio that are assigned a usecode function, and then in that usecode function do whatever I wanted the egg to do, like create monsters with equipment, etc.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   03-17-17 18:26

It looks like most (all?) Usecode eggs are pre-placed on the map, and then only trigger when the coded conditions are met. But since map editing is so fraught with potential trip-ups, I'd rather do it via Usecode.

Reply To This Message
 
 Re: Maximum Functions?
Author: Knight Captain 
Date:   03-17-17 19:09

UI_set_usecode_fun does not work for setting an egg's function. That's probably intentional, as the original game does not seem to have a way to create and set a new egg. So they had to be placed via some map editing tool.

I've submitted a feature request here:
https://sourceforge.net/p/exult/feature-requests/190/

Usecode cannot be attached to a specific shape, generally, without it applying to all of that same shape. Eggs and barges are special cases, in that they should allow for some specific instance manipulation.

Reply To This Message
 
 Re: Maximum Functions?
Author: Donfrow 
Date:   03-17-17 19:32

I see what you mean now. I didn't quite grasp that you wanted to do it without having to edit the map at all.

Interesting information to know, but seems too complicated for my simple mind to fully grasp!

Reply To This Message
 Go to Top  |  Go to Topic  |  Threaded View   Newer Topic  |  Older Topic 


 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
 Subject:
   
 
SourceForge   phorum.org
 
Problems with Exult or this webpage? Contact us.
Last modified: 24 Oct 2001(GMT)