Author Topic: [Resolved] Can you make your own upgrades purchasable more than once?  (Read 5827 times)

Hotholin

  • Posts: 5
  • Maggot Crusher.
    • View Profile
So I am making a dark souls 2 mod.

I have it setup so that this bonfire is a store.



When you "buy" my custom upgrade, it triggers a global event which is linked to an level exit and thereby teleports you to another bonfire location of your choice.

All this works fine, the problem I am having is you can only buy the upgrade once. I tried both making my own category and adding it to the existing "power" category. no dice.
I feel like there is a way to do it since there are items you can re-buy like potions. Here is my script:



Let me know if I am missing something super obvious.  haha.

« Last Edit: October 24, 2014, 07:12:29 AM by Hotholin »

Kashlavor

  • Posts: 79
  • Spike Dodger.
    • View Profile
Re: Can you make your own upgrades purchasable more than once?
« Reply #1 on: October 24, 2014, 06:54:27 AM »
Add in a script to that global event, you can use the ChangeUpgrades element to just remove that upgrade after they purchase it, so that way it will still be available next time. 

You could also use this same trick to let them unlock more fires as they go, have a ChangeUpgrade element in the very beginning of the first level which gives the player all of the bonfire upgrades (so they can't purchase them), then have another one later which removes that upgrade when they reach the fire.
Starting work on the Lair of the Archnecromantrix, a Hammerwatch campaign!

Hotholin

  • Posts: 5
  • Maggot Crusher.
    • View Profile
Re: Can you make your own upgrades purchasable more than once?
« Reply #2 on: October 24, 2014, 07:12:02 AM »
Awesome! thanks for the help!

prophet

  • Posts: 21
  • Invader
    • View Profile
    • My Steam Workshop
Re: [Resolved] Can you make your own upgrades purchasable more than once?
« Reply #3 on: October 24, 2014, 09:01:28 PM »
Hey! Loved the Majula bonfire!
Have you played HammerSouls? I wonder if my bonfire on/off might be of any help on your mod?

Dai Tou Zai

  • Posts: 99
  • Definitely Not Blitzcrank
    • View Profile
Re: [Resolved] Can you make your own upgrades purchasable more than once?
« Reply #4 on: October 27, 2014, 01:39:37 AM »
You can have custom store upgrades? sweettt
No i'm not blitzcrank, stop asking me.

Hotholin

  • Posts: 5
  • Maggot Crusher.
    • View Profile
Re: [Resolved] Can you make your own upgrades purchasable more than once?
« Reply #5 on: October 27, 2014, 05:36:19 AM »
Hey! Loved the Majula bonfire!
Have you played HammerSouls? I wonder if my bonfire on/off might be of any help on your mod?

Oh hey! just went and played hammersouls! nice work! Yeah I would be down to exchange some files if you have them. I am planing on really putting a lot of work into this mod, (custom music, sprites, bosses and so on) would love any help you could provide!

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: [Resolved] Can you make your own upgrades purchasable more than once?
« Reply #6 on: October 27, 2014, 09:45:02 AM »
You can have custom store upgrades? sweettt

The gambler in the desert, that's a "custom" store, it's connected to scripts that spawn things when you buy from her.