Author Topic: Forge script help  (Read 344 times)

Legacy_Jackrabbit_Slim

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
Forge script help
« on: March 11, 2013, 08:23:18 pm »


               I 'm trying to a make a forge script that adds item properties to weapons and armor only.

For example, find a goblin ear, place it in a container along with your weapon, speak to a smith and wham +1 enhancement as been added to your weapon. I would like allow a max of only 3 properties per weapon/armor as well.

I've looked over the vault but the couple of forge scripts i saw there didnt seem to match what i was looking for. I've also tried with Lilac souls scripter to create something but so far no luck.  I would appreciate any help or a push in the right direction.

Thanks!
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
Forge script help
« Reply #1 on: March 11, 2013, 08:32:12 pm »


               Omega Forge has limits.Could probably do a check to see if PC has ear?
               
               

               
            

Legacy_LoA_Tristan

  • Jr. Member
  • **
  • Posts: 64
  • Karma: +0/-0
Forge script help
« Reply #2 on: March 12, 2013, 06:00:06 am »


               HotU chapter 2 has certain useful resources for seeing how this is done.

some of the scripts are default resources, eg., x2_inc_ws_smith - the master include file for the weapons upgrade smithy

Most of the scripts are conversation-based (starting conditional and actions taken handlers), setting custom tokens to identify the item specifically in conversation, differentiate between the item types, set the cost of different upgrades, set and validate the desired new property and prevent cheating... you don't have to use their system exactly but knowing how Bioware did it could help you on this.
               
               

               
            

Legacy_Jackrabbit_Slim

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
Forge script help
« Reply #3 on: March 12, 2013, 04:43:36 pm »


               Thanks Tristan. I looked at the conversation x2_smith and can see all the different scripts you are refering to.

Being really a cut and paste scripter though that looks a bit over my head actually.

In lookin through x2_act_ws_makeit i get the idea of whats needed I'm just not very good at writing scripts from scratch. Not sure how I would add a check for reagents for example.
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Forge script help
« Reply #4 on: March 13, 2013, 02:32:27 pm »


               I did one for Second God War, which was based on the Forge of Wonders. I removed many of the abilities I did not want you to be able to put on items, such as Immunity to criticals, and many others. The limitation to armor is easy enough to do simply by checking the item and if it is not in the appropriate category, just return the script. Most likely you want that in the sc of the script. The starting conditional.
The forge I did in SGW is in the Trilus Armory where the dwarf is.
Personally I don't reagents and limit my items to +3.  As long as the player has the cash they can get the item improved.   There are also a few forges on the vault.  Guile's comes to mind.
               
               

               


                     Modifié par ffbj, 13 mars 2013 - 02:35 .