Author Topic: CEP & the default script / Gold Encumberance  (Read 979 times)

Legacy_the.gray.fox

  • Full Member
  • ***
  • Posts: 214
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #15 on: August 07, 2010, 02:13:50 pm »


               Hello.

Be aware, the OnAcquireItem event does not fire -for GP- in case you acquire
a pile of GP from a placeable, and drag it directly into a sub-inventory in
your inventory (that is, drag from placeable -> to -> a bag of holding of yours).

There is no solution for this, other than to periodically check for clandestine GP
into a character possession. And then convert the GP found to whatever you want to.

Either you go with a HB for it, or you run a GP-check every time an item is
acquired or unacquired (this 2nd method is what I chose).
It shall not be flawless, but it will ensure that you do not get to retain your
clandestine GP amounts for long.


Side note:

I have built up a custom system for Gold Weight some time ago, wherein GP amounts
are converted into Gold Coins supposed to be kept inside a "wallet" bag (Gold Bag).
The amount of Gold Bags you possess determines how many Gold Coins you can carry
with you. Gold Bags are supposed to only accomodate Gold Coins. If you attempt to put
some other item inside a Gold Bag, or also if you try to relocate Gold Coins outside of
your Gold Bags, the next time you acquire or unacquire something -> your inventory is
rearranged (Gold Coins are moved inside Gold Bags, and non-Gold Coins are moved
out of Gold Bags).
If you interact with a shop, all your Gold Coins are converted to GP (so you trade as usual).
If you close the shop, any GP in your possession is converted back to Gold Coins.

Let me know if you are interested in it.


-fox
               
               

               


                     Modifié par the.gray.fox, 07 août 2010 - 01:15 .
                     
                  


            

Legacy_Scarss

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #16 on: August 08, 2010, 01:42:47 am »


               Well, I removed the crp_s hak after importing it as an erf, overwrote the default script with my own and discovered that the core I've built doesnt allow it to work as it does in a standard mod.  Deffinetly one of those "Doh!" moments..  Not really sure whats stopping it, and I deffinetly have no clue what calls the default script to make it function.  'Posted

fox:  I'm interested.  Is this the one I saw on the vault? 
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #17 on: August 08, 2010, 02:33:16 am »


               

TSMDude wrote...

Was going to print out the scripts BUT this might be better for you as it is the system we used and adapted. It works well, does not have any issues as far as I can see and is very easy to adapt to waht you want.

http://nwvault.ign.c...s.Detail&id=411

Not to sound like a broken record but the one I linked is used in our module and works very well for us. We have np with it or its implmenation on our module. It ise asily adapted and probally something you would like if you take a look at it.

It works on the UnAquire and Aquire Scripts converting gold from treasure, placeables and several other spots. If you do need help you can contact me on Skype or on our forums or here and I will gladly walk you through implmenting it.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #18 on: August 08, 2010, 02:40:46 am »


               There is nothing that could stop it from running.  Unless you have altered something in the characters BIC file.  'default' is the name given to the script for every event in the players bic file.  the HB is just the only one fires.  (or at least people keep saying that I have never tested it to make sure. But Axe was pretty adimate about it.)  So if your script is not firing It is probably a problem withthe script. Or he does not have the "rp_ce_marker" on him. whatever that is.  What ever it is  If he does not have it the script stops and does not run.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #19 on: August 08, 2010, 06:57:23 am »


               

Lightfoot8 wrote...

There is nothing that could stop it from running.  Unless you have altered something in the characters BIC file.  'default' is the name given to the script for every event in the players bic file.  the HB is just the only one fires.

LINK
               
               

               


                     Modifié par ShaDoOoW, 08 août 2010 - 05:58 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #20 on: August 08, 2010, 08:02:03 am »


               

ShaDoOoW wrote...

Lightfoot8 wrote...

There is nothing that could stop it from running. Unless you have altered something in the characters BIC file. 'default' is the name given to the script for every event in the players bic file. the HB is just the only one fires.

LINK


Yes, I mentioned the trap thing earlyer in the thread.  I still also question the other PC events fireing or not.  Short answer here is there are a lot of people the support the use of 'default' as a PC heart beat.  I myself advoid it and refuse to use it.  Even if they are right on it being the only PC Event it fires for. It was never meant to be used this way.  It is nothing short of Side Effect programing.  Now I am not one to avoid Side Effect programming, I do it all the time. But not without more information on how the system works and you always have to be ready for it to came back and bit you in the ........

All in all ShaDoOoW is right.  You would be better off useing a pseudoheartbeat instead.

My opinion anyway.  Im sure Axe would disagree with me again.
 
L8
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #21 on: August 08, 2010, 10:31:20 am »


               I heard default also fire for OnDeath and OnConversation event, I think it was Virusman who claimed that, long time ago anyway.
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
CEP & the default script / Gold Encumberance
« Reply #22 on: August 10, 2010, 09:22:33 pm »


               I don't want CRAP in my module either.':bandit:'*shifty eyes*