Needing hrlp with a script ive been trying to use for several days. What im trying to do is make a Script for trophy mounts, like wolves and sabrecats. Ive been following Darkfox's tutorial for it, but ive run into a snag. His tutorial uses only 2 bases, mine has 21. When I follow his and try to compensate for mine, only the first 2 work right. What do I need to do have the script work for all 21? Keep in mind, I've ONLY JUST started messing with scripts, so go easy on me.
Here's the edited script that i tried to use. I figured a simple copy/paste did the trick since i didn't get an error when saving, but apparently not.
This is the activator:
Scriptname CGTestScriptTrophyActivator02 extends ObjectReference
{This script deletes the trophy being activated and sets it's global back to 0.}
;Original script created by Darkfox127
;Any potential problems which may arise from this script being changed from the original are the sole responsibility of the mod author making the changes.
GlobalVariable Property Global_Trophy_Placed_01 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_02 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_03 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_04 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_05 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_06 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_07 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_08 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_09 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_10 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_11 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_12 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_13 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_14 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_15 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_16 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_17 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_18 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_19 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_20 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_21 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
Int Property XPos_TrophyMarker_01 Auto
{The X axis position of the X-Marker used for the first trophy base.}
Int Property XPos_TrophyMarker_02 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_03 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_04 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_05 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_06 Auto
{The X axis position of the X-Marker used for the first trophy base.}
Int Property XPos_TrophyMarker_07 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_08 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_09 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_10 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_11 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_12 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_13 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_14 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_15 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_16 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_17 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_18 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_19 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_20 Auto
{The X axis position of the X-Marker used for the second trophy base.}
Int Property XPos_TrophyMarker_21 Auto
{The X axis position of the X-Marker used for the second trophy base.}
LeveledItem Property Trophy_Craft_Items Auto
{A leveled list containing all of the items used for creating the trophy.}
ObjectReference Property PlayerREF Auto
{The default reference for the game to point toward the player.}
String Property ReturnMSG Auto
{The notification to show when the craft items have been returned to the player.}
Event OnActivate(ObjectReference akActionRef)
If (Self.GetPositionX() == XPos_TrophyMarker_01)
Global_Trophy_Placed_01.SetValue(0) ;Set the trophy global to 0 to allow the base to know a new trophy can be placed
ElseIf (Self.GetPositionX() == XPos_TrophyMarker_02)
Global_Trophy_Placed_02.SetValue(0) ;Set the trophy global to 0 to allow the base to know a new trophy can be placed
EndIf
PlayerREF.AddItem(Trophy_Craft_Items, 1, True) ;Silently give the player all of the items back which were used in this trophy's creation
debug.notification(ReturnMSG) ;Show a notification to inform the player their items have been returned to them
Self.delete() ;The trophy now deletes itself and is no longer visible on the trophy base, allowing for a new trophy to be put down
EndEvent
This is the Misc:
Scriptname CGTestTrophyScriptMisc02 extends ObjectReference
{This script creates a trophy and places it on the trophy base currently being activated.}
;Original script created by Darkfox127
;Any potential problems which may arise from this script being changed from the original are the sole responsibility of the mod author making the changes.
Activator Property Trophy_To_Place Auto
{The trophy to create and place on the base.}
GlobalVariable Property Global_Trophy_Active Auto
{This will check to see which trophy base is currently set to active so that this craft menu knows where to place the trophy.}
GlobalVariable Property Global_Trophy_InUse Auto
{A global which is set after crafting an item to prevent the player from creating more than one trophy on the same stand.}
GlobalVariable Property Global_Trophy_Placed_01 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_02 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_03 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_04 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_05 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_06 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_07 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_08 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_09 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_10 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_11 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_12 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_13 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_14 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_15 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_16 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_17 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_18 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_19 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_20 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
GlobalVariable Property Global_Trophy_Placed_21 Auto
{The trophy global for the trophy base to know if a trophy is already in place.}
MiscObject Property Trophy_Item Auto
{This is the item created by the crafting menu which triggers these events. This is the item this script is attached to.}
ObjectReference Property TrophyMarker_01 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_02 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_03 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_04 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_05 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_06 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_07 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_08 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_09 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_10 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_11 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_12 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_13 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_14 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_15 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_16 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_17 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_18 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_19 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_20 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property TrophyMarker_21 Auto
{This will be one of the X-Marker Headings that your trophy is placed on.}
ObjectReference Property PlayerREF Auto
{The default reference for the game to point toward the player.}
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If (Global_Trophy_Active.GetValue() == 0) ;Is the current base tagged as 0?
debug.notification("Global Set Wrong")
ElseIf (Global_Trophy_Active.GetValue() == 1) ;Is the current base tagged as 1?
TrophyMarker_01.PlaceAtMe(Trophy_To_Place) ;Place the trophy at the relevant marker
Global_Trophy_Placed_01.Setvalue(1) ;Set base one as trophy placed
PlayerREF.RemoveItem(Trophy_Item,1,True) ; Removes the trophy misc item from the player's inventory silently
ElseIf (Global_Trophy_Active.GetValue() == 2) ;Is the current base tagged as 1?
TrophyMarker_02.PlaceAtMe(Trophy_To_Place) ;Place the trophy at the relevant marker
Global_Trophy_Placed_02.Setvalue(1) ;Set base two as trophy placed
PlayerREF.RemoveItem(Trophy_Item,1,True) ; Removes the trophy misc item from the player's inventory silently
EndIf
Global_Trophy_InUse.SetValue(1)
Utility.Wait(0.1)
Global_Trophy_InUse.SetValue(0)
EndEvent