Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: choice out of range #845

Open
guigamer00712 opened this issue May 27, 2023 · 0 comments
Open

Exception: choice out of range #845

guigamer00712 opened this issue May 27, 2023 · 0 comments

Comments

@guigamer00712
Copy link

I was trying to put in a system of choices and I ended up with this error:
Exception: choice out of range
Ink.Runtime.Story.Assert (System.Boolean condition, System.String message, System.Object[] formatParams) (at Assets/Ink/InkLibs/InkRuntime/Story.cs:2672)
Ink.Runtime.Story.ChooseChoiceIndex (System.Int32 choiceIdx) (at Assets/Ink/InkLibs/InkRuntime/Story.cs:1663)
DialogueSystem.MakeChoice (System.Int32 ChoiceIndex) (at Assets/Scripts/Dialogue System.cs:128)
UnityEngine.Events.InvokableCall1[T1].Invoke (T1 args0) (at <cd86b0d4df634b6a8fd612065f941dcd>:0) UnityEngine.Events.CachedInvokableCall1[T].Invoke (System.Object[] args) (at :0)
UnityEngine.Events.UnityEvent.Invoke () (at :0)
UnityEngine.UI.Button.Press () (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:70)
UnityEngine.UI.Button.OnSubmit (UnityEngine.EventSystems.BaseEventData eventData) (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:150)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.ISubmitHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:134)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:272)
UnityEngine.EventSystems.EventSystem:Update() (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:530)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant