portable bedroll
Moderators: Haplo, Lead Developers
portable bedroll
ok i have a bedroll as a misc item i can set the sleeping script and it works but i cant pick it up. i can also have no script and be able to pick it up. can some one make a script like the mourhold ring script[choosing different things]that lets you choose to sleep or just pick it up. thanks alot!
Logic
You cant pick it up because picking something up is the same as activating a object whit no script attached.
You need to add something like this
I have to apologize, this is late night scripting work and probebly full of typos but it should get you the idea.
You need to add something like this
Code: Select all
if (cvar == 0)
if (onactivate == 0)
return
else
Messagebox "Do you want to sleep or pick up your bedroll", "Pick up", "Sleep"
set cvar to 1
endif
elseif (cvar == 1)
set button to getbuttonpressed
if (button == -1)
return
elseif(button == 0)
set cvar to 0
activate
elseif (button == 1)
....
Insert a copy of the script here, cut the begin and end, move var to the vars section of this scrip and remove the onactivate part
....
set cvar to 1
endif
endif
"Our vision is to recreate Tamriel in a way truthful to how Bethesda Softworks would have wanted it to look like by using TES lore."