Author Topic: Shop System  (Read 4176 times)

          VCE is usually my go-to when eventing things.

          Here's what I would use in your situation, broken down to be as simple as possible

  • 1 This can be swapped out for any method, I'd use onActivate because it's the easiest.
  • 2 The >= signs will make sure that you can't drop below specifically 12 points. If it was set to only equaling 12, it would only work if you had 12 points.
  • 3 If the variable is not equal or greater than 12 points, it will be false and everything under onVariableFalse will then run.
  • 4 For a more detailed message, you could put something like "You have <var:cl:score>pts and you need 12pts!", or something along the lines. The <var:cl:score> will show up as the player's current score in print messages. This works for every variable.
  • 5 If the variable is equal to or greater than 12 points, then the check would be true and onVariableTrue would run.

If you have questions about anything else as far as eventing things go, I'd be happy to answer them.

that's very useful information, thanks!

um the one thing left is if someone could pm me the VCE, and i think i'll be set!

thank you
« Last Edit: January 22, 2016, 06:07:00 PM by The Resonte! »

i'm in a tight spot right now

an error kept occuring where a package of VCE wouldn't load along with some functions
so i 'fixed' that
(beforehand doing what Ike said didn't do anything)

but now instead, while the setup Ike provided actually works well, the "operator" on point 2 seems to just act weirdly
the operators >, >=, ==, and ~= always act false, and the operators <, <=, and != always act true

any thoughts?
« Last Edit: January 23, 2016, 12:58:08 AM by The Resonte! »

the operators >, >=, ==, and ~= always act false, and the operators <, <=, and != always act true
Well, first things first, was your score at least the cost of the item?
Also the reason that Ike's didn't work was because he used ifVariable instead of ifValue. ifValue is for variables that already exist in the game, ifVariable is for when it's a variable that you made/are creating.

Well, first things first, was your score at least the cost of the item?
Also the reason that Ike's didn't work was because he used ifVariable instead of ifValue. ifValue is for variables that already exist in the game, ifVariable is for when it's a variable that you made/are creating.
great! this really helped!

after some trial and error i found that this setup worked quite well!

I have the working/fixed version of weapon shop system but it's a private addon. You can try asking glass for it.

I have the working/fixed version of weapon shop system but it's a private addon. You can try asking glass for it.

Is it similar to the one I provided?

Vce is more fun tho :v

Vce is more fun tho :v
It can also be unreliable, as the creator of VCE says not to use VCE. Using scripts as an alternative for VCE is almost always better. If you have access to a good Shop System addon, use it. If not, do VCE.

Is it similar to the one I provided?
Its the fixed version of that one.

why is a fixed version of a public addon private though


why is a fixed version of a public addon private though
Dunno, you'll have to ask Glass.