Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Nov 30, 2024 8:58 pm
All times are UTC + 0
Triggers, Scripts, teams, and taskforces (***)
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [15 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Team Black
Defense Minister


Joined: 25 Sep 2006
Location: Teamblackistan Posts: Over 9000

PostPosted: Fri Feb 23, 2007 7:09 am    Post subject:  Triggers, Scripts, teams, and taskforces (***) Reply with quote  Mark this post and the followings unread

The only difficulty of triggers, taskforces, teams, and scripts IMO is learning them, but once you do, these things are actually pretty easy...
There are many other features beyond those in this tutorial, but I just want to run through the BASICS, to make these things less intimidating.

TASKFORCES are nothing more than a group of units. You can choose which units you want in the task force by going



1.With this drop-down you can select any of the taskforces that have been created on the map. They are represented by a NUMBER, in which the game recognizes it, and a NAME, so that you can recognize it for yourself.

2. Edit the NAME of tha taskforce here - the name can be anything, it's usually best to call it by which units are in the squad, so it is esier to find later on.

3. this is the list of the types of units in the taskforce. The amount of each unit type is specified next to its name.

4. to add a UNIT TYPE, you must first press ADD. Yes, I forget that alot too #Tongue
When you press ADD, it creates a unit-type E1 on the list by default.
to DELETE a unit type, select it in the list and press Delete :rolleyes:

5. select a unit type in the list, and set its quantity HERE.

6. This drop-down contains all of the unit-types in the game. Highlight the unit-type in the list that you want to change. Then go to the drop-down and select which type of unit you want, they are arranged alphabetically according to their code name.

SCRIPTS specify what your TEAM will do.
It is a list of commands that a TEAM will automatically carry out.
Most of the time it is something simple. For this example, I will show you how to make the TASKFORCE above (2 tick tanks and an artillery) move to a spot and deploy.

First, put your waypoints down: Where you want the team created, and where you want them to deploy.



I want the team to be crated at waypoint 16, move to 17, and deploy.

Go EDIT>>SCRIPTS, then press ADD. In the SRIPPTYPE drop-down, the bottom of the list will display 'new script'. Select it.



--change the 'Name' to anything you like, so that you can recognize it for use later on.
1.Press ADD to insert the first action.
2.Go to the action list drop-down. This is a list of every action possible in Tiberian Sun. Pretty much all of them are easily described in the 'Description' box.
The rest are for you to expirament with later, but for now I will select the 'Move to waypoint' action.



Then select which waypoint that you want them to move to. In this case, it's 17.



then press "1" ADD to add the second action, then go back to the "2" dropdown, find Deploy and select it. So you have two commands: Move to waypoint #17, then Deploy.



TEAMS put TASKFORCES and SRIPTS together. They also do a couple of other things, but I'll just cover the most important ones.



Go EDIT>>TEAMS.

1. NEW>>by default it crates the name 'New Teamtype'
2. Name the team whatever you want. As before, make sure it's something you'll easily recognize.
3. House. This tells the game which HOUSE that the team should belong to. Always double-check this, as it's easy to miss.
4.Waypoint. Which WAYPOINT should the team be created*
5.Which SCRIPT does the TEAM follow. As soon as the TEAM is created, it follows the actions of the SCRIPT.
6. Which TASK FORCE defines which units that the team is made of.
NOTE: It's usually best to make the script and the taskforce FIRST, so that you can add them right away, and not accidentally forget to define the script or taskforce. The game doesn't like it when you have a team with a wrong/absent script or taskforce #Tongue

*the units in the team can already be on the map. Such as a train, make the taskforce 1 locomotive, then place the WAYPOINT (the one defined in the 'team' list) on top of the locomotive.
When the team 'locomotive' is created, it will then follow whatever script you made for it (usually one that makes it follow waypoints around the track)

TRIGGERS ah, those elusive and intimidating things.
Really though, they are pretty easy to understand once you figure out what they are.
TRIGGERS are split up into 2 groups: EVENTS and ACTIONS.
You select the EVENT(s): what needs to happen before the 'trigger' is set off.
Then select the ACTION(s): what results when the 'trigger' is set off.

So go EDIT>>TRIGGERS. Click 'New Trigger', and you'll get this:


1. This is the drop-down where all the map's triggers can be accessed.
2. These are the tabs to select between the options/events/actions. No lie #Tongue
3. Name the trigger, so that you'll be able to recognize it in the future
4. The house that the trigger affects. Sometimes it won't matter, (i.e. like an ion storm initiated). Just select which house it would apply to the BEST, and you should be fine.


Once you set everything on the options tab, go to the EVENTS tab, and click (1.) 'new event'
Look at the drop-down list (2). These are all the possible EVENTS in which you can use to make the trigger to go off.
Most of them are self-explanatory, and if you need further explaination, it is provided in the box below (3).
4. PARAMETERS are the "..." in the EVENT/ACTION.
In this case, it is "which building needs to be built for the event to trigger?" the answer is "Construction yard" as shown in box #5.
5. The parameter drop-down list displays all possibilities of parameters for the type of event you selected. Sometimes it's a drop-down, sometimes it's a number, such as a waypoint number or an amount of seconds. Sometimes you don't need a parameter, it all depends on the EVENT/ACTION that you chose.
--this trigger goes off when Nod deploys/builds a Construction Yard.
NOTE: you can make as many events as you want, the trigger won't trigger until ALL of the events are fulfilled.



The ACTIONS tab is set up exactly like the EVENTS tab. Click 'new action', then specify which action you would like in the 'action type' drop-down; Reinforcement @ waypoint makes a specified 'team' appear at the specified 'waypoint'
Then set the parameters:
TEAMTYPE displays a list of all the map's teamtypes in the 'parameter value' drop-down. Select the one you want.
WAYPOINT defines which waypoint that the reifnforcements will appear. (This waypoint should be the same as the one defined in the TEAM EDITOR waypoint)

--So when Nod builds a Conyard, the 2 tick tanks & 1 artillery will appear t waypoint #16, move to waypoint #17, then deploy. Let's test it.





Perfect. I hope this tutorial helped, and maybe made these features less intimidating Smile
There's actually a TON of cool stuff you can do with these, but most of it is better learned by testing and finding out for yourself.


Key Words: #Tutorials #Modding #Mapping #TiberianSun #Firestorm #RedAlert2 #YurisRevenge #AI.INI #FinalSun #FinalAlert2 

_________________
The Fall of Hammerfest - Epic Tiberian chain story

Tiberian Odyssey mapping department. Discord
The Team Black Index

Last edited by Team Black on Wed Oct 30, 2013 1:49 pm; edited 2 times in total

Back to top
View user's profile Send private message
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Fri Feb 23, 2007 2:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

What FinalSun version are you using? that blue interface is highly unclear.

_________________


Back to top
View user's profile Send private message
Team Black
Defense Minister


Joined: 25 Sep 2006
Location: Teamblackistan Posts: Over 9000

PostPosted: Fri Feb 23, 2007 3:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Woops - that's my display settings. Yeah you're right tht is a little unclear. Crap, I REALLY don't feel like going through and making all those screens again

_________________
The Fall of Hammerfest - Epic Tiberian chain story

Tiberian Odyssey mapping department. Discord
The Team Black Index

Back to top
View user's profile Send private message
IVI
Commander


Joined: 25 Jun 2006
Location: Feilubin

PostPosted: Sat Feb 24, 2007 4:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

very informative Team Black... thank you for this. I don't know how to make single player missions but thanks to you, I've taken a step into learning it. Smile

Back to top
View user's profile Send private message
Team Black
Defense Minister


Joined: 25 Sep 2006
Location: Teamblackistan Posts: Over 9000

PostPosted: Tue Feb 27, 2007 4:05 am    Post subject: Reply with quote  Mark this post and the followings unread

Hey no problem, dude -
I've seen some of your graphics work which is really impressive. I can't wait to see what kind of SP maps you'll make Smile

_________________
The Fall of Hammerfest - Epic Tiberian chain story

Tiberian Odyssey mapping department. Discord
The Team Black Index

Back to top
View user's profile Send private message
Phips
Civilian


Joined: 16 Aug 2013

PostPosted: Tue Aug 20, 2013 4:13 am    Post subject: Reply with quote  Mark this post and the followings unread

hello Smile great tutorial but I don't get some things because the pictures are missing. plz add pictures to ppm if you can.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Aug 20, 2013 6:43 am    Post subject: Reply with quote  Mark this post and the followings unread

\links fixed

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
DarkVen9109
Pyro Sniper


Joined: 02 Nov 2012
Location: Philippines

PostPosted: Tue Aug 20, 2013 6:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Don't meant to bump I don't understand what does Phips is trying to point out, there are pictures for you to compensate and understand the procedures. By the way, Team Black, I've been longing to say what did you do to your Final Sun to show some blue colored windows?

Back to top
View user's profile Send private message Send e-mail
Morpher
General


Joined: 28 Jan 2005

PostPosted: Tue Aug 20, 2013 6:59 am    Post subject: Reply with quote  Mark this post and the followings unread

The links were broken previously, LKO then fixed them. I think this case is solved.

_________________


Back to top
View user's profile Send private message
Phips
Civilian


Joined: 16 Aug 2013

PostPosted: Tue Aug 20, 2013 3:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

How add existing units to a force? Units in the tutorial spawn. Are they recruited and how does this work?

Back to top
View user's profile Send private message
Team Black
Defense Minister


Joined: 25 Sep 2006
Location: Teamblackistan Posts: Over 9000

PostPosted: Wed Oct 30, 2013 1:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry it took so long to notice this!
@Phips The way it's supposed to work if you notice the Waypoint under the Teams section: when you create a team of existing units, it should search for those units by the waypoint and create the team. I don't know how close the units have to be to the waypoint for this to happen. The only time I've done this is with my Tactical Training map, where the single train team is created directly on the waypoint. Otherwise, I just made the team Reinforcements because it seemed easier.
Based on my knowledge, that's the most solid answer I can give you

@LKO thanks for fixing the links!

@ the blue background, that was a change to the color settings for my Windows XP at the time. I thought it was cool at the time, but now it's an eye sore!

_________________
The Fall of Hammerfest - Epic Tiberian chain story

Tiberian Odyssey mapping department. Discord
The Team Black Index

Back to top
View user's profile Send private message
truefeel
Rocket Cyborg


Joined: 02 May 2006

PostPosted: Fri May 16, 2014 11:11 am    Post subject: Reply with quote  Mark this post and the followings unread

Just to make sure, for existing units on the map you can alternatively assign the unit to a group and fill in the same number in the group box in the teamtypes window, instead of working with waypoints?

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri May 16, 2014 11:18 am    Post subject: Reply with quote  Mark this post and the followings unread

yes.
Usually, when i create for example moving trains, i use also group numbers higher than 10. (0-9 are the groups which the player can also assign via keyboard shortcut)
When using groups 10 and higher, you don't see the number when you select an allied team that belongs to this group. e.g. Special house units which are allied to all players and thus would show group numbers 0-9 if you would use these.

Using groups is imo also more reliable when you have multiple units of the same type (e.g. 2 trains). The waypoint system is simply taking one of the units matching the team, probably the closest to the waypoint, but that's not safe enough for me.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
truefeel
Rocket Cyborg


Joined: 02 May 2006

PostPosted: Fri May 16, 2014 11:27 am    Post subject: Reply with quote  Mark this post and the followings unread

I also find using groups just neater. It gives a direct link from unit on map to the teamtypes, effectively turning everything in the system of taskforce/script/teamtype/trigger directly connected.

Anyway, thanks LKO. It'll come in very handy.

Back to top
View user's profile Send private message
HG_SCIPCION
Gauss Rifle Trooper


Joined: 07 Jun 2013
Location: Perú

PostPosted: Fri May 16, 2014 8:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

hhhhmmmm...
this tutorial is awersome...
good work....

_________________
https://www.moddb.com/mods/global-crisis
https://www.patreon.com/scipcion

Back to top
View user's profile Send private message Facebook Profile URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [15 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2218s ][ Queries: 11 (0.0097s) ][ Debug on ]