creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
General Forum
old
DS inventory tweak   
Allekha

Allekha
United States  

 visit Allekha's website: Hello, Robotto blog
  10/14/2016  2

Today while rooting around in the bootstrap folders for code examples that I could attach to new wiki articles on CAOS commands, I found this in the 'ds gui - inventory.cos' file:
* This little script checks to see if the hand is holding something
* over the inventory. If so, it makes the inventory pop out so you can
* drop things into it. It was decided during testing of C3 that this was
* annoying rather than helpful - you decide! Uncommenting the following script
* will restore this feature.
*
*scrp 1 2 11 75
* inst
* targ pntr
* doif held <> null
* doif hots = ownr
* targ ownr
* doif ov00 = 0 and clac = 0
* mesg writ targ 0
* endi
*
* endi
* endi
*endm

Well, you also have to uncomment this line at the top first:
*imsk 4

...but it does work!

Caveat: you do have to jam your cursor pretty well into the inventory area, not just hover over the edge of the button - if you really wanted, you could just drop stuff into the inventory blind, but this way lets you organize things. Other than that, it works pretty nicely!

Thought I would share for other people who might like this feature, especially since it's such an easy change to make or undo.

For those who don't know, 'uncomment' just means to take away the * in front of the code lines ('scrp 1 2 11 75' and so on - don't uncomment the paragraph explaining what the code does). Also, the changes will only show up in newly created worlds. If you want to change the inventory script for an older world, after you've edited the .cos file, go to that world, hit ctrl-shift-c to bring up the command line, then type:
ject "ds gui - inventory.cos" 7

to see the new inventory behavior. This will empty out your inventory if anything is in it.

 
Papriko
Peppery One

Papriko



  10/14/2016

Let me be a douche here. If nobody else is, I feel this stuff ain't gonna be addressed :P
A) Things can be moved to inventory via CTRL-I. It will automatically take whatever you hold and banish it to your inventory.
B) As far as I know, JECT uses binary flags. 1, 2 and 4 for different actions. 7 is the ideal number to get done "all the things!". I am not sure how the engine would react to a JECT of 9. It might just cap out at 7, but it might also use actual binary flags to determine what is going on, causing total trash...


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Allekha

Allekha


 visit Allekha's website: Hello, Robotto blog
  10/14/2016

It's fine, Papriko :)
a) That's true, though some people prefer doing stuff with the mouse at least some of the time - I don't think it hurts to have a couple of ways to do things.
b) My bad, I misremembered how the flags work - I think I tried it with 9 and it worked, but I'll correct the post.

 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  10/17/2016

That's a great find, Allekha! It amazes me how much stuff is inside the COS files. :)

My TCR Norns
 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki