This is regarding the events system. I’m trying to make a custom code to get the event’s name, how do i do that? Could anyone help me?
I tried doing it myself but it highlighted “Public Sub CustomScript(index As Long, caseID As Long)” and said "Compile error: ByRef argument type mismatch. What does that mean?
This is how my CustomScript looks like.
Public Sub CustomScript(index As Long, caseID As Long) Select Case caseID Case 0 mapnum = GetPlayerMap(index) filename = App.Path & "\data\maps\map" & mapnum & "_eventdata.dat" GetVar filename, "Events", "EventCount", Val(Map(mapnum).EventCount) If Map(mapnum).EventCount > 0 Then For i = 1 To Map(mapnum).EventCount With Map(mapnum).Events(i) GetVar filename, "Event" & i, "Name", .Name Case Else PlayerMsg index, "You just activated custom script " & caseID & ". This script is not yet programmed.", BrightRed End Select End Sub