View previous topic :: View next topic |
Author |
Message |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Mon Nov 09, 2009 7:45 am Post subject: guns consume bullets |
|
|
I made the attack of the gun consume a bullet but it only works as a spell.
When used as a basic weapon, its shots are still infinite, is there a way to make a standard gun attack require bullets?
edit: (so when the character has ran out of bullets, either he can't attack at all, maybe use a speal instead if he has MP or possibly make the gun cause a different attack like hitting the enemy with the gun?) |
|
Back to top |
|
 |
Raekuul Delicious!

Joined: 31 Mar 2004 Posts: 641 Location: Nowhere
|
Posted: Mon Nov 09, 2009 10:17 am Post subject: |
|
|
I think the nightlies have "Chain-instead"...
Lessee... have the base attack chain instead to the shoot attack if "have bullets" tag is on, have the shoot attack consume bullets...
Thank {this.dietyName} for Chain-instead _________________ A broken clock is still right twice a day. |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Mon Nov 09, 2009 10:30 am Post subject: |
|
|
There's no tag instead tag in the attack settings, can i see that in script? |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Nov 09, 2009 10:34 am Post subject: |
|
|
Make sure you're using the most recent nightly. _________________
|
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Mon Nov 09, 2009 11:21 am Post subject: |
|
|
Wow! that version is so cool! Thank you, thank you :-) |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Mon Nov 09, 2009 11:34 am Post subject: |
|
|
just one thing though, how do i set the tag to off if the bullets are depleted? |
|
Back to top |
|
 |
Nepenthe

Joined: 27 Sep 2004 Posts: 132
|
Posted: Mon Nov 09, 2009 12:18 pm Post subject: |
|
|
You should be able to use the "is in inventory" tag on the bullet item. _________________ My art (and random photos)! |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Mon Nov 09, 2009 12:34 pm Post subject: |
|
|
i did, without bullets it works, she just hits them with the gun and shoots when you buy some but the thing is, when the bullets are all used up, the gun still fires, (maybe because the tag is till on when the bullets were in the inventory)... What i have to do is to set the "has bullets" tag to off when there are no more bullets in the inventory, but how do i do that? |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Nov 09, 2009 2:22 pm Post subject: |
|
|
BlastedEarth wrote: | (maybe because the tag is till on when the bullets were in the inventory)... |
This is almost certainly the case and a bug. _________________
|
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Tue Nov 10, 2009 7:25 am Post subject: |
|
|
is there a way? |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Tue Nov 10, 2009 8:27 am Post subject: |
|
|
File a bug report! See the wiki for details. It's fun and easy. _________________
|
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Tue Nov 10, 2009 11:32 am Post subject: |
|
|
there filed it in bugzilla.... |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Nov 10, 2009 5:59 pm Post subject: Re: guns consume bullets |
|
|
BlastedEarth wrote: | I made the attack of the gun consume a bullet but it only works as a spell.
When used as a basic weapon, its shots are still infinite, is there a way to make a standard gun attack require bullets? |
There is a very easy way to do this. You don't need tags or chaining.
In the attack editor, look in "Edit Bitsets" and you will find a bitset for "Check costs when used as a weapon"
Turning that bitset on will make the ammunition work the same as it does when the attack is used a s a spell.
However, the fact that item tags are not being updated in battle IS a bug, and I will look into it. |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Wed Nov 11, 2009 3:00 am Post subject: |
|
|
Wow it was that easy! Oh, and thanks!
I'm thinking, in games like fallout 1 and 2, you can miss some turn to change your weapon. Can i do the same in ohr?
I'm thinking of using the unequip, change equipment and equip where plotscripts but can you do that in battle? And another problem is opening the menu in battle. I think it would be easier to just let the attack run a script?
Like:
1. weapon can be used as an item in battle and it is equiped when used like that.
2. using the item like that unequips the current weapon
3. ex. beam rifle ran out of energy packs ---> open item menu ---> use handgun ---> display: "weapon changed"
4. next turn the character attacks with handgun until bullets are depleted and she decides to change again. if all bullets are spent, she can choose knives or even unarmed...
Is this possible?
----------
Character sheet in the selection screen show weapon proficiencies so it could really be exciting to have them re-equiping in battle... |
|
Back to top |
|
 |
NeoSpade Of course!

Joined: 23 Sep 2008 Posts: 249 Location: Wales GB
|
Posted: Wed Nov 11, 2009 8:17 am Post subject: |
|
|
I'm gonna point this outdead quick (and I'm sorry that this is a tad off-topic, + you're gonna hate me for this but...)
You spelt couldn't as cound't (twice) and (I think) when you wrote cap you meant chap prehaps? I don't know about that second one but definately check your spelling of couldn't. Sorry, thought I'd just point this early on, sorry about that. |
|
Back to top |
|
 |
|