login about faq


I am using quest and here is the thing:

  1. I want to be able to randomise a new murder each time

  2. I want to randise a new weapon each time.

Any ideas how to do this on quest.

asked Oct 01 '12 at 03:51

Daniel%20Colthart's gravatar image

Daniel Colthart
431638289


It all depends on the programming language that your using to make the game itself... Which language is the game being programmed in? Usually there is a randomize function that you can use in like C++, Pascal, Delphi that you can use in order to do it and give a weapon or murder a number. and set it up that way.

answered Oct 01 '12 at 21:36

Compucore's gravatar image

Compucore
2.4k111925

I am using quest

(Oct 04 '12 at 14:07) Daniel Colthart Daniel%20Colthart's gravatar image

A java sketch/example of a method to give a random weapon:

public static void setRandomWeapon() { Random random = new Random(); int randomWep = random.nextInt(); switch (randomWep) { case 0: setWep("Pistol"); break; . } }

answered Oct 01 '12 at 22:37

ryebread761's gravatar image

ryebread761
7.5k214241322

But i can't enter that on quest???

(Oct 04 '12 at 14:07) Daniel Colthart Daniel%20Colthart's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×514
×87
×56
×5

Asked: Oct 01 '12 at 03:51

Seen: 493 times

Last updated: Oct 04 '12 at 14:07