Jump to content

Potions of Remedy

Overview
Creator: Lelouche Vi Britannia Added: 28 Mar 2016 Tags: Item
Rating[?]: No rating
View Script
Information

Description Setup Reviews Comments

Step 0: If not already done be sure to include the normal header "import std.zh" at the top of your script file if not already present.

Step 1: Create the potion item in the item editor. Note which item number is being used for the item.
1a>Set an unused custom item class for the class of item. What it is set to is not important so long as no other items use that custom item class number, but remember which one you use when you modify your subscreen as you'll need it to create the icon for the item.

Step 2: Import the Script Then
2a> Change the variable for CR_JINXP in line 3 to whatever counter you wish to use for your quest
2b> Change the "143" in the last written line to whatever the actual item number is for your quest
2c> Compile

Step 3: Return to the item editor, enable this script for the Remedy Potion. Do the following as well;
3a> Go to the pick up tab and set the following; Increase amount 1 (more if you want more given on pick up), Increase "Counter Max" and "But Not Above" to whatever the maximum you want them to be able to carry

Now you can add the item to shops, drop lists or whatever.

NOTE: You can also change the sound effect if you want to by changing the number 53 in the line Game->PlaySound(53) to the sound number you want to use instead.