It is currently 19 Apr 2024, 02:58
   
Text Size

Shandalar - Feature Requests

Config cost of worldmagics (new)

 

Is it possible to increase the cost of World-Artifacts (I think that's what they are called. The artifacts you can buy that give you certain abilities) cost by difficulty?

They should be much more expensive :)
Last edited by Korath on 19 Nov 2015, 01:08, edited 1 time in total.
Reason: Retitle from "Increase the cost of World-Artifacts"

Comments

Posted by Korath » 19 Nov 2015, 01:56

See here for discussion.

If you don't want to wait for me to get around to it, you can hexedit them in Shandalar.exe. They begin at 0x001847c0, and go in the same order as in the @WORLDMAGIC_NAMES internationalizations in AdvStrings.txt.

Each worldmagic entry is a four-dword struct. The first dword is - like the enemies' signature card entry - a csvid of a card in the game; I suspect they either originally made you give up a corresponding card to use, or were granted only if you owned the corresponding card, or - and this would have been quite ambitious but way cool - they originally intended to make a different worldmagic for each card in the game.

The second dword is the cost. The third and fourth are the city it's being sold in and how long a timed one has left to wear off; they're assigned at runtime.
Code: Select all
001847c0: af01 0000 2003 0000 0000 0000 0000 0000  .... ...........
001847d0: 7200 0000 e803 0000 0000 0000 0000 0000  r...............
001847e0: 3e00 0000 bc02 0000 0000 0000 0000 0000  >...............
001847f0: 1800 0000 c800 0000 0000 0000 0000 0000  ................
00184800: 8500 0000 2003 0000 0000 0000 0000 0000  .... ...........
00184810: 1900 0000 dc05 0000 0000 0000 0000 0000  ................
00184820: 7900 0000 9001 0000 0000 0000 0000 0000  y...............
00184830: 1d01 0000 f401 0000 0000 0000 0000 0000  ................
00184840: 9100 0000 5802 0000 0000 0000 0000 0000  ....X...........
00184850: 1a00 0000 2c01 0000 0000 0000 0000 0000  ....,...........
00184860: cd00 0000 5802 0000 0000 0000 0000 0000  ....X...........
00184870: 1c00 0000 b004 0000 0000 0000 0000 0000  ................

So:
  1. 0x001847c0 for Sleight of Hand has a csvid of 0x000001af which is 431 (Jeweled Bird) and a cost of 0x00000320, which is 800.
  2. 0x001847d0 for Haggler's Coin has a csvid of 0x00000072 which is 114 (Howling Mine) and has a cost of 0x000003e8, which is 1000.
  3. 0x001847e0 for Conjurer's Will has a csvid of 0x0000003e which is 62 (Demonic Tutor) and has a cost of 0x000002bc, which is 700.
  4. 0x001847f0 for Amulet of Swampwalk has a csvid of 0x00000018 which is 24 (Bog Wraith) and has a cost of 0x000000c8, which is 200.
  5. 0x00184800 for Leap of Fate has a csvid of 0x00000085 which is 133 (Jump) and has a cost of 0x00000320, which is 800.
  6. 0x00184810 for Tome of Enlightenment has a csvid of 0x00000019 which is 25 (Braingeyser) and has a cost of 0x000005dc, which is 1500.
  7. 0x00184820 for Quickening has a csvid of 0x00000079 which is 121 (Instill Energy) and has a cost of 0x00000190, which is 400.
  8. 0x00184830 for Fruit of Sustenance has a csvid of 0x0000011d which is 285 (Wild Growth) and has a cost of 0x000001f4, which is 500.
  9. 0x00184840 for Staff of Thunder has a csvid of 0x00000091 which is 145 (Lightning Bolt) and has a cost of 0x00000258, which is 600.
  10. 0x00184850 for Dwarven Pick has a csvid of 0x0000001a which is 26 (Burrowing) and has a cost of 0x0000012c, which is 300.
  11. 0x00184860 for Sword of Resistance has a csvid of 0x000000cd which is 205 (Righteousness) and has a cost of 0x00000258, which is 600.
  12. 0x00184870 for Ring of the Guardian has a csvid of 0x0000001c which is 28 (Castle) and has a cost of 0x000004b0, which is 1200.
The actual costs they're sold at is one half of the gold cost listed in those structs, so e.g. Sword of Resistance costs 300, not the 600 listed. To make it cost 2500, you have to give it a value of 5000 in Shandalar.exe; that's 0x00001388 in hexadecimal, and so you'd overwrite bytes 0x184864-0x184867 with 88 13 00 00.

Ticket details

  • Ticket ID: 925
  • Project: Shandalar
  • Status: New
  • Component: (unknown)
  • Project version: Nomad's Bazaar
  • Priority: Low
  • Assigned to: (unassigned)
  • Reported by: Thesaguy
  • Reporter's tickets: List all tickets
  • Reported on: 17 Nov 2015, 21:45
  • Last visited by Korath » 19 Nov 2015, 01:56.
 

Login Form