Aller au contenu

Photo

Quick bar behaviour - don't open, just use.


  • Veuillez vous connecter pour répondre
12 réponses à ce sujet

#1
3RavensMore

3RavensMore
  • Members
  • 703 messages
I've created a custom container, and I want to make it 'usable' from the quick bar, but when left-clicked from the quick bar, it opens it, instead of uses it.  Is there any way to change this behavior from open to use?

#2
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
It is a CONTAINER, this is what containers do when you use them; allow you to access the container's inventory. What did you want it to do aside from that?

#3
lordofworms

lordofworms
  • Members
  • 252 messages
funny enough, I was looking at doing the same thing, so I am following this thread.

I wanted to use it like so.

the item (which is a custom container)
I want to be able to put ammo INTO it, and then when used it takes (1) of the items from the stack of (bullets,arrows,etc)
the problem is as 3Ravens posted:

when used in quickbar it Opens the container.
if *used* from inventory it works as it should
but it kinda defeats the whole purpose if it doesnt work from quickbar since the quickbar would be the preferred method

#4
WhiZard

WhiZard
  • Members
  • 1 204 messages

lordofworms wrote...

funny enough, I was looking at doing the same thing, so I am following this thread.

I wanted to use it like so.

the item (which is a custom container)
I want to be able to put ammo INTO it, and then when used it takes (1) of the items from the stack of (bullets,arrows,etc)
the problem is as 3Ravens posted:

when used in quickbar it Opens the container.
if *used* from inventory it works as it should
but it kinda defeats the whole purpose if it doesnt work from quickbar since the quickbar would be the preferred method


I haven't made a container with a cast spell property, but going by how other items react with multiple properties:

Try assigning to a quickslot then right clicking on the assigned slot and then selecting a different option from the radial.

#5
3RavensMore

3RavensMore
  • Members
  • 703 messages
I think I'll try creating a new base item type, and changed the QBBehaviour column. btw, does anyone know what the 'Category' column does in baseitems.2da? It's not shown here - http://nwn.wikia.com...i/Baseitems.2da

Modifié par 3RavensMore, 09 juin 2012 - 11:32 .


#6
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
I think you'd be better off simulating your effect than using an actual CONTAINER item. In such a case you would set a variable on the item representing the number of items it contains - perhaps a quivver might contain arrows in this way... when used the variable is decremented if used and the variable is zero, nothing happens, otherwise, PC is given the arrow perhaps. The other trick would be 'how to load' the 'quivver' - which may be accomplished via a special power of a 'control item' ... use it and target ordinary arrow items and poof, they are destroyed while the quivver has its arrow variable incremented.

I'm not certain what exact item and effect you hope to achieve but this should give you some ideas of how it might be handled.

#7
3RavensMore

3RavensMore
  • Members
  • 703 messages
Well, changing the QBBehaviour field didn't work.

#8
3RavensMore

3RavensMore
  • Members
  • 703 messages

WhiZard wrote...

I haven't made a container with a cast spell property, but going by how other items react with multiple properties:

Try assigning to a quickslot then right clicking on the assigned slot and then selecting a different option from the radial.


Unfortunatally, that doesn't work with a container.  The only way it's usable is from the inventory. 

#9
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

3RavensMore wrote...

I think I'll try creating a new base item type, and changed the QBBehaviour column. btw, does anyone know what the 'Category' column does in baseitems.2da? It's not shown here - http://nwn.wikia.com...i/Baseitems.2da



 
Category- is an Integer the values are:


0 - none
1 - melee
2 - ranged
3 - shield
4 - armor
5 - helmet
6 - ammo
7 - thrown
8 - staves
9 - potion
10 - scroll
11 - thieves' tools
12 - misc
13 - wands
14 - rods
15 - traps
16 - misc unequippable
17 - container
19 - healers

#10
HipMaestro

HipMaestro
  • Members
  • 1 515 messages
The part I'm NOT following in this topic is what is trying to be achieved besides getting the container item to perform an action like switch an equipped item or cast a spell.

OP, are you trying to get a single quick slot to perform different actions dependant on a variable setting?  This seems somewhat reminiscent to that fast cast rod that queues multiple buffs with a single click on a quick slot.

#11
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

HipMaestro wrote...

The part I'm NOT following in this topic is what is trying to be achieved besides getting the container item to perform an action like switch an equipped item or cast a spell.

OP, are you trying to get a single quick slot to perform different actions dependant on a variable setting?  This seems somewhat reminiscent to that fast cast rod that queues multiple buffs with a single click on a quick slot.


 The item he is working with Is an Item that is a container that also has usable Item properties added to it.
  
 I am in the same boat as Wiz on this one, I have never made such an item.   In fact you can't make such an item without making changes to Baseitems.2da.   Standard bioware item containers do not allow usable item Properties to be added to them.   

When the OP made such 2da changes and created the Item,  he found that when the item was added to a quick slot that there was no way to change the action of the quick slot away from just opening the item.  

Unfortunately do not have much to add to the solution.   My guess is that the quick slots are mainly handled by the client and that there is little to nothing you can do from the server's side.

You could try something more along the lines of an item that mimics being a container.  
Make a unique power on the item that opens the item for the player.  
The unique power would Spawn an invisiable placeable, fill it with the items and Force the PC to open it.

That way you would only have IP on the item and the Bioware Open Item Action will no longer get in the way. 
The drawback is that the item will no longer be able to be opened by just clicking on it in the inventory.

#12
3RavensMore

3RavensMore
  • Members
  • 703 messages
Thanks Lightfoot, I'll play around with that idea and see if I get something that works well enough.

#13
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
Maybe put the modified container and 2da's in a hak and put them on client side?