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

hesopesomeso
Yep. I was talking about 0x5134- this is the DRIVER. It uses the flag to change the speed.
hesopesomeso
Sorry for the confusion.
pegperegogaucho
What does the other speed look like?
pegperegogaucho
Because if 0x20 is set, it should be faster
adrientd
Correct
Download Asterix__Obelix_XXL_2024-12-28_19-35-27.mp4:



pegperegogaucho
Okay, so lets name the events "5196: Use speed 2" and "5197: Use speed 1"
pegperegogaucho
And by default it seems to use speed 2 as 0x20 is set (first member)
adrientd
That's why I would prefer to call 5196 speed 1 and 5197 speed 2
pegperegogaucho
But then in the editor it would display speed 2 first :Obelul:
pegperegogaucho
Doesn't really matter though
adrientd
Here it shows 15 the default speed and 5 the second speed. So the order seems correct here.
adrientd
a bit confusing since bit = 1 = first speed, and bit = 0 = second speed
hesopesomeso
Enum time.
pegperegogaucho
Oh you are right
pegperegogaucho
Also, on the topic of enums, is there a way to describe an enum in the json?
pegperegogaucho
Because for the bonusspitter it is useful to use an enum for the bonus type.
adrientd
You can have enums using bitflags. For example in CKHkActivator: ```JSON { "name": "CKHkActivator", "category": 2, "id": 52, "hookFlags": { "5-6": { "name": "Behavior", "0": "Push once, never pop", "2": "Keep pushed, pop by event", "3": "Pop at animation end" } }, "properties": { "actEvtSeq1": "On push", "actEvtSeq2": "On anim end" } }, ``` Same can be done with properties, like this: ```JSON { "name": "CKHkSomething", "properties": { "property": { "name": "Bonus type", "bitFlags": { "0-2": { "name": "Bonus type (again)" "0": "Helmet", "1": "Golden Helmet", "2": "Potion", "3": "etc." } } } } }, ``` But maybe a way to define an enum without bitflags could be a good idea (avoids having to put two names)
pegperegogaucho
Oh, you already know the bonus types? :KEKW:
adrientd
Not really :Obelul:
pegperegogaucho
Nope, can't get it to work... ```json { "name": "CKHkBonusSpitter", "category": 2, "id": 194, "hookFlags": { "8-15": "Amount 1", "16-31": "Amount 2" }, "properties": { "bsUnk2": "Range", "bsBonusType": { "name": "Bonus type", "bitFlags": { "0-3": { "name": "Bonus type", "1": "Helmet", "2": "Golden Helmet", "3": "Potion", "4": "Shield", "5": "Health", "6": "x3 Multiplier", "7": "x10 Multiplier", "8": "Laurel" } } } } }, ```