How to save the inventory of a player

How to save the inventory of a player

Postby civil security light37 » 24 November 2018, 06:07

I really need to know how to save the inventory of a player and put it into another level.
Im trying to make a map and it requires it...
User avatar
civil security light37
Recruit
 
Posts: 7
Joined: 24 November 2018, 06:05
Location: Hell. I think.

Re: How to save the inventory of a player

Postby ReversedEdges » 24 November 2018, 12:12

I have some issues with it, try session variables or ask someone who knows how to do that.
An eye for an eye only makes two people blind.
User avatar
ReversedEdges
Cyber Grub [25]
 
Posts: 30
Joined: 31 October 2018, 21:33
Location: Metro 2033

Re: How to save the inventory of a player

Postby civil security light37 » 30 November 2018, 03:06

For real though. Id really like to know how to save it.
User avatar
civil security light37
Recruit
 
Posts: 7
Joined: 24 November 2018, 06:05
Location: Hell. I think.

Re: How to save the inventory of a player

Postby Shadowysn » 4 February 2020, 09:34

I've attempted to do this with session variables, but they Just. Don't. WORK!

Every time I've attempted to fix it, it either just results in giving no weapons, or overriding the transferred weapons from the old level which is not acceptable.
And with the lack of good debugging solutions for variables, I'm pissed as all of hell.

I don't know if people can see the source of an unpublished, unavailable level but I'm gonna give a link out to test.
https://www.plazmaburst2.com/level_edit ... clone_base
Last edited by Shadowysn on 8 February 2020, 05:23, edited 1 time in total.

Shadowysn
Recruit
 
Posts: 14
Joined: 26 July 2017, 14:55

Re: How to save the inventory of a player

Postby jeje52 » 4 February 2020, 17:24

I made a working demo of how session variables can be used to save player guns. Keep in mind that the trigger action "Load value for regular variable 'A' from session variable 'B'" is incorrect. Session variable goes in 'A', regular goes in 'B'.

Link to demo map: https://www.plazmaburst2.com/?s=9&a=&m= ... &id=968918


Shadowysn wrote:I don't know if people can see the source of an unpublished, unavailable level but I'm gonna give a link out to test.
https://www.plazmaburst2.com/level_edit ... clone_2&a=

I can see it. I'm guessing the problem with your system is that you read the instructions correctly and put the session variable in parameter 'B', which would actually be incorrect in this case.
User avatar
jeje52
Civil Security Lite [100]
 
Posts: 146
Joined: 13 April 2018, 19:52

Re: How to save the inventory of a player

Postby Shadowysn » 8 February 2020, 05:36

jeje52 wrote:I made a working demo of how session variables can be used to save player guns. Keep in mind that the trigger action "Load value for regular variable 'A' from session variable 'B'" is incorrect. Session variable goes in 'A', regular goes in 'B'.

Link to demo map: https://www.plazmaburst2.com/?s=9&a=&m= ... &id=968918


Shadowysn wrote:I don't know if people can see the source of an unpublished, unavailable level but I'm gonna give a link out to test.
https://www.plazmaburst2.com/level_edit ... clone_base

I can see it. I'm guessing the problem with your system is that you read the instructions correctly and put the session variable in parameter 'B', which would actually be incorrect in this case.

I've done further debugging and testing, and now I've gotten it to work properly. Thanks for your session var level and help!

Shadowysn
Recruit
 
Posts: 14
Joined: 26 July 2017, 14:55


Return to Bug Reporting Archive

Who is online

Users browsing this forum: No registered users



cron