View previous topic :: View next topic |
Author |
Message |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Mon Feb 04, 2008 8:19 pm Post subject: Dumb question... |
|
|
Can enemy attacks add/subtract items to your inventory? For example, if you make an enemy attack with a cost of 1 potion, will that enemy be able to steal a potion from your inventory?
Follow-up question: Is it possible to change a weapon's attack through plotscripting? _________________ My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah... |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Wed Feb 06, 2008 2:14 pm Post subject: |
|
|
Answer 1: I'm pretty sure not, although you could have an attack turn on a tag and check that after battle so that the item is lost afterwards. This is a pretty poor solution though, so I think that this would make a good feature request. Why not have attacks with item costs enforce those costs on the standard item inventory even when enemies use them? This could be controlled by a general bitset, or even on attack-by-attack basis.
Answer 2: Again no. Items are very inflexible things in the world of plotscripting. The best you could do would be to have a before-battle script that checks to see if the correct weapon is equipped and if it should be a different attack, and then right beforehand, swap in a separate weapon with the correct attack (the player will never see this separate weapon, but it will take up another item slot). You could also have two items with the same name, but then if you are using item:name constants in any of your scripts, they will have to be replaced with ID numbers. _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Fri Feb 08, 2008 6:18 pm Post subject: |
|
|
Here's another question... I haven't had time to test so I'll just ask... When an enemies attack is cancelled, is their speed bar set to zero or set to 100%. I think it might be a useful feature to make attacks capable of doing both. That way one would be devastating to an attack by wasting a turn, the other would just waste the time the enemy has spent on the attack's delay. I might be alone in this thought. _________________ My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah... |
|
Back to top |
|
 |
Newbie_Power

Joined: 04 Sep 2006 Posts: 1762
|
Posted: Fri Feb 08, 2008 6:55 pm Post subject: |
|
|
I think cancel attack is done if you are in the "delay" phase of an attack, because it was not put in for attacks designed for canceling, but rather put in for old stun behavior (stun no longer cancels the attack by default). _________________
TheGiz> Am I the only one who likes to imagine that Elijah Wood's character in Back to the Future 2, the kid at the Wild Gunman machine in the Cafe 80's, is some future descendant of the AVGN? |
|
Back to top |
|
 |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Fri Feb 08, 2008 7:17 pm Post subject: |
|
|
I understand that aspect of it. I must've been unclear. My question is, when it cancels an attack, does it reset the speed bar to empty or does it reset it to full? _________________ My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah... |
|
Back to top |
|
 |
Newbie_Power

Joined: 04 Sep 2006 Posts: 1762
|
Posted: Fri Feb 08, 2008 7:20 pm Post subject: |
|
|
Since the attack was already chosen, the speed bar would reset on its own. I do not know the behavior of if getting hit by attack cancellation happening before the attack is chosen, though I doubt it will do much.
I could be wrong on the off-chance the attack cancel bitset intentionally does more than the old behavior. _________________
TheGiz> Am I the only one who likes to imagine that Elijah Wood's character in Back to the Future 2, the kid at the Wild Gunman machine in the Cafe 80's, is some future descendant of the AVGN? |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Sat Feb 09, 2008 8:26 pm Post subject: |
|
|
The Drizzle wrote: | I understand that aspect of it. I must've been unclear. My question is, when it cancels an attack, does it reset the speed bar to empty or does it reset it to full? |
It should be set to empty (If not, that would be a bug) |
|
Back to top |
|
 |
|