Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
TakenItem=1
If TakenItem=1 Then
If HasItem("key") = "False" Then
Hotspot(Action.GetHotspotNumber).Enabled="False"
End If
End If
Function HasItem(ItemName)
HasItem = "False"
For Each X in InventoryItemObject
If X.Tag = ItemName Then
HasItem = "True"
End If
Next
End Function
If TakenItem=1 Then
If HasItem("key") = "False" Then
Hotspot(Action.GetHotspotNumber).Enabled="False"
'add this line to the code:
Padlock_unlocked=1
End If
End If
Function HasItem(ItemName)
HasItem = "False"
For Each X in InventoryItemObject
If X.Tag = ItemName Then
HasItem = "True"
End If
Next
End Function
TakenItem=1
If TakenItem=1 Then
If HasItem("key") = "False" Then
Hotspot(Action.GetHotspotNumber).Enabled="False"
Padlock_unlocked=1
End If
End If
Return to Adventure Maker General Discussion
Users browsing this forum: No registered users and 0 guests