Knuckle Cracker

Creeper World 4 => Making Maps, Units, and Scripts => Topic started by: JoniMega on February 28, 2021, 10:04:26 AM

Title: How can I make a message that pops at X time or X condition?
Post by: JoniMega on February 28, 2021, 10:04:26 AM
Hello, I have been trying to understand all by myself how the edit tool works, but I haven't seen a way to make an automatic popping A.D.A. message. The only thing that I manage to resemble is placing a InfoCache that, when is picked, it pops a message.

Has anyone figured out how to make a popping message like the "Wallis" planet from the farsite campaign? (The A.D.A message Wallis planet mission pops at X time).

Thanks :D
Title: Re: How can I make a message that pops at X time or X condition?
Post by: Karsten75 on February 28, 2021, 01:04:08 PM
Quote from: JoniMega on February 28, 2021, 10:04:26 AM
Hello, I have been trying to understand all by myself how the edit tool works, but I haven't seen a way to make an automatic popping A.D.A. message. The only thing that I manage to resemble is placing a InfoCache that, when is picked, it pops a message.

Has anyone figured out how to make a popping message like the "Wallis" planet from the farsite campaign? (The A.D.A message Wallis planet mission pops at X time).

Thanks :D

It's possible to open Wallis in your map editor, then look at (and use or modify) the script in there.
Title: Re: How can I make a message that pops at X time or X condition?
Post by: 321k on March 05, 2021, 08:39:07 AM
Hi, I think it should be enough to place code like this at the top of the script

$COUNTDOWN:3000 # 3000 frames = 100 seconds
if (GetGameUpdateCount == (<-COUNTDOWN))
      # drop your ada message code here
endif