Author Topic: VCE random events  (Read 6932 times)

   Im trying to make a random weapons box from national socialist Zombies in Blockland. And In case you dont know what it is or does, ill explain. The random weapons box is where you go up to it and you can "buy" A weapon from it. Once you buy it, it randomly chooses a weapon that you get. But your not forced to get it, You can choose if you do or not (which means setitem events). But You still pay the money (points in BL). All I need is a way of using VCE or any type of event to randomly select a weapon. I had something with VCE variables, but it keeps getting forgeted up. Please post it in the format of event so i can just type them in. Example:
 
       OnActivate>Self>blahblah

 And I only realy need the VCE events nothing else. If there is a event that does this that i can download, please give me the link.

 

I would do something along the lines of....
OnActivate>Self>VCEmodVariable> [random] [==]

OnActivate>Self>VCEmodVariable> [random] [randomNumber] [5]
OnActivate>Self>VCEifVariable> [random] [==]
  • [3 3]

OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [1] [5 5]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [2] [7 7]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [3] [9 9]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [4][11 11]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [5] [13 13]
OnVariableTrue>Player>Additem>Whatever

First 2 events make it a random number between 0 and 5
Rest are basically, depending on the number generated, give certain item. There is probably easier way to do this, but this is the way I would do it. The [9 9] etc are the subsystem... If you don't know what that is, I suggest looking at the VCE guide.

-snip-

ok thanks! Ill leave the topic up until I get it working just to see if anyone else has different ways.

Note: I might not be able to respond considering if it works ill be on BL for a long time.

Can someone tell me where to find the VCE Guide? or can someone just tell me what Subsystems are.

ya, i know im pretty stuffty with VCE.

Should be inbuilt into vce, adds a nice button in the event dialogue...
But basically... Subsystem is the last box on your IfVariable/Value statements.... It means that that event can only trigger the onvariabletrue/falses in the event range you specify there... so in my example [9 9] would mean "OnActivate>Self>VCEifVariable> [random] [==] [3] " can only execute the "OnVariableTrue>Player>Additem>Whatever" on line 9.

Ok, so It only does the range of the two of them. So can i just type in what you gave me, or did you not add the Subsystem?

I would do something along the lines of....
OnActivate>Self>VCEmodVariable> [random] [==] [0]
OnActivate>Self>VCEmodVariable> [random] [randomNumber] [5]
OnActivate>Self>VCEifVariable> [random] [==] [0] [3 3]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [1] [5 5]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [2] [7 7]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [3] [9 9]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [4][11 11]
OnVariableTrue>Player>Additem>Whatever
OnActivate>Self>VCEifVariable> [random] [==] [5] [13 13]
OnVariableTrue>Player>Additem>Whatever

Bold is subsystem

Ok ill go try that now.

It didnt work.

One thing is that on the first line it actualy has more to type in:

OnActivate>Self>VCEmodVariable> * >[   ]  [==] [   ]
 
the star is a box for what thing im using like self/player/client. And I just put random in the first blank box. And then I put selected the equal signs and Im just guessing that you didnt type the last one because you dont insert anything.


Can someone please help me. Just give me a save or type it in please. It would realy help.

Kay, I'll get the save.And you know what? I read the manual. I haven't ever used VCE before. And I got it. YOU FAILED.