Jump to content

CnCNet Forums

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Some very interesting trigger research

Recommended Posts

Over at TiberiumWeb, Lin Kuei Ominae has been doing some very interesting experiments with triggers, and has come up with some neat ways to do stuff like making an AI-owned MCV move to a spot and deploy there, making reinforcements arrive on the Nod airstrip, and making a trigger to give a player money. I suggest you check it out ;)


Mind my replies though; Lin Kuei did make a couple of mistakes :P

Share this post

Link to post
Share on other sites

This may be interesting for mission makers: I'm debugging the trigger reading. So far I've discovered:


-Trigger names can indeed only be 4 characters long.

-The C&C ini read does NOT care about ";" comment signs at the start of a line. In fact, I noticed that adding comment lines starting with ; between my triggers screws up the trigger names, because the game reads from the start of the line to the next equal sign, even if that's on the next line. Then it takes the first 4 bytes of that (meaning, of the comment part on the previous line) as trigger name. I tried starting comments with ";=" but this crashed the trigger scanning code as it tried to interpret my comment as trigger.

-Teamtypes seem to have a maximum length of 12 characters, judging from the storage space reserved for the name in a teamtype object in memory. Didn't actually debug the teamtype reading, but there were 13 bytes there, and strings normally always end on a 0x00 byte.

Share this post

Link to post
Share on other sites

yeah, I was adding some comments to my triggers to make things more clear and fix some problems, and suddenly my celltriggers stopped working (because it read the comment as trigger name).


So I thought, let's debug it, and see what goes wrong...

Share this post

Link to post
Share on other sites

Interesting, I'll keep these in mind when planning missions for TD:X ;)


EDIT: Whoa, I didn't even remember I had posted there :O

Share this post

Link to post
Share on other sites

Huh, looks like tiberiumweb is dead... wonder if it'll come back -_-



I should really write all of that stuff down some time. I think I still remember all of it.

-Making MCVs deploy

-Limiting the patrol path of gunboats

-C17 reinforcing tricks and giving money


...not sure if there was much besides that.

Share this post

Link to post
Share on other sites

Well, basically:

Making MCVs deploy:

  • Put an MCV on the map and give it the "Deploy" command
  • Make a trigger to put it in a team to move it around to the place where you want it.
  • Make this trigger fire immediately at the start of the mission, so it overrides the command of the MCV before it actually deploys.
  • After moving to the destination of the teamtype, It will deploy on the end of the route. I'm not sure if you have to give it a new Deploy command there or not, though; it's been a while. There may be some example maps on the forum here, of people who experimented with it.

This can be used for missions where you have to disrupt an enemy convoy with an MCV before it reaches its destination and starts building a base.

Restricting the route of gunboats:

  • I think this was simply making them move between two points. You have to make sure the waypoints are both exactly on its Y coordinate on the map.

C17 reinforcing and money giving:

  • You can make reinforcements arrive with C17s, but only one unit at the time
  • If you specify more units, the first will be delivered, and you will get the cash of the others as if the units were built but then cancelled
  • If you make units reinforce with C17s, but the player does not have an Airfield, the player will receive the money of the cost of the units instead.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By default user
      Hi everyone,
      I know there several posts out there on Virtual Machine LAN networking, but I haven't come across any referencing VMware ESXi.  Was hoping I could start one.
      Here's what I'm trying to do...
      I have a ESXi host running vSphere 6.5.  On it are several VM guests running Windows 10 (build 1903).  All VMs are using VMNET3 virtual NICS, w/8GB RAM, and quad core vprocs.
      I'm having a heckuva time getting LAN networking to run for any CNC game (Dune 2000, TD, TS, RA - doesn't matter, symptoms are the same).
      On the VM, all games install successfully using the latest builds.  All will run without error too.  
      On the example below, I'm running Dune 2000.  As you can see in 'screenshot 1', it does not allow me to join or create a new game.  What's interesting is that the IRC client does not appear to load despite being previously installed.   The Windows firewall is turned off.
      Now, by contrast, on a regular laptop - the same game installer will allow me to create a new game or join an existing one.
      I welcome your thoughts.

    • By Hejjo123
      When i click full game (for windows) I then click download but, nothing happens. HELP!
    • By scut
      Hi all
      I'm now knee-deep in TD SP mapping and am starting to run into questions that I can't answer via Nyerguds guide, opening the default maps or a lot of googling.
      Is there anyway to improve the AI on gunboats? They seem to find one target and fixate on it until it's dead. If it moves out of range they won't change target to anything else. This is on the "Hunt" AI used by gunboats in all the campaign maps. I've tried putting gunboats in a difference House (Multi3) and using "All to Hunt" on them to refresh their AI state and hopefully get them to re-target, but "All to Hunt" kicks in for every AI unit in every House.
      I've also tried creating them as a teamtype and giving them MOVE-HUNT-MOVE-HUNT instructions to try to refresh their AI (I had hoped they would ignore the move instructions), but that just results in them swanning around in the water in a really weird manner.
      I'm unsure where newly built Orca's will arrive from? I have a House (located SE map corner) where the reinforcement edge is set to South, but Orca's seem to come in from the right side of the map, or from the top-right corner? Do player A-10's always come from the top-left corner of the map? Is there anyway to control this? If Chinooks are buildlevel 98 and so are Wooden Fences, is there anyway to give the player the ability to built Chinooks without Fences, or is that just how it is?
    • By Rapid Spectre
      I've been trying to play Tiberian Dawn in DOSBox and have some questions about it. I'll start with the playlist:
      Is the game supposed to play Act on Instinct at the start of every mission? At the fourth GDI mission this seems strange. I was more expecting the game to play predetermined tracks at the start of new missions.
      Also, I think I noticed the game skipping tracks in the playlist and I saw no reason for that to be happening.

      Thanks in advance
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...