Blockland Forums > Help
VCE is acting odd.
Gen. Hothauser:
I think it's the random parameter in line 1. Random picks a number between 0 and 1. I don't think the final box does anything. If I am correct, then just change the parameters of the other events from 1, 2, 3, and 4 and change it to ranges, such as 0-.25, .25-.5, .5-.75, .75-1. I think this can replace what you want:
[/] 2 50 [onrelay] [self] [vce_ifval] [<var:br:chance>] [>] [0] [3 3]
[/] 3 0 [onvariabletrue] [self] [vce_ifval] [<var:br:chance>] [<=] [.25] [6 7]*
*this is the lines 6 and 7 in you picture, not what the events would be in my example. This should work now.
tkepahama:
--- Quote from: TheBlackParrot on July 20, 2012, 08:42:53 PM ---wroooong, they work fine with onActivate events.
--- End quote ---
I wasn't talking to you, I guess I should've quoted who I was talking to first, sorry about that.
NASAboy3000:
--- Quote from: Gen. Hothauser on July 22, 2012, 12:10:37 AM ----snip-
--- End quote ---
no that's not how it works at all. first, it only gives a whole number. Secondly it picks the number between 0 and the variable you are randomizing's current value (pretty sure this is right?).
Gen. Hothauser:
--- Quote from: NASAboy3000 on July 22, 2012, 09:53:51 AM ---no that's not how it works at all. first, it only gives a whole number. Secondly it picks the number between 0 and the variable you are randomizing's current value (pretty sure this is right?).
--- End quote ---
My thing that i said comes pretty much directly from the mining brick in my City RPG that i am currently working on. so ya
but if you are right, then he'd want to change it to a range, because the == wont work