Golden Sun Hacking Community
March 21, 2019, 05:33:33 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Creating new spell effects  (Read 2214 times)
0 Members and 1 Guest are viewing this topic.

Regular Member
**

Coins: 0
Offline Offline

Posts: 195

« on: February 16, 2015, 04:12:00 PM »

Thread for documenting and discussing the creation of new spell effects, and modification of old spell effects.

My own personal wish list:
- Modifiers to Elemental Power
- Stun to decrease attack by 50% temporarily instead of immobilizing the foe

Relevant: http://forum.goldensunhacking.net/index.php?topic=2067.msg41674#msg41674
Quote
Base success rates (assigned in the function at 080B0514):
080B0660 - 70% (12/13 - Def debuffs)
080B0664 - 75% (16/17 - eRes debuffs)
080B0668 - 30% (22 - Charm)
080B066C - 45% (24 - Sleep)
080B0670 - 55% (18/19 - Poison/Venom, 25 - Seal)
080B0674 - 25% (26 - Haunt)
080B0678 - 20% (27 - Instant Death)
080B067C - 65% (20 - Delusion, HP Drain)
080B0680 - 35% (21 - Confuse, 34 - HP to 1)
080B0684 - Flat 60% (56 - Revive to 50%)
080B0688 - Flat 90% (57 - Revive to 80%)
080B068C - Flat 70% (73 - Revive to 60%)
080B0690 - 60% (8/9 - Attack debuffs, 28 - Curse, 32 - PP Drain, 80 - Curse)
080B0694 - 50% (35 - May ignore 50% of Def)
080B0698 - 40% (23 - Stun, 85 - Stun)
080B069C - Flat 100% (Def buffs, eRes buffs, Regen, Reflect, Break... seems to be the default for anything that either shouldn't fail or has its success rate calculated differently)
Logged
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 0
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4570

« Reply #1 on: February 16, 2015, 08:45:41 PM »

It really depends on what you want the ailment to do; some would be substantially easier than others, and then you also have the issue with effect graphics (like the "ZZZs" when asleep), which seems to be set up in a way that makes adding more graphics to the rotation a tad trickier.

That being said, elemental power boosts work a bit weird in GS. The game will update them and play an animation if it recognizes that your ePow levels are wrong, like when using a summon (to boost them) or save game data with abnormal stats during/after a character's turn. Additionally, it will play a different animation if a djinni is set at the end of the turn and do something similar with recalculating those stats. These would have to be modified a bit to take new RAM values into account, since they would just update the eStats again and then the effects wouldn't work. Downside with that is the limited space you have in character RAM to add a lot of stuff, since a lot of the values are already used for other ailments and such; depending on how you want the boosts to work, you may need anywhere from 1-8 bytes for both raising and lowering it. In my opinion, it wouldn't be worth the effort if summons can still provide ePow boosts because they can already do that and more (as can gear), and lowering ePow would be silly when you can just boost your resistance with a universal buff effect (or fix it via summon, if a battle lasts long enough for either you or the enemy to use one reliably).

As for paralysis, one may have to play around with battle formulas to do that. I wouldn't expect it to be too hard though, since Caledor set up something marginally related with the PP multiplier. I think one would have to add a little code in the main portion of the formula stuff, and then add a little more in the added damage/multiplier sections so the formulas can use it. Oh, and this person would also have to alter the "can't act if confuse/charm/sleep/stun" check that is elsewhere in the code. I can't remember where that is without looking at the document, but I'll either double check that or take a look at my prototype confuse/charm code to figure it out later. Might not be the greatest idea if defence buffs are still in the game and delude can lower overall accuracy, but it could work well against enemies or something. Although, I wonder if either an agility modifier or an equipment curse-like effect might be better... Ah well.


And now for something a little different, but I kind of like the idea of tweaking delusion a bit to make it both stronger and persistent. Basically, my idea is the following: delusion can reduce physical attack accuracy (not spells; bind is better at limiting those), but the counter for the effect goes up rather than down. Getting inflicted sets the counter to 1, and then it will go up by one every turn until it caps at something like 5-10. Every point in the counter reduces your accuracy by about 10%-20%, and the only way to cure it would be to either use restore/elixir/other healing ability or go to an inn (or die I guess). Another cool thing about this is that the chance for luck to cure it in the lower levels could still apply, but will decrease the longer you have it rather than increase. Eventually luck would be unable to cure it. This is more of an old effect with newer mechanics I guess, but I have to say I rather like the idea. Might make a patch to experiment with this later, but I'd want to confirm some of the details first.

Thinking about that, I guess bind could be reworked with a similar mechanic. Maybe stun too. Might have to think about those ones some more though. Would be even better if they had minor effects on the overworld too.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 0
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #2 on: March 28, 2015, 10:28:20 PM »

Off chance a poison for PP would be doable?  Or perhaps something that lowers the accuracy of abilities so that they're not auto-hit anymore?
Logged

View Profile WWW
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 0
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4570

« Reply #3 on: March 29, 2015, 12:19:24 AM »

PP Poison: Most likely with some work, but the way the current poison value works is it's basically a multiplier for poison damage (caps at 2 in the overworld). 0 = no poison, 1 = 10% (or a set 5% in the field), and 2 = venom values. I can't remember if there's enough room to fit it in as an entirely new ailment or if you would have to double up, but doubling up could be a viable solution in this case given that poison/venom effectively cap at x0A (10 in decimal) yet has an entire byte to work with. Downside is it may be tricky to add a graphic like some of the other ailments have though, so actually having an indicator showing that a character is inflicted with it might actually be harder than implementing the effect. Never tried though, so I can't be too sure.

As for the accuracy thing, I'm pretty sure you would have to change how accuracy works in general. Accuracy is only a thing with certain attack/action types and/or formulas, and one would have to add the mechanic to other attack/action and/or formula types to do it. The downside is it could be more work than it's worth, unless you're fine with scrapping seal/bind or something. Might be possible to tweak it so a PP requirement of 0 is required instead, but I don't know. I haven't really looked into accuracy stuff before, so Fox may be able to explain this one better.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Misery
Bad Luck

Great Member
***

Coins: 0
Offline Offline

Gender: Male
Clan Position: Mercury Hack Leader
Posts: 710

« Reply #4 on: March 29, 2015, 01:25:27 AM »

Oh right, I've been meaning to ask this - how would one go about creating a duplicate of an existing effect? That would be useful for creating abilities with different success rates for the same ailment. I have a feeling it shouldn't be that hard to do.
Logged
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 0
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4570

« Reply #5 on: March 29, 2015, 02:07:02 AM »

Oh yeah, that actually wouldn't be hard to do at all. Ability effects are all basically organized in a pointer list (with a couple exceptions), so all you would need to do is duplicate the pointer and assign a different success rate to it. That's how bind/seal does it for the spell vs. djinni effects, and there's a similar thing with the multi-target delusion effect as well. The only thing to keep in mind is that you would have to move the pointer list if you want to actually increase the total amount of effects, but then it may not be fully compatible with the editor.

The list is at #08121510, starting with ability effect #0 if memory serves me correctly. However you assign success rates will depend on whether or not you use the patch or some other hack.

Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
March 04, 2019, 08:45:44 PM
Fox: Aw.  I kind of want to suggest dressing up in a banana costume.  No wait, that's a bad idea.
March 04, 2019, 04:24:10 AM
Average Wind Seer: *angry gorilla noises that roughly translates to "Stay the [redacted] off my island and don't touch my [redacted] bananas"*
March 04, 2019, 03:06:07 AM
Fox: Gosh. This is like playing whack-a-mole! What's taking you so long with the bananas?! :D
February 28, 2019, 10:20:28 PM
Fox: And that other guy I thought for sure I saw a moment ago.... maybe he left again.
February 28, 2019, 10:16:29 PM
Fox: :O Wha-? I guess you didn't bring an army? If you plan on bringing a bunch, I would have suggested recruiting more people. Like me.
February 28, 2019, 09:57:15 PM
Average Wind Seer: I just reached the Island, but I'm planning on getting as many bananas as I ca- OH GOD!!! OH NO HE'S GOT ME!!! SOMEONE PLEASE HELP ME!!! AAAAAAHHH!!! NO! NO! NOOOOOOOO-!! *angry gorilla noises are heard as audio fades to static*
February 28, 2019, 09:13:45 PM
Fox: Huh. I didn't know you like going on adventures, that sounds interesting. How many bananas are you bringing?
February 28, 2019, 02:32:28 AM
Average Wind Seer: a brilliant plan. I'll go get the bananas from that seemingly uninhabited island with a large sign with the letters "D.K." written on it
February 28, 2019, 02:19:23 AM
Fox: I have an idea. If it turns out they love bananas, we can get some more as bait to keep them here?
February 27, 2019, 03:00:14 AM
Average Wind Seer: They consumed so much of the banana that only the essence of the peel remained TT^TT
February 27, 2019, 02:17:50 AM
FoxYou don't see it in the trash can over there?  Maybe that was someone else's.  .... Wait, Essence of Banana Peel?
February 27, 2019, 12:06:56 AM
Average Wind Seer: nope, that's just Essence of Banana Peel that they left behind :(
February 26, 2019, 11:39:52 PM
Fox: That's unfortunate.  I think they left the peeling for you.  :/
February 23, 2019, 05:18:08 AM
Average Wind Seer: .... yes.... I was gonna eat that banana....
February 23, 2019, 02:47:39 AM
Fox: steal*
February 23, 2019, 02:47:31 AM
Fox: Did they still your banana?
February 22, 2019, 02:32:19 AM
Average Wind Seer: hecc my ba- oh snap there they go :/
February 21, 2019, 10:14:10 PM
Fox: Shh... Don't scare them away.
February 21, 2019, 07:20:30 AM
Average Wind Seer: shocking, isn't it
February 21, 2019, 07:06:58 AM
Luna_blade: holy moley 4 users online

Affiliates
Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.097 seconds with 22 queries.