1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Random Tips in game

Discussion in 'World Editor Help Zone' started by CRAZY-PENGUIN, Aug 12, 2008.

  1. CRAZY-PENGUIN

    CRAZY-PENGUIN

    Joined:
    Aug 7, 2008
    Messages:
    114
    Resources:
    0
    Resources:
    0
    I want to know a trigger that makes my tips appears inside the game ramdomly

    example: every 5 minutes show 1 tip of 10 ramdomly
    5 minutes of the game: "Tip2 appears: You can type commands to see the commans of the game...."
    10 minutes of the game: "Tip8 appears: You can buy the epic items there..."15 minutes ....
    thanks,
     
  2. x3m

    x3m

    Joined:
    Apr 11, 2008
    Messages:
    51
    Resources:
    0
    Resources:
    0
    Just use math - random numbers between x and y. Store in variable.
    If yourvariable = 1 then echo message1.
     
  3. scorpion182

    scorpion182

    Joined:
    Jun 9, 2008
    Messages:
    575
    Resources:
    21
    Maps:
    5
    Spells:
    16
    Resources:
    21
  4. x3m

    x3m

    Joined:
    Apr 11, 2008
    Messages:
    51
    Resources:
    0
    Resources:
    0
    Or do an array, so the same message can't be displayed before the rest have.
     
  5. hive01

    hive01

    Joined:
    Apr 28, 2007
    Messages:
    71
    Resources:
    0
    Resources:
    0
    Eeek scorpion...screenshot. Trigger tags?
    Variables:
    Tips(String Array) size of array = number of tips you want
    TipGen(Integer)
    • Events
    • Time - Every 18.00 second of game time
    • Conditions
    • Actions
    • Set Tips[1] = Press F9 for help
    • Set Tips[2] = Type: -commands for commands
    • Set Tips[3] = Another Pointless Tip
    • Set TipGen = Random Number(1-3)
    • If TipGen = 1 Then Game - Display Text to Players(All) Tips[1] Else Do Nothing
    • etc...

    I didn't have WE but ill update when i do...
     
  6. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    it would be better to initialize the "Tips" array at map init instead of initialize it every time a tip is displayed ^^'

    and anyway, why do you use a "if num=1 then display tip[1]; if num=2 then display tip[2] etc..."
    it would be simpler to just "display tip[num]" ;)
     
  7. CRAZY-PENGUIN

    CRAZY-PENGUIN

    Joined:
    Aug 7, 2008
    Messages:
    114
    Resources:
    0
    Resources:
    0
    I guess it will work! ty all