Author Topic: VCE save addon?  (Read 915 times)

Need help with vce

So I have learnt the basics of vce and gotten to know how to make shops except I want to make a dayz. And in my dayz I need money and items to save, so basically if you leave and join back nothing is affected and you pickup from where you last left off. The dayz I've made is alpha but looks good and this isn't really related to the topic but in slayer the zombies don't attack automatically and everytime I kill someone it says -2. Can anyone help me outta this pickle. I know it possible to save thanks to things like rpgs saving my money when I revisit. Btw I'm a terrible scripter.

this can save items:
http://orbs.daprogs.com/rtb/forum.returntoblockland.com/dlm/viewFile2eef.html?id=5140

to find the saving variables add-on, go here:
http://lugnut.co.vu/add_ons/
press ctrl+f (assuming you're on chrome, idk if this workings with every browser)
type "savingv", it'll bring you right to it

this can save items:
http://orbs.daprogs.com/rtb/forum.returntoblockland.com/dlm/viewFile2eef.html?id=5140

to find the saving variables add-on, go here:
http://lugnut.co.vu/add_ons/
press ctrl+f (assuming you're on chrome, idk if this workings with every browser)
type "savingv", it'll bring you right to it
he needs help with VCE, not other addons.

So. Here is how to save money:
You would add a money variable to a player or client. EX: OnActivate - Client/Player - ModVariable - Gold : Add : 1
To save that variable you would have to do OnActivate(Or Any Other Activation Function) - Self - VCE - savevariable / loadvariable to load it - <var:cl:Gold>

now guns are a bit different. You would have to add a variable to every gun to save it. EX:
OnItemPickup - Client - ModVariable - HasSMG : Set : 1
And save the variable the same way you would save any other variable:
OnActivate(Or Any Other Activation Function) - Self - VCE - savevariable / loadvariable to load it - <var:cl:HasSMG>
Load it vice versa

You would do this all the same if you are adding the variable to the player, but instead of using <var:cl: - >  You would youse <var:pl - >

If this didnt help, pm me with your steam/skype and ill add you so I can help you get this working.
For now I have to go.

Ty both oblivion and drag. I will get the weapons saving addon but first I must try dragnoids events.

he needs help with VCE, not other addons.

So. Here is how to save money:
You would add a money variable to a player or client. EX: OnActivate - Client/Player - ModVariable - Gold : Add : 1
To save that variable you would have to do OnActivate(Or Any Other Activation Function) - Self - VCE - savevariable / loadvariable to load it - <var:cl:Gold>

now guns are a bit different. You would have to add a variable to every gun to save it. EX:
OnItemPickup - Client - ModVariable - HasSMG : Set : 1
And save the variable the same way you would save any other variable:
OnActivate(Or Any Other Activation Function) - Self - VCE - savevariable / loadvariable to load it - <var:cl:HasSMG>
Load it vice versa

You would do this all the same if you are adding the variable to the player, but instead of using <var:cl: - >  You would youse <var:pl - >

If this didnt help, pm me with your steam/skype and ill add you so I can help you get this working.
For now I have to go.

Does this save mean if I shut down server or leave my dedicated then join back it's still saved the gold?

Does this save mean if I shut down server or leave my dedicated then join back it's still saved the gold?
Yes. I think that VCE variables are saved over reset. But i'm not 100% on that.

Yes. I think that VCE variables are saved over reset. But i'm not 100% on that.
I'm sure I'm being completely dumb as I learned all I know about vce of 1 small vce shop tutorial. I have an addon where it displays a vce at the bottom of the screen which is good. To do this I went in server preferences and typed <var:cl:Gold>.
Am I meant to use the <var:cl:Gold> to save the vce? How do I save the vce lol. I'm trying to make it so it's like auto administration, you get the gold loaded back from previous visits when you join. Or at least I want it so when you spawn your in a room and you can choose characters with different levels that you've previously invented and saved.