Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3XXXLOlympic GamesXXL EditorToolsOff-TopicXXL RomasteredXXL 2 RemasteredOther GamesModsCaesar's ChallengeUnfair XXLPatchesFan ArtPersonal ArtSpeedrunningMediaRandomizerBETA RomeHSKALPresence AdrienPresence SPQRSupport Bot Helpdesk

#editor

deathhound246
Question about triggers. What is/are the object types used for these conditions? I assume they're `CKComparedData`? How can I see the data for them?
adrientd
You can export objects from the Scene graph window. If you want the level model you have to select the "CSGSectorRoot" object in the graph:
adrientd
If you want to export a character or any kind of object, you can click the model and it will show up in the scene graph window. There is no way to export all at once.
adrientd
Yes, the CKComparedData is a value used in comparisons. It can be a constant, a value from an object, or an event.
wavynavy04
Thank you both for your help :)
adrientd
The Trigger does not show the content of a compared data, and I don't think it's important as the name should be clear enough of what it does. Though if you want you can see the content in the Object inspector window.
adrientd
In your screenshot, the compared data you circled is an event. The "GDtc_Loading L030" has a reference to this CKComparedData, and when it sends the "Entrée" event, it will the ComparedData evaluate to True for a single frame.
deathhound246
Ahh ok yea that makes sense. I was looking around at the hex last night after i sent this and it looks like all the True and False values for triggers and it looks like each instance of them is their own ComparedData object for some reason. I do wish there was an easy way to find out what an events ID is, or getting the name from an ID :Obelul:
deathhound246
In this though, it specifically names the event it's looking for as Entrée. Is that just stored in a string? I thought events would be a number like how they show in the actions below the conditions here
adrientd
Yeah, I meant "Entrée" to be more a trigger/signal. Basically a trigger for when you enter the detector.
deathhound246
But where is "Entrée" being read from in the files/deserialization? Is it just the string "Entrée", or is it a number correlating to this?
deathhound246
Cus ofc theres various different signals that can be used, so it needs to know which one to check for
adrientd
It's part of the object name given to the CKComparedData.
adrientd
In each object that can trigger, the object will have a list of CKComparedData pointers. When the trigger happens, it will briefly iterate over every CKComparedData and change the value of the compared data from 0 to 1 (or at least that's how I imagine).
adrientd
For example, a detector has three triggers: Exit, Presence, and Enter. Each has a list of CKComparedData (in the screenshot it shows the size of the list):
adrientd
and you can find that 1 cmpdata in the action sequences:
adrientd
Fun fact: if you click the "Clear condition", you can then drag&drop an "Ev" event node to the small "Add" button, and it will add the event as condition!
deathhound246
ahhhh ok. i think i get it now. and we can document events that each class has using encylopedia files?
deathhound246
very helpful! didn't know this was a thing. i was wondering how to add or manipulate the triggers
deathhound246
Extra curiosity :Obelul: Is the 1 here a bool indication to say "this is used in triggers", or a count of how many triggers it's referenced by?