Jump to content

munozvo5

Members
  • Posts

    3
  • Joined

  • Last visited

Nexus Mods Profile

About munozvo5

munozvo5's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Well turns out I forgot to call the functions fAllowedItem01 2 3 and 4 on event onactivate which is why AllowedItem wasnt turning into tSoulGem01, tBook01, tWeapon01, tMiscObject01, tPotion01, tArmor01. If anyone wants to use the script here it is Scriptname TwilticUniversalDisplay extends ObjectReference Bool Property isPlaced = false Auto Hidden ObjectReference Property HiddenChest Auto Message Property TwilticLackItem Auto Actor Property PlayerRef Auto ObjectReference Property Static01 Auto ObjectReference Property Static02 Auto ObjectReference Property Static03 Auto ObjectReference Property Static04 Auto Int Property DisplayType01 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor Int Property DisplayType02 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor Int Property DisplayType03 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor Int Property DisplayType04 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor SoulGem Property tSoulGem01 Auto Book Property tBook01 Auto Weapon Property tWeapon01 Auto MiscObject Property tMiscObject01 Auto Potion Property tPotion01 Auto Armor Property tArmor01 Auto SoulGem Property tSoulGem02 Auto Book Property tBook02 Auto Weapon Property tWeapon02 Auto MiscObject Property tMiscObject02 Auto Potion Property tPotion02 Auto Armor Property tArmor02 Auto SoulGem Property tSoulGem03 Auto Book Property tBook03 Auto Weapon Property tWeapon03 Auto MiscObject Property tMiscObject03 Auto Potion Property tPotion03 Auto Armor Property tArmor03 Auto SoulGem Property tSoulGem04 Auto Book Property tBook04 Auto Weapon Property tWeapon04 Auto MiscObject Property tMiscObject04 Auto Potion Property tPotion04 Auto Armor Property tArmor04 Auto Form AllowedItem01 Form AllowedItem02 Form AllowedItem03 Form AllowedItem04 EVENT OnActivate(objectReference akActivator) If akActivator == PlayerRef if(isPlaced == FALSE) FAllowedItem01() FAllowedItem02() FAllowedItem03() FAllowedItem04() if PlayerRef.getItemCount(AllowedItem01) >= 1 isPlaced = TRUE Static01.enable() PlayerRef.removeItem(AllowedItem01, 1,False,HiddenChest) elseif PlayerRef.getItemCount(AllowedItem02) >= 1 isPlaced = TRUE Static02.enable() PlayerRef.removeItem(AllowedItem02, 1,False,HiddenChest) elseif PlayerRef.getItemCount(AllowedItem03) >= 1 isPlaced = TRUE Static03.enable() PlayerRef.removeItem(AllowedItem03, 1,False,HiddenChest) elseif PlayerRef.getItemCount(AllowedItem04) >= 1 isPlaced = TRUE Static04.enable() PlayerRef.removeItem(AllowedItem04, 1,False,HiddenChest) else TwilticLackItem.show() endif else isPlaced = FALSE Static01.disable() HiddenChest.removeItem(AllowedItem01, 1,False,PlayerRef) Static02.disable() HiddenChest.removeItem(AllowedItem02, 1,False,PlayerRef) Static03.disable() HiddenChest.removeItem(AllowedItem03, 1,False,PlayerRef) Static04.disable() HiddenChest.removeItem(AllowedItem04, 1,False,PlayerRef) endif EndIf endEvent Bool Function FAllowedItem01() If (DisplayType01 == 1) AllowedItem01 = tSoulGem01 ElseIf (DisplayType01 == 2) AllowedItem01 = tBook01 ElseIf (DisplayType01 == 3) AllowedItem01 = tWeapon01 ElseIf (DisplayType01 == 4) AllowedItem01 = tMiscObject01 ElseIf (DisplayType01 == 5) AllowedItem01 = tPotion01 ElseIf (DisplayType01 == 6) AllowedItem01 = tArmor01 EndIf EndFunction Bool Function FAllowedItem02() If (DisplayType02 == 1) AllowedItem02 = tSoulGem02 ElseIf (DisplayType02 == 2) AllowedItem02 = tBook02 ElseIf (DisplayType02 == 3) AllowedItem02 = tWeapon02 ElseIf (DisplayType02 == 4) AllowedItem02 = tMiscObject02 ElseIf (DisplayType02 == 5) AllowedItem02 = tPotion02 ElseIf (DisplayType02 == 6) AllowedItem02 = tArmor02 EndIf EndFunction Bool Function FAllowedItem03() If (DisplayType03 == 1) AllowedItem03 = tSoulGem03 ElseIf (DisplayType03 == 2) AllowedItem03 = tBook03 ElseIf (DisplayType03 == 3) AllowedItem03 = tWeapon03 ElseIf (DisplayType03 == 4) AllowedItem03 = tMiscObject03 ElseIf (DisplayType03 == 5) AllowedItem03 = tPotion03 ElseIf (DisplayType03 == 6) AllowedItem03 = tArmor03 EndIf EndFunction Bool Function FAllowedItem04() If (DisplayType04 == 1) AllowedItem04 = tSoulGem04 ElseIf (DisplayType04 == 2) AllowedItem04 = tBook04 ElseIf (DisplayType04 == 3) AllowedItem04 = tWeapon04 ElseIf (DisplayType04 == 4) AllowedItem04 = tMiscObject04 ElseIf (DisplayType04 == 5) AllowedItem04 = tPotion04 ElseIf (DisplayType04 == 6) AllowedItem04 = tArmor04 EndIf EndFunction
  2. Hopefully I'm posting in the right section.... I am extremely noob at this so please bare with me. Anyways, I have been trying to make an item display script that allows me to give a list of 4 items and allows to display only one of those items. An example would be the Azura's Star and The Black Star, the display would allow you to display either of these items, but only 1 at a time. If you have both in your inventory it would display which ever AllowedItem01 is since its called first It doesn't actually display the item itself, but a static object (Static version of the item) that i define in the properties. Then the item is stored safely in a hidden chest, again defined by me in the properties. The problem I'm having with the script below is that the script is not seeing AllowedItem01(2)(3)(4) as the actual item being defined by me in the properties. So when i go ingame i just get the error message TwilticLackItem when i actually do have the item i defined in the properties. Scriptname TwilticUniversalDisplay extends ObjectReference Bool Property isPlaced = false Auto Hidden ObjectReference Property HiddenChest Auto Message Property TwilticLackItem Auto Actor Property PlayerRef Auto ObjectReference Property Static01 Auto ObjectReference Property Static02 Auto ObjectReference Property Static03 Auto ObjectReference Property Static04 Auto Int Property DisplayType01 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor Int Property DisplayType02 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor Int Property DisplayType03 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor Int Property DisplayType04 = 0 Auto ; 1 = Soul Gem, 2 = Book, 3 = Weapon, 4 = Misc Object, 5 = Potion, 6 = Armor SoulGem Property tSoulGem01 Auto Book Property tBook01 Auto Weapon Property tWeapon01 Auto MiscObject Property tMiscObject01 Auto Potion Property tPotion01 Auto Armor Property tArmor01 Auto SoulGem Property tSoulGem02 Auto Book Property tBook02 Auto Weapon Property tWeapon02 Auto MiscObject Property tMiscObject02 Auto Potion Property tPotion02 Auto Armor Property tArmor02 Auto SoulGem Property tSoulGem03 Auto Book Property tBook03 Auto Weapon Property tWeapon03 Auto MiscObject Property tMiscObject03 Auto Potion Property tPotion03 Auto Armor Property tArmor03 Auto SoulGem Property tSoulGem04 Auto Book Property tBook04 Auto Weapon Property tWeapon04 Auto MiscObject Property tMiscObject04 Auto Potion Property tPotion04 Auto Armor Property tArmor04 Auto Form AllowedItem01 Form AllowedItem02 Form AllowedItem03 Form AllowedItem04 EVENT OnActivate(objectReference akActivator) If akActivator == PlayerRef if(isPlaced == FALSE) if PlayerRef.getItemCount(AllowedItem01) >= 1 isPlaced = TRUE Static01.enable() PlayerRef.removeItem(AllowedItem01, 1,False,HiddenChest) elseif PlayerRef.getItemCount(AllowedItem02) >= 1 isPlaced = TRUE Static02.enable() PlayerRef.removeItem(AllowedItem02, 1,False,HiddenChest) elseif PlayerRef.getItemCount(AllowedItem03) >= 1 isPlaced = TRUE Static03.enable() PlayerRef.removeItem(AllowedItem03, 1,False,HiddenChest) elseif PlayerRef.getItemCount(AllowedItem04) >= 1 isPlaced = TRUE Static04.enable() PlayerRef.removeItem(AllowedItem04, 1,False,HiddenChest) else TwilticLackItem.show() endif else isPlaced = FALSE Static01.disable() HiddenChest.removeItem(AllowedItem01, 1,False,PlayerRef) Static02.disable() HiddenChest.removeItem(AllowedItem02, 1,False,PlayerRef) Static03.disable() HiddenChest.removeItem(AllowedItem03, 1,False,PlayerRef) Static04.disable() HiddenChest.removeItem(AllowedItem04, 1,False,PlayerRef) endif EndIf endEvent Bool Function AllowedItem01() If (DisplayType01 == 1) AllowedItem01 = tSoulGem01 ElseIf (DisplayType01 == 2) AllowedItem01 = tBook01 ElseIf (DisplayType01 == 3) AllowedItem01 = tWeapon01 ElseIf (DisplayType01 == 4) AllowedItem01 = tMiscObject01 ElseIf (DisplayType01 == 5) AllowedItem01 = tPotion01 ElseIf (DisplayType01 == 6) AllowedItem01 = tArmor01 EndIf EndFunction Bool Function AllowedItem02() If (DisplayType02 == 1) AllowedItem02 = tSoulGem02 ElseIf (DisplayType02 == 2) AllowedItem02 = tBook02 ElseIf (DisplayType02 == 3) AllowedItem02 = tWeapon02 ElseIf (DisplayType02 == 4) AllowedItem02 = tMiscObject02 ElseIf (DisplayType02 == 5) AllowedItem02 = tPotion02 ElseIf (DisplayType02 == 6) AllowedItem02 = tArmor02 EndIf EndFunction Bool Function AllowedItem03() If (DisplayType03 == 1) AllowedItem03 = tSoulGem03 ElseIf (DisplayType03 == 2) AllowedItem03 = tBook03 ElseIf (DisplayType03 == 3) AllowedItem03 = tWeapon03 ElseIf (DisplayType03 == 4) AllowedItem03 = tMiscObject03 ElseIf (DisplayType03 == 5) AllowedItem03 = tPotion03 ElseIf (DisplayType03 == 6) AllowedItem03 = tArmor03 EndIf EndFunction Bool Function AllowedItem04() If (DisplayType04 == 1) AllowedItem04 = tSoulGem04 ElseIf (DisplayType04 == 2) AllowedItem04 = tBook04 ElseIf (DisplayType04 == 3) AllowedItem04 = tWeapon04 ElseIf (DisplayType04 == 4) AllowedItem04 = tMiscObject04 ElseIf (DisplayType04 == 5) AllowedItem04 = tPotion04 ElseIf (DisplayType04 == 6) AllowedItem04 = tArmor04 EndIf EndFunction Can anyone help me with this? Been trying alllll week and cant seem to get it to work. My script is based off Sjogga's Dragon Claw Display Script which can be found here: http://forums.nexusmods.com/index.php?/topic/754151-tutorials-without-youtoob/page-3&do=findComment&comment=6041876
  3. Hi. First of all this is my first post on the forums. Sorry if this isnt the correct section for this. Ive started making my own mods about a month ago, ive been working on a custom home with vendors and trainers, its pretty much done at this point. I decided to start a new game to make sure it didnt conflict with anything else. It was going good untill i noticed non on the black smiths have the vendor option. I removed my mod and they had the option again. When i added my mod back i noticed that the black smiths in my custom home are the only ones that have the vendor option. Ive been looking for the problem and i cant seem to find/fix it. Was wonderig if anyone could tell me where to look. Edit: one of them is adrianne avenicci, she still has the correct factions and everything, but she still doesnt have the vendor option when i talk to her.
×
×
  • Create New...