|
Development Forum |
 |
| Multiple Agents, One Classifier? | |
|
 Tea Queen
Laura
    

|
12/20/2013 | |
Basically what the topic title suggests: Is it possible for multiple agents to share the same classifier? I'm working on a project that'll consist of multiple objects and vendors, you see.  |
 Sanely Insane
RisenAngel
     Manager

|
12/20/2013 | |
Depends on if you mean the whole classifier (family, genus, and species) or just the species.
If you mean the whole classifier, you technically could, but the result will be a ton of error messages, or at least general weirdness, if the objects all do different things and are in the same world at the same time.
On the other hand, two objects with the same species but differing families and/or genuses (genii?) can coexist without affecting each other.
~ The Realm ~
Risen Angel's Creatures Blog
|

Malkin
     Manager

|
12/20/2013 | |
Do you mean, as a compound agent, or as something pretending to be something else?
My TCR Norns |
 Peppery One
Papriko
    
|
12/20/2013 | |
It really depends what you mean. First of all I have to disagree with Grendel_Man. If done right, you can make several objects with identical classifier when you let it remember it's "identity" via a OV variable.
Then you had to make the scripts check for that variable to act accordingly.
But as I said, it needs to be done well to work, but even if, it's a terrible hassle.
When you mean that only the species is the same, then that works without any problems. My addicting suicide juice for example uses 2 23 22801 for the skull and 2 25 22801 for the potions. This will work perfectly smooth and without any additional work. When you make sure that at least one of the other numbers (family/genus) is different, you do not need to worry about anything.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
 Tea Queen
Laura
    

|
12/20/2013 | |
I mean a compound agent, Malkin. 
Thank you for the explanations so far; I think I understand. To try and explain what I mean a bit clearer though, just imagine that I want to inject multiple vendors into my world all at once, with each dispensing a different piece of fruit. Does that make anymore sense?  |

Malkin
     Manager

|
12/20/2013 | |
Would the vendors be chosen for each location randomly, or would set vendors appear at certain places?
My TCR Norns |
 Tea Queen
Laura
    

|
12/20/2013 | |
Neither... I see them being injected and just sitting altogether in a cluster. To explain things further; each vendor will dispense an item which will be used to build something. |
 Peppery One
Papriko
    
|
12/20/2013 | |
In a cluster? You mean they can't be seperated at all? Yes, in that case I'd recommend a compound agent.
For the fruits self you have to decide if you internally wanna use the same agent and use different sprites and scripts with doifs or simply create each fruit as own agent.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
 Tea Queen
Laura
    

|
12/20/2013 | |
Oh, the vendors can be picked up and moved by the Hand, in case I didn't make that clear. They'll just all appear in the same area when they're injected.
Edit: The more I consider it, the more I think it'll probably just be easier to use separate classifiers? I just wanted to see if I could inject everything all at once, like a pack. |
 Sanely Insane
RisenAngel
     Manager

|
12/20/2013 | |
If you want to have multiple vendors vend different things despite having the same classifier, then you'll have to do what Papriko said and use OV variables (or name variables, if you don't care about C3 standalone compatibility) to make sure each vendor creates something different.
The code will probably wind up looking something like this:
doif ov00 = 0
*Vend thing 1*
elif ov00 = 2
*Vend thing 2*
else
*Vend thing 3*
endi |
~ The Realm ~
Risen Angel's Creatures Blog
|
 Tea Queen
Laura
    

|
12/20/2013 | |
Okay, thanks!  |