Author Topic: Backpack as cloak  (Read 536 times)

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Backpack as cloak
« Reply #15 on: July 19, 2014, 02:09:39 am »


               


And when you unequip the equippable backpack?  Either you are forcing the character to drop several items to make room for that page blocker item or you are allowing the page blocker to be dropped.  Why not just spawn a container when the backpack is equipped and copy the container's contents to the main inventory when the backpack is unequipped?  That way the backpack would be nothing more than a cloak with scripted support.




if you actually tried my project you would know that in such case the "backpack" is not unequipped


 


because I didnt want to do this in this way? read the above discussion perhaps?


               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Backpack as cloak
« Reply #16 on: July 19, 2014, 03:59:52 am »


               


if you actually tried my project you would know that in such case the "backpack" is not unequipped


 


because I didnt want to do this in this way? read the above discussion perhaps?




 


I am interested by claims such as "if you actually tried my project"


 


Let's looked at what I claimed


 



 


Either you are forcing the character to drop several items to make room for that page blocker item



 


This is completely correct.  If the player needs to drop items to ensure safe unequipping (perhaps, I'll discuss this later) of the cloak.  A page blocker item is created to check if there is a blank page.  If there is not a blank page then


 



 


you are allowing the page blocker to be dropped



 


So far I am right on with your methodology.  And no, this is not NWNX where you can disallow actions, your fix is to equip the item when it has been unequipped. However, there are a few things you have not considered.


 


1) Playing around too much with equip/unequip actions can cause objects to freeze in the inventory slot.  I have encountered this many times, and have actually accomplished it in your demo to show that there isn't all that much lag needed for this circumstance to occur.


 


2) There is a way to force the cloak to unequip which cannot be remedied by assigning an action to equip it.   This is often the way to get around the "cursed" flag, and will easily be discovered by characters who have their inventory limited to one page.


 


3) The backpack page may or may not merge into polymorphs depending on how the inventory is arranged.


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Backpack as cloak
« Reply #17 on: July 19, 2014, 04:15:12 am »


               

maybe if you wrote: "under this and this circumstances, the page blocker item can be dropped" you get less hostile answer from me, but you didn't



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Backpack as cloak
« Reply #18 on: July 19, 2014, 04:25:59 am »


               

"Under this circumstance" is when a player does not make room for the page blocker.  The either or construction implies this.


 


However, I am not against page blockers; I just don't see a good dynamic use for adding and removing them in game, when there can be forced unequips that cannot be countered with equips.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Backpack as cloak
« Reply #19 on: July 19, 2014, 04:51:27 am »


               

I still don't understand you.


 


How I am allowing page block item to be dropped? I mean, yes this happens on the background and in such case page block item is immediately destroyed so it won't show up for player and the function to set number of block items returns FALSE so the scripter can deal with that and tell player to clean his inventory.


 


The first part of you sentence is correct and intented. I don't understand whats wrong or troublesome on that. Its completely logical that if a player equips the item granting him the extra slots, he won't be allowed to unequip it with that inventory slot taken by items. If player needs that extra space for items, then why is he trying to unequip the item granting those extra slots? If thats for some reason needed then yes, he needs to decide what he drops on the ground which is basicall the whole purpose of this limitation (you haven't played Diablo?).


 


If someone is trying to bug this by spam equipping different cloak or spam unequipping this a freeze item issue is expected, this won't happen normally. And if this happens a relog fixes this (which is not possible in SP but again - player must try hard to break it to really break it).,


 


And it works just fine in polymorph - it still tries to disable the slot in polymorph but if that fails nothing happen only a feedback message. So after polymorph, either the page is blocked if there is nothing there or not. No issue anywhere.



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Backpack as cloak
« Reply #20 on: July 19, 2014, 05:08:01 am »


               

Correct, the dropping of the page blocker doesn't mean much on its own, unless you are thinking in terms of what that means when the item cannot be re-equipped.  As is a player can easily get their second inventory page for free from just the forced drop of the backpack (point 2).  The freezing issue is lag dependent (not necessarily having a long stream of equip/unequip, although these actions tend to use the most lag).  Polymorphs just bring up an inconsistency, not a game problem.


 


My idea was instead of messing with the already existent page blockers, to instead use a container to give the extra space (and weight reduction if that is needed).  Link the container to the backpack when it is equipped, and if there is not enough room for its contents, they will simply drop to the ground due to the way they are copied.  The container can be deleted when the backpack is unequipped.  No need to try to force the backpack to remain in its equipped position.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Backpack as cloak
« Reply #21 on: July 19, 2014, 05:29:32 am »


               

Explain me the forced reequip.


 


This is not a patch or override that player can install to use in any module (and which player would want that?). This is intented for module builders.


 


Now if a module builder add this and allow some kind of force unequip then how is that fault of my concept?


 


Plus the only force unequip I can imagine is in custom ILR where if you equip something you dont have required level its unequipped - in such situation nothing happens because there will always be a free space. Never saw different purpose for forced unequip and again - if there is its builders responsibility and he needs to deal with that.



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Backpack as cloak
« Reply #22 on: July 19, 2014, 05:54:57 am »


               

Shadooow, I have PMed you the details.