Calling Method From Sequence; Not Working
Posted: Wed Nov 09, 2022 7:55 pm
I'm trying to have the player buy an item from the shop within a conversation, but the method isn't being called at all (no Debug.Log being shown)
But it works when I want it to spawn coins, using this:
SendMessage(SpawnMyCoins,,Tarul);
{{defaultsequence}}
But when I do the same thing for adding items,
SendMessage(AddSmallPot,,Inventory);
{{defaultsequence}}
Nothing happens. The only code I have in "void AddSmallPot" is the Debug.Log, that's not showing up.
Suddenly it says "Unrecognized shortcut, defaultsequence", and when I remove defaultsequence, it says nothing but doesn't work.
I tried to register it as a Lua but it's been too confusing and I don't know what to write and where to put it.
Any help is greatly appreciated, all I want to do is call the method from my inventory script
But it works when I want it to spawn coins, using this:
SendMessage(SpawnMyCoins,,Tarul);
{{defaultsequence}}
But when I do the same thing for adding items,
SendMessage(AddSmallPot,,Inventory);
{{defaultsequence}}
Nothing happens. The only code I have in "void AddSmallPot" is the Debug.Log, that's not showing up.
Suddenly it says "Unrecognized shortcut, defaultsequence", and when I remove defaultsequence, it says nothing but doesn't work.
I tried to register it as a Lua but it's been too confusing and I don't know what to write and where to put it.
Any help is greatly appreciated, all I want to do is call the method from my inventory script