Jump to content

Picking up items.


Chazler

Recommended Posts

EDIT: Looking back I see I posted this in the wrong section, if someone would be so kind to tell how to move/delete a post that would be wicked.

 

 

So in my spare time I'm working on a cowkilling script.

 

244ef266c4.png

 

Now this works up to the part that it attacks a cow. After a kill or when the player is not currently under attack i'd like it to pick up cowhides. Now am I curious as to where my code falters and does not pick up the cowhides either not looted by others or gained from a kill.

 

Cheers,

Chazler

Edited by Chazler
Link to comment
Share on other sites

Looks like in your getState, the code is never getting past going into the kill case (cause your inventory is rarely full), remember code is run in the order it appears so it cannot get past the kill case (the code you have for looting looks completely correct so just play with the case definitions a bit.

 

 

Edited by Apaec
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...