Having standing stone give player an item.

Post » Sat Nov 17, 2012 9:03 pm

Does anyone know how to add an item to the player once they click “accept,” from one of the standing stones?
User avatar
Undisclosed Desires
 
Posts: 3388
Joined: Fri Mar 02, 2007 4:10 pm

Post » Sat Nov 17, 2012 12:18 pm

you will have to add an additem function in the script.
User avatar
Jennifer Rose
 
Posts: 3432
Joined: Wed Jan 17, 2007 2:54 pm

Post » Sat Nov 17, 2012 8:02 am

Could you be a little more specific Amethyst? How would I add something like that? I tried player.add..., but it says player is not defined. Then I tried as a reference, and I couldn't figure out how to make it work.
User avatar
Iain Lamb
 
Posts: 3453
Joined: Sat May 19, 2007 4:47 am

Post » Sat Nov 17, 2012 6:08 am

Use Game.GetPlayer()

Then use AddItem

Look at scripts for quest rewards, like in the various video tutorials you can find on YouTube. Instead of adding (Gold, 100), you could say (IronDagger, 1).

You'll need to make the item you're giving the player a Property in the script.
User avatar
Makenna Nomad
 
Posts: 3391
Joined: Tue Aug 29, 2006 10:05 pm

Post » Sat Nov 17, 2012 6:15 pm

I've tried that, but something just isn't working correctly. I know how to give the player an item through script, but to do it through the standing stone seems different. Pretty much I want the player to select the standing stone and when they hit accept they are given an item instead of an active effect. If anyone knows how to do this, and doesn't mind giving me a rundown I would be greatly appreciative.
User avatar
le GraiN
 
Posts: 3436
Joined: Thu Mar 22, 2007 6:48 pm

Post » Sat Nov 17, 2012 12:01 pm

Just look through the base Standing Stone script and see how they gave the player the Spells when they chose Accept. Change those AddSpell commands to AddItem commands and that's all that needs to happen (I recommend not saving over the base script, though).
User avatar
Stat Wrecker
 
Posts: 3511
Joined: Mon Sep 24, 2007 6:14 am


Return to V - Skyrim