Ok, now this question has most likely been answered many times over but, What I am trying to do (and partially succeding at) is Making a Portable Altar of the Nine Divines that can be picked up and placed anywhere you want. I have the ALtar Part down fine, but I need to be able to pick it up in sneak mode. And i looked http://www.gamesas.com/index.php?/topic/1089090-how-to-add-an-item-to-inventory-when-in-sneak-only/page__p__15876516__hl__pick%20up__fromsearch__1entry15876516 at the 2nd post and so im using that with the AltarofAkatosh scirpt so it looks like this, and I know that I did somethign wrogn as this is my first script.
ScriptName PortableIdolofAkatoshbegin onactivate if isactionref player ==1 if player.issneaking ==1 activate player endifendifElseifshort doonceshort DayofLastUseref targetBegin OnActivateif IsActionRef player == 1 If Player.GetCrimeGold > 0 || GetPCInfamy > GetPCFame MessageBox "Seek not the Dragon's blessing, sinner!" elseif FameAkatosh == 0 MessageBox "Make a pilgrimage to a Wayshrine of Akatosh, and henceforth receive a blessing at Akatosh's holy altars." elseif FameAkatosh > 0 if GetDayofWeek == DayofLastUse MessageBox "You've already been blessed this day." else MessageBox "You make Father Akatosh proud!" Cast AltarAkatosh Player Set DayofLastUse to GetDayofWeek endif endifelse set target to GetActionRef Cast AltarAkatosh targetendifendbegin gamemodeif doonce == 0 ;days are numbered 0-6 - prevents first visit on 0 day and being told you've used it today set DayofLastUse to 10 set doonce to 1endifend
So if someone could explain to me how I can make this work, unless if by some obscure chance that its right.
Thanks,
DoK