Jump to content

Item spawning?


Moniquin

Recommended Posts

I know you can alter the script for a zone to place code in the init state part to give yourself an item as a reward when you enter the zone.

 

For example:

 

Edit sign at Storgald's Herbs in z06blakchasdlg.txt (Again copy & paste.)

 

begintalknode 6;

state = -1;

nextstate = -1;

condition = 1;

question = "special";

text1 = "The sign says:";

text2 = " Storgald's Herbs";

 

and add several lines as so:

 

begintalknode 6;

state = -1;

nextstate = -1;

condition = 1;

question = "special";

text1 = "The sign says:";

text2 = " Storgald's Herbs";

text3 = " ";

text4 = "Items added.";

code =

reward_give(495);

break;

 

Save. Start game. Read sign. You now will have item 495 in your inventory.

 

To find an item number go to this topic and scroll through the list.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...