I was wondering if anyone could help me with a problem I?m having creating a custom inventory. The inventory has 15 item slots (HotSpots) that can hold different items at various points in the game. For instance HotSpot 7 holds an item called ?empty vial? then, when the player adds liquid to it, HotSpot 7 will hold a new item called ?vial of liquid?. There are separate images for each item. Rather than stack several hotspots on top of each other I want to just change the image using scripting. My dilemma is I can?t figure out the scripting?
Here is what I have tried:
- Code: Select all
If Action.GetCurrentFrameName = "inventory" Then
If got vial empty = 1 Then Action.LoadAPicture Hotspot(7) "empty vial.gif"
End If
If Action.GetCurrentFrameName = "inventory" Then
If got vial of liquid = 1 Then Action.LoadAPicture Hotspot(7) "vial of liquid.gif"
End If
But this comes back with the error ?Expected Then?.
Can someone explain how I can pull this off? It is possible isn?t it?