
Receiving an item in ZScript: Flowchart
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
Consult the Resource/Request Posting Guidelines for more information.
Please don't put requests here! They have their own forum --> here. Thank you!
Before posting your Resource, please make sure you can answer YES to any of the following questions:
- Is the resource ENTIRELY my own work?
- If no to the previous one, do I have permission from the original author?
- If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
Consult the Resource/Request Posting Guidelines for more information.
Please don't put requests here! They have their own forum --> here. Thank you!
-
-
- Posts: 963
- Joined: Mon Jul 21, 2008 4:08 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia (Modern GZDoom)
-
- Posts: 309
- Joined: Mon Jul 16, 2012 2:02 am
Re: Receiving an item in ZScript: Flowchart
I didn't examine the whole chart fully, but there is a slight inaccuracy in that certain kind of items never get past the `TryPickup()` call, namely all `Health` items, `AllMap`, and many others. They do their magic in that function and skip all the regular processing.
-
-
- Posts: 963
- Joined: Mon Jul 21, 2008 4:08 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia (Modern GZDoom)
Re: Receiving an item in ZScript: Flowchart
ZzZombo wrote: ↑Thu May 25, 2023 8:44 am I didn't examine the whole chart fully, but there is a slight inaccuracy in that certain kind of items never get past the `TryPickup()` call, namely all `Health` items, `AllMap`, and many others. They do their magic in that function and skip all the regular processing.
It doesn't cover the subclasses.Jekyll Grim Payne wrote: ↑Thu May 25, 2023 5:12 am This flowchart details the contents of the TryPickup() function as defined in the Inventory class.