Is it possible/easy to make the "Shock" ability used by General Leo consume MP? I just wanted to make it so that it costs around 50 MP for General Leo to use his Shock ability in my mod.
Shock Ability
|
Yes it's possible but you gotta code a check for enough MP, deduct the MP used from total and consider command disabling if MP below 50 and command enabling when MP goes back higher than 50, as an example following the use of an elixir. I'm not sure you could easily hook up to the existing system since Shock is not a spell and will likely have to redo part of the MP logic for this ability only. (Shock is also a spell but it is not cast here like spells are)
05-22-2018, 11:16 AM
(05-22-2018, 02:34 AM)madsiur Wrote: Yes it's possible but you gotta code a check for enough MP, deduct the MP used from total and consider command disabling if MP below 50 and command enabling when MP goes back higher than 50, as an example following the use of an elixir. I'm not sure you could easily hook up to the existing system since Shock is not a spell and will likely have to redo part of the MP logic for this ability only. (Shock is also a spell but it is not cast here like spells are) Sounds too complex for a non-coder like me to get into. ![]()
05-23-2018, 12:48 AM
(05-22-2018, 11:16 AM)Lightning Wrote:(05-22-2018, 02:34 AM)madsiur Wrote: Yes it's possible but you gotta code a check for enough MP, deduct the MP used from total and consider command disabling if MP below 50 and command enabling when MP goes back higher than 50, as an example following the use of an elixir. I'm not sure you could easily hook up to the existing system since Shock is not a spell and will likely have to redo part of the MP logic for this ability only. (Shock is also a spell but it is not cast here like spells are) I'm not a coder by any means but it's less complicated if you know where to look. If you go [here] it is disassembly of C2 (Assassin / Terri Senshi) and search for Shock you get the following: Code: Shock So if you use a coding tool (I use WinHex32) you can search for those pointers and make edits accordingly. I think this area might be relevant: Code: C2/57AA: BD 00 00 LDA $0000,X (get spell # from menu) But again, I'm a novice when it comes to coding so take this with a grain of salt.
05-24-2018, 11:41 AM
Golden rule for newbies: make backups of ROM before dealing with hex
THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593 DO YOU HAVE WHAT IT TAKES TO SLAY A GOD? ------------------------------------------------------------------------ Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ) http://www.ff6hacking.com/forums/showthr...p?tid=2755 What happens when Madsiur tweaks your account? This full game hack will show that!
05-25-2018, 06:18 PM
(This post was last modified: 05-25-2018, 06:21 PM by Turbotastic.)
(05-23-2018, 12:48 AM)ShadowDreamer Wrote: I'm not a coder by any means but it's less complicated if you know where to look. I hate to be a spoilsport, but as madsiur communicated, it isn't that easy. The battle menu is designed to only allow Magic (including the Equipped Esper) and Lores to deduct MP. "But isn't Shock a spell?" It is...but it's not a spell in the same way as Flare or even Aqua Rake is, each with spots allocated in the menu and an MP cost defined. The code in the second part is useless because it only refers to the Magic/Lore menus, and Shock is not normally cast out of those. There are then two ways of going about this. 1. Adding a 'Megahit" clone to the learnable spell list by creating a new spell than can be cast (advanced). 2. Rewriting the "Shock" command so that it costs MP (and what would you like? A mini-window like with Lore/Magic with Shock as the only option? For the command to be used and succeed and deduct the MP without fanfare if successful, but fail otherwise?...this is also advanced) It's possible and the outline on how to proceed is straightforward...but this is not easy by any stretch of the imagination.
05-26-2018, 11:15 AM
I wonder, actually, if you could repurpose the unused Summon command (with the appropriate targeting fixes) to accomplish this. IIRC, it deducts the appropriate MP for your equipped esper, doesn't it? I don't remember offhand if the current coding disables the command at low MP, but the functionality to disable commands in certain circumstances exists (no appropriate weapon equipped, Imp status, etc), and could definitely be adapted.
If you want Shock to cost MP, but not Megahit (i.e. it costs MP when Leo uses it, but not when an enemy does), there's some additional coding you'd need to do, because you'd need to hardcode the MP cost into the function rather than pulling it from spell data, but that's not actually all that hard, either. Current Project: FF6: Tensei | Discord ID: TristanGrayse
05-27-2018, 04:19 PM
(This post was last modified: 05-27-2018, 08:18 PM by Turbotastic.)
PowerPanda tried to work with the Summon command for a different purpose, but got stuck.
Catone released a patch that allowed for the creation of an 8-option menu, but the MP problem still remains. Edit: Take anything I say with several grains of salt, as I am a complete nincompoop.
05-27-2018, 04:33 PM
Thanks for the responses, guys. I tried editing a bit, but got nowhere. I think I will finish the rest of my mod first, and then maybe a few of you guys can help me with it. I also want to make sure the mod stays compatible with real hardware (which it currently is).
I do have another question that maybe you can help me with. I am trying to change Vanish in to Image using FF3usME, but I can't get the casting effect right. Does anyone know which bytes to use in order to get the bubble effect for image? Currently, vanish has these animation codes in FF3usME: 027E 00B9 FFFF FFFF Sound: 89 Byte10: 10 Speed: 16 I tried messing with these to change it to other stuff, but it glitched big time. Can anyone either give me an alternative effect I can use for image, or tell me how to get the blue bubble effect? I am open to suggestions to make this effect look good. Thanks!
05-27-2018, 05:43 PM
The first 4 pairs of bytes are pointers to animation scripts, regrouped by layer or sprite script. In order to get what you want, use the same value at the same place as another spell with the bubble effect. You can also change the scripts themselves but it's more work.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Sabin kick ability | Seifer | 16 | 10,152 |
08-24-2022, 04:00 PM Last Post: Seifer |
|
[From Discord] Shock step back | C-Dude | 0 | 1,194 |
01-11-2022, 08:49 PM Last Post: C-Dude |
|
Replacing Runic with Shock | Jeff | 3 | 3,402 |
06-09-2021, 09:15 PM Last Post: PowerPanda |
|
Shock/Health: Hardcoded animation? | Kugawattan | 6 | 6,523 |
05-16-2017, 06:14 PM Last Post: Tenkarider |
|
Runic to Shock | PowerPanda | 6 | 7,987 |
02-20-2017, 06:09 PM Last Post: Turbotastic |
|
Shock Location | Snap006 | 3 | 3,839 |
06-23-2015, 07:31 AM Last Post: SSJ Rick |
|
Runic AND SwdTech to Shock? | Royaken | 3 | 3,858 |
04-06-2014, 12:17 PM Last Post: Xenovant |
|
Slot ability modification | madsiur | 6 | 9,068 |
02-17-2012, 08:39 PM Last Post: madsiur |
Users browsing this thread: