Post new topic    
Metal Slime
Send private message
Help ! 
 PostSun Jan 22, 2012 5:10 am
Send private message Reply with quote
Hello fellow slimes,

There are two issues I'm currently having trouble with:

*If a default weapon uses an attack that costs items, the attack will still work even if you have none of the required item left.

*I have an NPC set to "on touch" and "follow player". The NPC triggers a textbox, then a battle, then another textbox with a switch to turn the NPC "off". However, I'm finding that the NPC will usually be activated again after this sequence. I've tried suspend npc etc to no avail. It almost seems like the NPC activation is being "stacked" before "suspend NPC" can activate.

Thanks in advance!
Metal Slime
Send private message
 
 PostSun Jan 22, 2012 3:30 pm
Send private message Reply with quote
Does your item-costing attack have the "check costs when used as a weapon" bitset on? If not, that's probably the problem.
Attacks used through weapons don't check for costs by default (which also includes whether or not they can be muted, oddly enough), so if you don't have that bitset on you'll always be able to use the attack regardless of whether you can pay for it or not.

Not sure about the NPC problem, though.
FYS:AHS -- Swapping out some step-on NPCs for zones + each step script
Puckamon -- Not until the reserve party is expanded.[/size]
Liquid Metal King Slime
Send private message
 
 PostMon Jan 23, 2012 2:22 am
Send private message Reply with quote
When you say "suspend npc" do you mean the script term? If so that's not what that does.

Anyways, what you should do is just have the first textbox turn the npc off. This is just the way you have to do it. Something takes place during battles that makes these sorts of things a bit screwy.
Metal Slime
Send private message
 
 PostMon Jan 23, 2012 5:11 am
Send private message Reply with quote
Thanks for the replies.

Yes, the bitset "check costs when used as a weapon" is on. In fact, if I have the default weapon set to "unarmed" and then equip the gun, it functions perfectly fine.

When the gun is the default weapon, it still consumes the items ("ammo") just fine. The problem is that even if there is no ammo in the inventory, the attack still works.

Spoonweaver: Thanks, perhaps I'll use some backdrops during the conversation so that the player doesn't notice the NPC disappearing so abruptly.

=)
Metal Slime
Send private message
 
 PostMon Jan 23, 2012 2:06 pm
Send private message Reply with quote
Wow, that's really weird. That (using up MP/HP/items, but not becoming disabled when you don't have enough left) is exactly what normally happens when you don't have the bitset on for a weapon attack, but it's happening even when it is on...

Must be some sort of bug related to setting something as a default weapon, then.
FYS:AHS -- Swapping out some step-on NPCs for zones + each step script
Puckamon -- Not until the reserve party is expanded.[/size]
Metal Slime
Send private message
 
 PostMon Jan 23, 2012 2:51 pm
Send private message Reply with quote
Instead of killing the NPC and using backdrops, perhaps you could use alterNPC to change the NPC activation from touch to use?
I am Srime
Metal Slime
Send private message
 
 PostMon Jan 23, 2012 10:58 pm
Send private message Reply with quote
Thanks MSW I never thought of that!

Any way I could get some word from either James or TMC on the attack issue? It seems like a bug to me.
Liquid Metal King Slime
Send private message
 
 PostMon Jan 23, 2012 11:07 pm
Send private message Reply with quote
So the attack that is attached to the default weapon is ignoring the "Check costs when used as a weapon" bitset?
Metal Slime
Send private message
 
 PostTue Jan 24, 2012 1:13 am
Send private message Reply with quote
Correctomundo! The item is still consumed, but when there are 0 such items left the attack still proceeds instead of being "greyed out".
Metal Slime
Send private message
 
 PostSat Jan 28, 2012 6:27 am
Send private message Reply with quote
James, have you had a chance to look at this? I can provide you with an rpg file to demonstrate the issue if you'd like.

Thanks =)
Slime Knight
Send private message
 
 PostSun Jan 29, 2012 12:21 am
Send private message Reply with quote
I got this to work before, I'm sure of it. It worked in Bad Fellows.
I'm not sure what the settings were but just telling you it's absolutely possible if you go over the right bitsets.
Liquid Metal King Slime
Send private message
 
 PostSun Jan 29, 2012 9:36 pm
Send private message Reply with quote
An rpg file that demonstrates this would be very helpful
Metal Slime
Send private message
 
 PostThu Feb 16, 2012 12:51 am
Send private message Reply with quote
Ok I fixed the problem.

I'm not 100% sure, but it seemed that if an attack with an item cost is chained to another attack without the item cost, it will continue to work even when the item is depleted. I fixed this by checking the bitset "do not chain if attack fails".

Thanks for all the help!
Liquid Metal King Slime
Send private message
 
 PostThu Feb 16, 2012 1:15 am
Send private message Reply with quote
guo wrote:
Ok I fixed the problem.

I'm not 100% sure, but it seemed that if an attack with an item cost is chained to another attack without the item cost, it will continue to work even when the item is depleted. I fixed this by checking the bitset "do not chain if attack fails".

Thanks for all the help!


Hmmm. I am glad you found a workaround, but that sounds like it would still be an engine bug. If the cost is on the first attack, then the cost should be respected.
Display posts from previous: