Discuss Scratch

Rook28081
Scratcher
43 posts

Monster Hunter Low Budget

sabincruz wrote:

Rook28081 wrote:

sabincruz wrote:

Hey everybody!!! I need some help with an Inventory system, btw the inventory is to keep track of monster parts, so that the Smithy can check if you have the required items to forge something, I don't have the smithy or inventory coded yet btw.
Try using lists! That is what I use. You just need to remember what the parts are… Also lists don't reset when you press flag as a bonus!
Thats the problem, idk how to make lists….
Uh, it is like a variable that stores more variables, just test it out it is cool.



This is a Signature.

I am Rook28 and I approve this message.
I spend my time coding on scratch and am always looking for feed back. I am the creator of my projects found here:https://scratch.mit.edu/studios/32125333/comments
and I am also the make for the scratch ultrakill engine found here: https://scratch.mit.edu/projects/799598921/editor/
And as always Happy hunting!
MonstieHuntie
Scratcher
7 posts

Monster Hunter Low Budget

sabincruz wrote:

Rook28081 wrote:

sabincruz wrote:

Hey everybody!!! I need some help with an Inventory system, btw the inventory is to keep track of monster parts, so that the Smithy can check if you have the required items to forge something, I don't have the smithy or inventory coded yet btw.
Try using lists! That is what I use. You just need to remember what the parts are… Also lists don't reset when you press flag as a bonus!
Thats the problem, idk how to make lists….

Okay, under variables are the list blocks. Click make a list and name it monster parts.

To delete all the items write this script.
when green flag clicked
delete (all v) of [monster parts v]

To add is a bit more complicated…
Rook28081
Scratcher
43 posts

Monster Hunter Low Budget

MonstieHuntie wrote:

sabincruz wrote:

Rook28081 wrote:

sabincruz wrote:

Hey everybody!!! I need some help with an Inventory system, btw the inventory is to keep track of monster parts, so that the Smithy can check if you have the required items to forge something, I don't have the smithy or inventory coded yet btw.
Try using lists! That is what I use. You just need to remember what the parts are… Also lists don't reset when you press flag as a bonus!
Thats the problem, idk how to make lists….

Okay, under variables are the list blocks. Click make a list and name it monster parts.

To delete all the items write this script.
when green flag clicked
delete (all v) of [monster parts v]

To add is a bit more complicated…
who doesn't know that? Not an insult, real question.

Last edited by Rook28081 (March 12, 2024 16:31:10)




This is a Signature.

I am Rook28 and I approve this message.
I spend my time coding on scratch and am always looking for feed back. I am the creator of my projects found here:https://scratch.mit.edu/studios/32125333/comments
and I am also the make for the scratch ultrakill engine found here: https://scratch.mit.edu/projects/799598921/editor/
And as always Happy hunting!
MonstieHuntie
Scratcher
7 posts

Monster Hunter Low Budget

Rook28081 wrote:

MonstieHuntie wrote:

sabincruz wrote:

Rook28081 wrote:

sabincruz wrote:

Hey everybody!!! I need some help with an Inventory system, btw the inventory is to keep track of monster parts, so that the Smithy can check if you have the required items to forge something, I don't have the smithy or inventory coded yet btw.
Try using lists! That is what I use. You just need to remember what the parts are… Also lists don't reset when you press flag as a bonus!
Thats the problem, idk how to make lists….

Okay, under variables are the list blocks. Click make a list and name it monster parts.

To delete all the items write this script.
when green flag clicked
delete (all v) of [monster parts v]

To add is a bit more complicated…
who doesn't know that? Not an insult, real question.
I know how to do it it's just that I did not have the time to write it.
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

MonstieHuntie wrote:

Rook28081 wrote:

MonstieHuntie wrote:

sabincruz wrote:

Rook28081 wrote:

sabincruz wrote:

Hey everybody!!! I need some help with an Inventory system, btw the inventory is to keep track of monster parts, so that the Smithy can check if you have the required items to forge something, I don't have the smithy or inventory coded yet btw.
Try using lists! That is what I use. You just need to remember what the parts are… Also lists don't reset when you press flag as a bonus!
Thats the problem, idk how to make lists….

Okay, under variables are the list blocks. Click make a list and name it monster parts.

To delete all the items write this script.
when green flag clicked
delete (all v) of [monster parts v]

To add is a bit more complicated…
who doesn't know that? Not an insult, real question.
I know how to do it it's just that I did not have the time to write it.
Thank you all for your help I will try this!
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

For my Smithy system I'm planning on adding to do this:
when I receive [ WeaponOrdering]
ask [What weapon type would you like to forge?] and wait
if <(answer) = [Longsword]> then
switch costume to [LongswordTree]
ask [What Longsword would you like to forge?] and wait
end
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

sabincruz wrote:

For my Smithy system I'm planning on adding to do this:
when I receive [ WeaponOrdering]
ask [What weapon type would you like to forge?] and wait
if <(answer) = [Longsword]> then
switch costume to [LongswordTree]
ask [What Longsword would you like to forge?] and wait
end
Any other suggestions?
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

Oh shoot, this is a problem tho, how would I make like the Individual parts?
Like say, I have a sword that costs 1 Kulu Ya Ku Beak, and 2 Kulu Plumes?
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

sabincruz wrote:

Oh shoot, this is a problem tho, how would I make like the Individual parts?
Like say, I have a sword that costs 1 Kulu Ya Ku Beak, and 2 Kulu Plumes?
would i make a variable for EVERY SINGLE PART?!?!?! AAAAAAAA
MonstieHuntie
Scratcher
7 posts

Monster Hunter Low Budget

sabincruz wrote:

sabincruz wrote:

Oh shoot, this is a problem tho, how would I make like the Individual parts?
Like say, I have a sword that costs 1 Kulu Ya Ku Beak, and 2 Kulu Plumes?
would i make a variable for EVERY SINGLE PART?!?!?! AAAAAAAA
I could work on the code. Though, it may take me a while.
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

And how would I make the Monster drop a random set of parts?
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

MonstieHuntie wrote:

sabincruz wrote:

sabincruz wrote:

Oh shoot, this is a problem tho, how would I make like the Individual parts?
Like say, I have a sword that costs 1 Kulu Ya Ku Beak, and 2 Kulu Plumes?
would i make a variable for EVERY SINGLE PART?!?!?! AAAAAAAA
I could work on the code. Though, it may take me a while.
I don't want to pile up your schedule.. I got this!
MonstieHuntie
Scratcher
7 posts

Monster Hunter Low Budget

sabincruz wrote:

And how would I make the Monster drop a random set of parts?
This:
when I receive [monster defeat v]
if <(pick random (1) to (10)) = [6]> then
add [kulu beak] to [monster parts v]
end
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

MonstieHuntie wrote:

sabincruz wrote:

And how would I make the Monster drop a random set of parts?
This:
when I receive [monster defeat v]
if <(pick random (1) to (10)) = [6]> then
add [kulu beak] to [monster parts v]
end
Thanks for your help!
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

sabincruz wrote:

MonstieHuntie wrote:

sabincruz wrote:

And how would I make the Monster drop a random set of parts?
This:
when I receive [monster defeat v]
if <(pick random (1) to (10)) = [6]> then
add [kulu beak] to [monster parts v]
end
Thanks for your help!
And when you forge the weapon, would I have to make it remove 1 Kulu Beak?
sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

What does this block do?
insert [thing] at (1 v) of [list v]
Rook28081
Scratcher
43 posts

Monster Hunter Low Budget

sabincruz wrote:

sabincruz wrote:

Oh shoot, this is a problem tho, how would I make like the Individual parts?
Like say, I have a sword that costs 1 Kulu Ya Ku Beak, and 2 Kulu Plumes?
would i make a variable for EVERY SINGLE PART?!?!?! AAAAAAAA
that is where you would use lists. Lists just make a monster part list, add stuff to it. and use detection blocks.



This is a Signature.

I am Rook28 and I approve this message.
I spend my time coding on scratch and am always looking for feed back. I am the creator of my projects found here:https://scratch.mit.edu/studios/32125333/comments
and I am also the make for the scratch ultrakill engine found here: https://scratch.mit.edu/projects/799598921/editor/
And as always Happy hunting!
Rook28081
Scratcher
43 posts

Monster Hunter Low Budget

sabincruz wrote:

What does this block do?
insert [thing] at (1 v) of [list v]
Adds something to the list.

sabincruz wrote:

sabincruz wrote:

MonstieHuntie wrote:

sabincruz wrote:

And how would I make the Monster drop a random set of parts?
This:
when I receive [monster defeat v]
if <(pick random (1) to (10)) = [6]> then
add [kulu beak] to [monster parts v]
end
Thanks for your help!
And when you forge the weapon, would I have to make it remove 1 Kulu Beak?
also yes



This is a Signature.

I am Rook28 and I approve this message.
I spend my time coding on scratch and am always looking for feed back. I am the creator of my projects found here:https://scratch.mit.edu/studios/32125333/comments
and I am also the make for the scratch ultrakill engine found here: https://scratch.mit.edu/projects/799598921/editor/
And as always Happy hunting!
MonstieHuntie
Scratcher
7 posts

Monster Hunter Low Budget

Rook28081 wrote:

sabincruz wrote:

What does this block do?
insert [thing] at (1 v) of [list v]
Adds something to the list.
It adds something at a specific point to the list.

sabincruz wrote:

sabincruz wrote:

MonstieHuntie wrote:

sabincruz wrote:

And how would I make the Monster drop a random set of parts?
This:
when I receive [monster defeat v]
if <(pick random (1) to (10)) = [6]> then
add [kulu beak] to [monster parts v]
end
Thanks for your help!
And when you forge the weapon, would I have to make it remove 1 Kulu Beak?
also yes

Last edited by MonstieHuntie (March 13, 2024 23:47:58)

sabincruz
Scratcher
45 posts

Monster Hunter Low Budget

thank you all for your help!

Powered by DjangoBB