Home › Forums › Destiny of an Emperor › Sonic Penguin's New Mod Ideas…
Tagged: Destiny of an Emperor, Destiny of an Emperor Flames of Chaos, Destiny of an Emperor Mod, Destiny of an emperor Wu mod, Rise of Lu Bu, Sonic Penguin mods, Wu DoaE mod
- This topic has 66 replies, 8 voices, and was last updated 10 years, 6 months ago by sonic.penguin.
-
AuthorPosts
-
October 28, 2013 at 8:25 am #52640DragonAtmaModerator
…do we have any space free in memory? I have a feeling that outright removing an officer and rearranging everything as needed takes a lot more space than simply setting memory value X to officer Y.
So the way I see it, go with two events:
Event 1: Set memory spot X to officer Y.
Event 2: Delete the officer in spot X.Then we can have a few dozen of tiny Event 1, and one of large event 2… letting us remove a few dozen officers as needed. Hell, we could do the same to sleep/wake officers — in the vanilla version, say, do this:
(1) Sima Shi, Sima Zhao, etc. set to the Wei area and originally not available.
(2) When Sima Yi has a sudden case of LuBuism, run the “make officer active” event on them.
(3) At the same time, run the “officer vanishes” event on Cao Ang, Guo Jia, etc.All we’d need to do is make the event keep them active if they’re in the party.
October 28, 2013 at 8:40 am #52641MiDKnighTModeratorThe way my code works is that you use it as an event. “So and so leaves your party [EVENT ####]”. Then once that event happens it removes the officer from your party if they are there, removes them from billeting, and sets their status to DEAD (ie…no longer part of the game).
October 28, 2013 at 7:40 pm #52645sonic.penguinModerator
The way my code works is that you use it as an event. “So and so leaves your party [EVENT ####]“. Then once that event happens it removes the officer from your party if they are there, removes them from billeting, and sets their status to DEAD (ie…no longer part of the game).
Any way that this can be set as an [EVENT-1234] to be used within officer dialogue and have them leave the party via Xu Shu (down) or Cao Cao (exit screen left)?
October 28, 2013 at 10:32 pm #52647MiDKnighTModeratorAny way that this can be set as an [EVENT-1234] to be used within officer dialogue and have them leave the party via Xu Shu (down) or Cao Cao (exit screen left)?
Yes that’s the way it works. Right now it only works with pre or post battle text since it doesn’t change screen graphics. So it would be like “so and so was hit by an arrow after the battle [EVENT-1234] and dude is gone from the game.
I’d need to modify my code to make it more generic as I was playing around with it in the Yuan Shao mod. My code has it offing 2 guys at once in one event. I’ll make it so you can off guys with individual events and you’d control the officer IDs.
October 29, 2013 at 6:31 pm #52650sonic.penguinModerator
I’ll make it so you can off guys with individual events and you’d control the officer IDs.
Awesome, exactly what I was hoping for. Even just 5 events would be a way to break up an army and force players to consider alternative options. It’s been very challenging “forcing” players to remove people from the party because stock DOAE just kept the same people all game long. Why switch out Zhao Yun… ever, when Jin Xuan is your alternative? :P
Unless… for some reason you could AX him! Mwahahaha
October 30, 2013 at 11:05 am #52653MiDKnighTModeratorI’ve got it… I’ve added 12 forced officer leave events. Here’s the main things to know about it:
– You add the event to the text. Example: “Lu Bu has been defeated, Song Yong ran home to his mommy.[EVENT-A83F][END]”
– This probably only works in the “after battle” text. I haven’t tested it anywhere else.
– There is a list at 0xF4200 where you would put the officer IDs for the generals you want to leave for each event.
– The events are:[EVENT-903F] (general ID: 0xF4200)
[EVENT-963F] (general ID: 0xF4201)
[EVENT-9C3F] (general ID: 0xF4202)
[EVENT-A23F] (general ID: 0xF4203)
[EVENT-A83F] (general ID: 0xF4204)
[EVENT-AE3F] (general ID: 0xF4205)
[EVENT-B43F] (general ID: 0xF4206)
[EVENT-BA3F] (general ID: 0xF4207)
[EVENT-C03F] (general ID: 0xF4208)
[EVENT-C63F] (general ID: 0xF4209)
[EVENT-CC3F] (general ID: 0xF420A)
[EVENT-D23F] (general ID: 0xF420B)So for example if you wanted Song Yong to leave on event ID A83F you’d put 36 (Song Yong’s officer ID) in 0xF4204. Hex changes are:
0x37F90:
00000000000000000000A93D2082C460
208ABF4CA6C4208ABF4CA6C4208ABF4C
A6C4208ABF4CA6C4208ABF4CA6C4208A
BF4CA6C4208ABF4CA6C4208ABF4CA6C4
208ABF4CA6C4208ABF4CA6C4208ABF4C
A6C4208ABF4CA6C478EED9FF4CC9EFFF0xF4010:
A9009D00638E1078A9FF8D1178A200BD
A860CD1078D0038E1178E8E008D0F0AD
1178C907F006AAA9009DA860A9FF8D12
78A200BD9060CD1178D0038E1278E8E0
08D0F0AD1178C9FFF017AE1278E007B0
10BD91609D9060E8E006D0F5A9FF8D96
60A9FF8D1378A200BD3060CD1078D003
8E1378E8E041D0F0AD1378C9FFF00EAE
1378BD31609D3060E8E041D0F5600000
68C992D00748AEF081200080C998D007
48AEF181200080C99ED00748AEF28120
0080C9A4D00748AEF381200080C9AAD0
0748AEF481200080C9B0D00748AEF581
200080C9B6D00748AEF681200080C9BC
D00748AEF781200080C9C2D00748AE08
81200080C9C8D00748AEF981200080C9
CED00748AEFA81200080C9D4D00748AE
FB812000804C8ABF00000000000000000xF7F90:
00000000000000000000A90D2082C44C
90800000000000000000000000000000November 14, 2013 at 6:13 pm #52703sonic.penguinModeratorHoly crow, when did you do this? I must’ve missed it amongst all the forum shutdowns! This is awesome, I’ll have to get to using it to make the game more dynamic. Will test it and let you know. I’ve been waiting for this kind of update for quite some time. :salut:
-
AuthorPosts
- You must be logged in to reply to this topic.