portable bedroll

Old and generally outdated discussions, with the rare hidden gem. Enter at your own risk.

Moderators: Haplo, Lead Developers

Locked
User avatar
ashlander
Member
Posts: 74
Joined: Fri Oct 17, 2003 7:07 pm

portable bedroll

Post by ashlander »

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!
Prowler
Member
Posts: 77
Joined: Tue Nov 25, 2003 5:41 pm
Location: Bedadras, city of dreams.

Logic

Post by Prowler »

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

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
I have to apologize, this is late night scripting work and probebly full of typos but it should get you the idea.
"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."
Locked