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
Hello, beginner at Godot and Dialogic here so not sure if this is possible, but I'm trying making a sort of RPG and I wanna have the player obtain items through dialogue.
The idea I had was that when the player obtains an item, I'd emit a signal with the item ID as an arg so that I can add it to the player inventory when the signal is emitted.. But since I don't really like "magic numbers" or putting random ID numbers as args, I thought it's be good to store them in a variable and reference it from the Dialogic text editor... But It doesn't seem to be able to pass variables as args to the signal
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, beginner at Godot and Dialogic here so not sure if this is possible, but I'm trying making a sort of RPG and I wanna have the player obtain items through dialogue.
The idea I had was that when the player obtains an item, I'd emit a signal with the item ID as an arg so that I can add it to the player inventory when the signal is emitted.. But since I don't really like "magic numbers" or putting random ID numbers as args, I thought it's be good to store them in a variable and reference it from the Dialogic text editor... But It doesn't seem to be able to pass variables as args to the signal
I was thinking of something along the lines of:
[signal arg_type="dict" arg="{"id":wardrobe_normal.items.dust}"]
Where
wardrobe_normal.items.dust
would be the variable containing the item ID, but it doesn't seem possible... Is there any alternative?Beta Was this translation helpful? Give feedback.
All reactions