[XP] Tons of Add-ons

Started by Blizzard, January 09, 2008, 08:50:47 am

Previous topic - Next topic

FlyingHamsta

The SP damage addon doesn't seem to correctly restore SP when used on allies/self.  It just destroys SP as if you were an enemy.

Aqua

Set the power to a negative number and it should work fine.

FlyingHamsta

August 30, 2008, 05:26:23 pm #182 Last Edit: August 30, 2008, 05:33:30 pm by FlyingHamsta
Ah, well I figured out how to get it to restore SP, but it seems like sometimes at random (I have no idea what causes it) but the abilities will damage/heal HP instead of SP.  Not sure what would cause the issue, as it is random.

EDIT: After trying to recreate the bug, I think I determined that it just happened the first time I'd modify the ability.  After that it seems to work correctly.

TheHackMan

For the caterpillar portion of the script, if you have it set to remove someone from the caterpillar after they die does that only work for the people who aren't forced to be in the party?

Blizzard

I'm not sure I understand what you mean. This works for all actors in the party.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

FlyingHamsta

With the SP damage skill, if you heal SP to a target with full health, it will cast a heal to their hit points instead of SP.  Using version 6.54b

Blizzard

SPKILL_IDS = [58, 59, 60]


You need to add the skills ID to this array, otherwise it won't be recognized as skill that affects SP. And you have to turn it on.

    @SP_DAMAGE_SKILL   = false


    @SP_DAMAGE_SKILL   = true

Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

FlyingHamsta

September 04, 2008, 07:25:15 pm #187 Last Edit: September 04, 2008, 07:26:28 pm by FlyingHamsta
I've done those steps.  The thing is, it works just fine if the target is not at full health.

Basically, if I'm casting an ability to recover SP on Battler A, if Battler A is NOT at full health, he will gain SP.  If he is at full health, the ability will heal him for HP (and heal him for nothing anyways since he's at full health.)  I haven't tested it with dealing damage to SP, only restoring SP.  I'm not a scripter but I suspect it has something to do with Game Battler handling heals at full health differently, and as such bypasses the SP Damage script.

Blizzard

Ok. I updated Tons, but I haven't tested it. Try it out now.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

FlyingHamsta

September 04, 2008, 09:09:49 pm #189 Last Edit: September 04, 2008, 09:13:17 pm by FlyingHamsta
I just tested it, and if the target of the SP recover skill is at full health, it no longer heals HP nor SP, it simply does has no effect.  =/  It still works if the target has less than full health.

By the way, the SP text was bugged which is not really a big deal, it would show -SP when I was recovering SP, and vice versa.  I fixed it by changing


self.damage = sprintf('%+d %s', self.damage, $data_system.words.sp)


into

self.damage = sprintf('%+d %s', self.damage*-1, $data_system.words.sp)


=]

Blizzard

Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Pokol DaErran

If I knew how to insert the skill IDs into Multi-Hit, this would be awesome. XD
But I won't pester you now, I won't need that until the third demo of my game or so.
"...Sometimes, the impossible can become possible- if you're awesome!"
--Bolt

FlyingHamsta

Quote from: Blizzard on September 04, 2008, 09:18:56 pm
Ok, I put up another fix.


Hmm, new version is back to original problem of healing HP when target at full health.

Blizzard

September 04, 2008, 09:42:15 pm #193 Last Edit: September 04, 2008, 09:46:08 pm by Blizzard
It's hard to think clearly at 3am. There you go, I fixed it.

@Pokol:

#   Further there are 3 configurations. Configuration 1 is for weapons,
#   Configuration 2 is for skills and Configuration 3 is for normal enemy
#   attacks. Use following template to set up how many hits should be done:
#
#     when ID then return HITS
#
#   ID   - ID of weapon, skill or enemy, depending on the configuration number
#   HITS - number of hits
...
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 1
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 1 then return 3
    when 2 then return 4
    when 3 then return 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 1
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
...
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 57 then return 3
    when 58 then return 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
...
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 3
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 1 then return 3
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 3
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Is there a conspiracy in the RM community? Something like
Quote from: Leader of the conspiracyNEVER READ SCRIPT INSTRUCTIONS! WE WILL ANNOY THE HECK OUT OF SCRIPTERS WITH IRRELEVANT, ALREADY ANSWERED QUESTIONS!
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Pokol DaErran

Quote from: Blizzard on September 04, 2008, 09:42:15 pm
It's hard to think clearly at 3am. There you go, I fixed it.

@Pokol:

[code]#   Further there are 3 configurations. Configuration 1 is for weapons,
#   Configuration 2 is for skills and Configuration 3 is for normal enemy
#   attacks. Use following template to set up how many hits should be done:
#
#     when ID then return HITS
#
#   ID   - ID of weapon, skill or enemy, depending on the configuration number
#   HITS - number of hits
...
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 1
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 1 then return 3
    when 2 then return 4
    when 3 then return 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 1
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
...
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 57 then return 3
    when 58 then return 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
...
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 3
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 1 then return 3
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 3
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Is there a conspiracy in the RM community? Something like
Quote from: Leader of the conspiracyNEVER READ SCRIPT INSTRUCTIONS! WE WILL ANNOY THE HECK OUT OF SCRIPTERS WITH IRRELEVANT, ALREADY ANSWERED QUESTIONS!
[/code]

Actually, there's a READ SCRIPT INSTRUCTIONS, BUT DON'T UNDERSTAND THEM AND ASK ANYWAYS conspiracy. XD
"...Sometimes, the impossible can become possible- if you're awesome!"
--Bolt

FlyingHamsta

Thanks so much for the fix Blizz, worked perfect =]

And to answer your question about MultiHit, look at this section

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when 57 then return 3
    when 58 then return 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration 2
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


Basically you set up your multi hit skills with

when x then return y


x being the ID of the skill you want to multicast (the ID is the number of the skill in the database) and y being the number of times it is cast.  Also remember to set @MULTI_HIT to true, or the entire script won't work =P  Be sure to delete any of the default set ups.

Caro Ru Lushe

I notice something awckward, dunno if it was intentional or not, but whenever I use passive skills, the effect stays even after battle.

& They don't work unless the character receives damage <___<

Was this intentional?

Blizzard

First: Yes.
Second: No.

Passive skills work always, that's why they are passive skills. I can add an "ONLY_IN_BATTLE" option, though.
Can you be more specific with the damage part? I can't figure out what could be causing that, but I could be misunderstanding what you mean.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Caro Ru Lushe

An "Only_in_Battle" option would be neat. :x


=/ What I meant in the damage part, The passive skill says "miss" all the time, I add damage in the database, and the skill works, but the character takes damage, I took the damage off & it continues to miss, I check if it happened in the menu, the status won't raise, I put "receive 1 damage" in the database, test and the passive skill works fine, except the player looses HP. -__-;; Hope I was clear

Blizzard

Just as it says: Passive skills, you can't use them. :P Best you just set the usage "Occasion" to "Never". Those skills are similar to status effects. In fact maybe people would be better of using status effects. -_-
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.