Add Reward of 1 when picking up medikit, armor or ammo

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Guest

Add Reward of 1 when picking up medikit, armor or ammo

Post by Guest »

Hello,
I am using ViZDoom to create a reinforcement learning agent which should be able to play human-like. Since I want my agent to not only have a reason to kill other players but also to take up items, I want to add a reward of 1 when picking them up. I don't have experience in scripting in ACS or doom in general and the tutorials I read did not mention anything related to picking up items. Can someone help me with that?

Return to “Scripting”