Results 1 to 4 of 4

Thread: using Random in Scripts

  
  1. #1

    Default using Random in Scripts

    There's this Random command under scripts, was wondering how to use it.
    I guess something like Set_flag(PLAYER0,FLAG,RANDOM(1,2))?

    Anyone tried before and got it to work?

    Plan to semi randomly generate parties for Skybird Trill remake
    Dungeon Keeper 1 / Deeper Dungeons Fan
    No intention to play DK2

    I'm Chinese, so please try and spell better than me...

  2. #2
    Awakening Game Master Metal Gear Rex's Avatar
    Join Date
    Sep 2009
    Posts
    5,689

    Default Re: using Random in Scripts

    Quote Originally Posted by Zyraen View Post
    There's this Random command under scripts, was wondering how to use it.
    I guess something like Set_flag(PLAYER0,FLAG,RANDOM(1,2))?

    Anyone tried before and got it to work?

    Plan to semi randomly generate parties for Skybird Trill remake
    I've used it several times. It works perfectly fine. However, you seem to be using it incorrectly. You put it where you would put a numeric value.

    For example:
    Code:
    SET_FLAG(PLAYER0,FLAG0,RANDOM(0,10))
    It doesn't work if you directly attach it to PLAYER, FLAG, etc.
    Dungeon Keeper 2 Patch: With More Balance and Pie [Hiatus]
    Forever Hiatus. Probably. Latest Version: 3.5 w/Levels 1-11 Revised.

    The Awakening: GM Powers Activate!
    Tesonu is napping!

  3. #3

    Default Re: using Random in Scripts

    Thanks great! *evil laughter*
    Dungeon Keeper 1 / Deeper Dungeons Fan
    No intention to play DK2

    I'm Chinese, so please try and spell better than me...

  4. #4
    Beetle Enker-Zan's Avatar
    Join Date
    Mar 2011
    Location
    Riverside, CA
    Posts
    114
    Gamer IDs

    Gamertag: EnkerZan XFIRE ID: enkerz4n

    Default Re: using Random in Scripts

    Up to no good I see... lol

Similar Threads

  1. random map
    By fantasm0 in forum War for the Overworld
    Replies: 4
    Last Post: June 21st, 2011, 04:19
  2. Random freezing.
    By HellsFait in forum KeeperFX
    Replies: 1
    Last Post: February 19th, 2011, 20:45
  3. Random Freeze?
    By Metal Gear Rex in forum KeeperFX
    Replies: 1
    Last Post: November 1st, 2010, 08:39
  4. Random stuff
    By dk2player in forum Silly
    Replies: 91
    Last Post: April 6th, 2010, 21:37

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •