Drug Lord menu

Shout-Out

User Tag List

Thread: Drug Lord

Results 1 to 10 of 10
  1. #1
    Cush's Avatar Elite User
    Reputation
    504
    Join Date
    May 2006
    Posts
    528
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drug Lord

    http://www.geekhideout.com/downloads/druglord2.exe

    Basically I was wanting to make a clone of that (For learning purposes ofc :P), but im not sure how I would go about most of the game being completely random, any ideas?

    Every turn the drugs that show up in the list are random, the events that occur are random (Drug prices going sky high or rock bottom, or being attacked by something/one), the prices are random (To an extent)

    I was thinking of rolling random numbers and deciding what event will happen depending on those, but that seems a little tedious, isnt there an easier way to randomise a set of events/numbers?

    Drug Lord
  2. #2
    T1B's Avatar Elite User
    Reputation
    369
    Join Date
    Apr 2006
    Posts
    656
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Id make a table that contains all ur events and the chance that that specific event would happen. And then with a timer generate a random integer and select the event based on the chances table.

  3. #3
    Cush's Avatar Elite User
    Reputation
    504
    Join Date
    May 2006
    Posts
    528
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What kind of table?

  4. #4
    [ Prototype ]'s Avatar Member
    Reputation
    719
    Join Date
    Dec 2006
    Posts
    844
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cush View Post
    What kind of table?

    That table.

  5. #5
    Cush's Avatar Elite User
    Reputation
    504
    Join Date
    May 2006
    Posts
    528
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by [ Prototype ] View Post

    That table.
    Get out of my house, now :hf:

  6. #6
    [ Prototype ]'s Avatar Member
    Reputation
    719
    Join Date
    Dec 2006
    Posts
    844
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aw damn. Where should I go now? :<

  7. #7
    T1B's Avatar Elite User
    Reputation
    369
    Join Date
    Apr 2006
    Posts
    656
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cush View Post
    What kind of table?
    A table like possible events:

    Event 1 : 50% chance
    Event 2: 30% chance
    Event 3: 10% chance
    Event 4: 5% chance
    Event 5: 4% chance
    Event 6 1% chance

    then u generate a new number between 1 and 100 and pick the event that matches it

  8. #8
    Cush's Avatar Elite User
    Reputation
    504
    Join Date
    May 2006
    Posts
    528
    Thanks G/R
    3/19
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Humm, but what kind of object would I use? So far I havent been able to get multiple columns working in any of the lists.
    Last edited by Cush; 03-12-2009 at 04:25 PM.

  9. #9
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then go with an array.

    Dim MyArray(1 To 900, 1 To 900) As String

    for example.

  10. #10
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you could Enum your Events; Or I would make an event class and have the Event information in there.

    Then you could easily access and add Events to a List or Array.


Similar Threads

  1. Replies: 2
    Last Post: 01-29-2007, 09:24 AM
  2. Lord Alexander's Axe-> Thunderfury
    By Avianar47 in forum World of Warcraft Model Editing
    Replies: 2
    Last Post: 10-28-2006, 03:55 PM
  3. Be a dread lord!
    By Relz in forum World of Warcraft Model Editing
    Replies: 19
    Last Post: 10-11-2006, 10:33 PM
  4. Lord of the Warcraft
    By Örpheus in forum World of Warcraft General
    Replies: 11
    Last Post: 09-18-2006, 08:46 PM
  5. [Guide] Lord Kazzak
    By oninuva in forum World of Warcraft Guides
    Replies: 3
    Last Post: 05-07-2006, 01:02 PM
All times are GMT -5. The time now is 02:51 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search