Shop Query.

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
RabMoghal
Red Slime
Posts: 30
Joined: Sun Dec 07, 2014 3:11 pm
Location: Middlesbrough, UK
Contact:

Shop Query.

Post by RabMoghal »

Hello, :D

if you're reading this. Thank you.

Does anyone know if there is a way to change the wording of 'buy' for shops.

I understand I can go into global text strings and change the default, but there
is only one specific shop I wish to say 'build' instead of 'buy'.

Can anyone help me with this?
User avatar
Urkelbot666
Slime Knight
Posts: 188
Joined: Sat Oct 18, 2014 5:29 pm

Post by Urkelbot666 »

I don't personally know of anything in the custom editor to achieve this, And I haven't seen anything skimming the plotscripting dictionary. But there may a be a way to do it, or simulate it using custom menus... Not sure...

I'm still learning and figuring things out myself, so I'm sorry I can't be of more help. If I think of anything clever, I'll let you know. But I bet someone here, more learned than I has a good idea.
In any case, best of luck
User avatar
RabMoghal
Red Slime
Posts: 30
Joined: Sun Dec 07, 2014 3:11 pm
Location: Middlesbrough, UK
Contact:

Post by RabMoghal »

Urkelbot666 wrote:I don't personally know of anything in the custom editor to achieve this, And I haven't seen anything skimming the plotscripting dictionary. But there may a be a way to do it, or simulate it using custom menus... Not sure...

I'm still learning and figuring things out myself, so I'm sorry I can't be of more help. If I think of anything clever, I'll let you know. But I bet someone here, more learned than I has a good idea.
In any case, best of luck
Thanks anyway!
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

A crude way to pull this off might be to have a "yes/no" textbox appear when you speak to the shopkeeper. Instead of Yes and No you could replace these with Build and Exit. If Build is selected then use code to bring up the build menu or whatever you have in mind. If Exit is selected then nothing happens and you may leave.

Otherwise you could make a custom textbox too.

I also considered you could perhaps use plotscripting to temporarily replace the Buy global text string with Build instead, then change it back upon leaving the shop... but I couldn't figure out what function in the plotscripting dictionary you'd need to do this. Perhaps it's not possible this way... I could be wrong though.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6247
Joined: Mon Dec 08, 2008 7:07 am
Location: Home
Contact:

Post by Spoonweaver »

No No No...
God


This is easy to do, all you need to do is make a custom menu. If you look into the Edit Menu options I'm sure you'll be able to figure out what you need to do.


Guys... what are you even telling this dude?
User avatar
kylekrack
Liquid Metal Slime
Posts: 1188
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

sheamkennedy wrote:I also considered you could perhaps use plotscripting to temporarily replace the Buy global text string with Build instead, then change it back upon leaving the shop...
This is so unbelievably convoluted I love it.
My pronouns are they/them
Ps. I love my wife
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

kylekrack wrote:
sheamkennedy wrote:I also considered you could perhaps use plotscripting to temporarily replace the Buy global text string with Build instead, then change it back upon leaving the shop...
This is so unbelievably convoluted I love it.
Haha thanks. I guess I think outside the box... though this sort of logic can run people in to many other buggy issues.

Also I did suggest custom menus. For some reason I thought Rab was trying to avoid this since they didn't seem satisfied with Urkelbot's mention of it.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Urkelbot666
Slime Knight
Posts: 188
Joined: Sat Oct 18, 2014 5:29 pm

Post by Urkelbot666 »

Spoonweaver wrote:No No No...
God


This is easy to do, all you need to do is make a custom menu. If you look into the Edit Menu options I'm sure you'll be able to figure out what you need to do.


Guys... what are you even telling this dude?
Hey, that's what I said in the first place!!! >:( .... just kidding :angel:

I try to help, but you've got a point, it's kind of like the blind leading the blind hahaha :v:
User avatar
Gizmog
Metal King Slime
Posts: 2615
Joined: Tue Feb 19, 2008 5:41 am

Post by Gizmog »

Spoonweaver wrote:No No No...
God


This is easy to do, all you need to do is make a custom menu. If you look into the Edit Menu options I'm sure you'll be able to figure out what you need to do.


Guys... what are you even telling this dude?
The custom menu option is not entirely intuitive, at least not without some scripting.

What you're gonna want to do is create a custom menu for that NPC. You can do this through the Edit Menus menu in Custom, and can assign that menu to an NPC through a textbox conditional, just like you would for a regular shop. You should be able to emulate most of the functionality of the shop through the default menu stuff, but for your BUILD shop, you're gonna have to be a little tricky. Write a script featuring the UseShop command, and have your Build menu item run that script. [/url]
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6247
Joined: Mon Dec 08, 2008 7:07 am
Location: Home
Contact:

Post by Spoonweaver »

I know you all mentioned it, but then you went on to say stuff like it was impossible or you'd need convoluted scripting to achieve it.

Also, has this Rab guy posted any screenshots of this game he's doing?
User avatar
Gizmog
Metal King Slime
Posts: 2615
Joined: Tue Feb 19, 2008 5:41 am

Post by Gizmog »

Spoonweaver wrote:I know you all mentioned it, but then you went on to say stuff like it was impossible or you'd need convoluted scripting to achieve it.
I don't know that I'd call changing a string a convoluted scripting request. If you could say "$Buy := "Build"" when talking to one NPC, that'd be a super easy solution, and one I'd encourage anyone to use. The only thing bad is that we don't have a command to do that, forcing the more round-about approach of duplicating existing functionality.
User avatar
RabMoghal
Red Slime
Posts: 30
Joined: Sun Dec 07, 2014 3:11 pm
Location: Middlesbrough, UK
Contact:

Thanks!

Post by RabMoghal »

Ah ha, too many people to quote and thank individually!

So thank you to all, I can now customise weapons using the build tool in forge shop menu! - exactly what I wanted.

I've only been going at this for about 2/3 weeks with absolutely zero background in it before but I have posted some screen shots of parts of my game so far - I posted them in the 'post pictures of your graphics'. There will be a playable demo (about 1 1/2 to 2 hours game play) posted in a week or so.

Thanks to everyone again!
Last edited by RabMoghal on Wed Dec 10, 2014 10:59 am, edited 1 time in total.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Gizmog wrote:
Spoonweaver wrote:I know you all mentioned it, but then you went on to say stuff like it was impossible or you'd need convoluted scripting to achieve it.
I don't know that I'd call changing a string a convoluted scripting request. If you could say "$Buy := "Build"" when talking to one NPC, that'd be a super easy solution, and one I'd encourage anyone to use. The only thing bad is that we don't have a command to do that, forcing the more round-about approach of duplicating existing functionality.
I'm surprised there isn't a way to do this with scripting already. I think having something like this would be extremely useful for this amongst many other things. This could allow for having 100's of different styles of shops without having 100's of custom made menus, also could allow for currency exchange within the game using a conversion formula and replacing $ with £ for example thus allowing cash to display properly in game based on currency held. I can see endless uses for this the more I think about it.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply