You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will only work if both are valid or we use an array with slots and item types to store it.
If only constants are allowed as array indices, it will be a long function.
Clear the inventory of the new Sonja:
func void Npc_ClearInventory(var instance n0)
Go through all items of the old Sonja with:
int Npc_GetInvItemBySlot(var c_npc self, var int category, var int slotnr)
It returns the number of charges.
Use the global variable item to get the type.
Call this to add it the new Sonja:
func void CreateInvItems(var c_npc n0, var int n1, var int n2)
The text was updated successfully, but these errors were encountered:
It will only work if both are valid or we use an array with slots and item types to store it.
If only constants are allowed as array indices, it will be a long function.
Clear the inventory of the new Sonja:
Go through all items of the old Sonja with:
It returns the number of charges.
Use the global variable item to get the type.
Call this to add it the new Sonja:
The text was updated successfully, but these errors were encountered: