Starbound

Starbound

Stackable Reward Bags and Blueprints
10 条留言
TopsyPentaceratops 2024 年 5 月 8 日 下午 3:46 
I am genuinely curious how you did this. I've tried looking around for tutorials for increasing item stacks, namely for unstackables like lootboxes.
Kerik 2022 年 2 月 19 日 上午 8:44 
Anter583 got that answer for him?
MystRaven.skg  [作者] 2021 年 9 月 13 日 下午 6:14 
@Anter583 you brilliant inventor. You're the true hero here. I'm gonna implement this. How shall I list your name in the credits?
Anter583 2021 年 9 月 13 日 上午 4:45 
Ok after checking mech blueprints for a bit, they get stuck in a phase that auto learns the entire stack, you don't actually lose anything though.


To fix it all you have to do is go into the file /items/active/randomblueprint/randomblueprint.lua and add the following 2 lines of code inbetween lines 21 & 22

self.swingTimer = nil
activeItem.setArmAngle(-math.pi / 2)


It basically resets self.swingTimer to be blank so that it doesn't re-trigger learnBlueprint() every game tick after reaching 0 and then resets the item's aim angle to default so that you don't hold it weirdly.
Anter583 2021 年 9 月 13 日 上午 4:13 
Are you sure that you don't have a mod installed that messes with blueprint code?
I checked the blueprint & reward bag code and it seems to correctly use item.consume() to only consume 1 from the stack.
Literally Just Freckle 2021 年 9 月 12 日 上午 6:43 
THANK YOU. You have no idea how much this frustrated me!
VaporBitBot 2021 年 9 月 12 日 上午 5:32 
No Problemo
Wednesmove Nyan-Nyan 2021 年 9 月 12 日 上午 3:06 
Useful:SBpenguin:
MystRaven.skg  [作者] 2021 年 9 月 12 日 上午 1:53 
@VaporBitBot I didn't think to do that. Definitely will next chance I get to work on it, thank you!
VaporBitBot 2021 年 9 月 11 日 下午 7:37 
My Suggestion to how to learn this I believe would be the Vanilla Geode