Alright, so I'm trying the first script, and this is what I have:
Sub Player_OnSpecialFunction(Func)
'If a function named L-L Group activates, check to see if
'that player has some of inventory item #1, and if so,
'then activate a function called "L- L Check" on the current map
'Inventory item "Level 3:' = index 22
'Inventory item "Facing Left" = index 15
'Inventory item "Facing Right" = index 14
if Func.Name = "L- L Group" Then
With ProjectObj.GamePlayer
If .InvQuantityOwned(21) > 0 Then
.ActivateFunction .rmap.Specials("L-L Check")
End If
End With
End If
End Sub
HostObj.SinkObjectEvents ProjectObj.GamePlayer, "Player"
HostObj.ConnectEventsNow()
ProjectObj.GamePlayer.Play 16
That's my entire script at the moment, do I need more? Right now, no matter what inventory item I set it to check if greater than 0, the function seems to go off. What's supposed to happen is the function "L-L Group" is only supposed to go off if the inventory "Facing Left" is set to 1. After it checks that then the script should set if the inventory item "Level 3:" is set to 1 and then activate "L-L Check" which then activates a series of special functions. Right now, no matter what I put as the inventory item number, the who script goes off. Here's what I have set on those functions:
L- L Group
Action Parameters
-Uses inventory item "Facing Left" (1)
-Global
-Pressing button 2
-Initial press only
-Raise an event when this function is activated
Effect
-Activate a series of special functions
-"L- LCheck"
L- L Check
Action Parameters
-Raise an event when this function is activated
Effect
-Activate a series of special functions
-"L- Dec Recharge"
-"L- L Beam"
-"L- Laser"
-"L- Add Units"
-edit-
Nevermind, I'm a big idiot, I checked the activate the special functio box but I didn't put it in the effects tab!