New account registration is temporarily disabled.

ANY WAY HOW?

Posts

Pages: 1
How do I make an event that randomly gives you a weapon to use. Like in Call of Duty: WAW nazi zombies?
Edit: in rpg maker vx
I've never played that game, but if you mean that it randomly gives you any item/weapon out of the weapons you have in your database, the answer is simple.

What you'll need to do first is set up your item database so that all weapons are in continuous array. For example:


So all the numbers from 17 to 22 (in this case) contain ONLY the weapons you want to randomly pick from.

Then in your 'choose random weapon' event you want to make a variable, say "RANDOM WEAPON" and using the "variable operation" command choose it to be a random number from <number that weapon list starts at> to <number that weapon list ends at>. Like so:



Then use the "Add item" command and choose to add an item depending on the number shown in the "RANDOM WEAPON" Variable. Viola~ done!

ill try that
its also on vx i forgot to say that. that looks alot like xp but its 2003
ya they removed alot of the stuff that you show in the pictures
this is easily done in the same way with vx. On the first page of the event scripting, there's "control variables" where you set a designated variable to the (random) value you'd like. then, again, on the first page, there's the "change weapons/armor/items", where you give the player the variable you set (and it being random, voila! you have a random item)

there's very little diffrence really.
when it does that it gives me a random amount of 1 weapon not 1 weapon on the list.


What you're doing is using the amount (bottom) variable. You need to use the one under select item instead.
it doesnt give the fixed amount in vx
Fixed amount is just a fancy way of saying how many. I'm pretty sure it gives an option of allowing more than one item to be gained at a time.
I went to look in VX and there actually isn't that option.



You'll just have to do it the long way:

tardis
is it too late for ironhide facepalm
308
post=93578
This is exactly why I still use RM2K/3...


:P Seriously...
Are you serious? You've got to be kidding me. They need to fire somebody at Enterbrain. The same guy that thought you really didn't need that many chipset options either. This makes it even harder because if the random numbers were just missing, you could have just wrote a script insert that does it all and you then just call the script using the command.

Figure out if there's some way to put a number when you're adding an item. Try finding the script that defines what add item does, and figure out how to call it. Then write a two line script, the first line makes a random number and the second calls the command with that number as the parameter and 1 as the amount. Then when you want to add a random weapon just call the script using the event commands, it shouldn't be that hard to figure out I hope.
Pages: 1