After finishing your map, it is recommended to have ModelEdit opened and WorldEdit.chm file in the Help folder (default address: C:\Program Files (x86)\Sierra\Dev\Tools\Help), because we will need to see which animation we need and which command we will need. Let's get this done...
CHOOSING WHICH ANIM WE WANT TO USE
Open ModelEdit and go File>Open and choose alma.model00c.
In the Animations tab choose which anim you want to use in your scene. I will use ScaryWalk2. Just remember the name of anim, nothing else to do in this program.
ADDING ALMA'S AI
Okay now, go to the WorldEdit and open up your map. Press X button and relocate spawn position (those three green lines in 3D view, two in 2D view) to the place where you want to make Alma scene, then click right button on your mouse and go Add>Object..., go down and select CAI, and press OK.
In the Properties tab, select ModelTemplate to Alma.
Now go to the Nodes tab and make new Container Node and name it Alma. Now drag CAI you have added into that Container Node and rename it to the Alma.CAI. Now again press right mouse button and go to Add>Object..., and go down on the list to the Spawn, expand it and add AISpawner. Put it in the same place as CAI. Again, drag it to the Container Node where Alma.CAI is. And name it Alma.SP01.
In the Target field press B and choose Alma.CAI (see the picture) and press OK.
In the Properties tab, press E on the InitialCommand and type next:
msg <cai> (CINERACT ScaryWalk2);
delay # (msg <cai> REMOVE);
But # is a number of delay and it is represented in seconds. For example if you put 5 instead of #, Alma will despawn after 5 seconds. Like I said I have put ScaryWalk2 anim, but you can write any animation you want from the ModelEdit.
Press Validate. If nothing happens, that means everything is fine, but if another small window jumps in, you have an error. Now let's add trigger. Again go to Add>Objects..., and from the list choose Trigger and put it to the place where you want to trigger Alma.
For example in this screenshot, if I enter this red zone (trigger) Alma will appear at that yellow object and will walk toward the wall (you can change direction by rotating Alma.CAI). Rename trigger to the Alma.TG and move it to the Container Node you made before in this tutorial. Now rescale the trigger so you can activate it by going forward, so no need to wander around and searching for trigger if it's small by default. After you do this, go to the Properties tab and check PlayerTrigger to TRUE, so player can activate that trigger. We need now to connect it with the spawner. Just above the PlayerTrigger is a property called Commands. Go to the first command and press E at the end of the white box. Now type this:
msg Alma.SP01 SPAWN;
msg player (SIGNAL #);
The first command line is to activate spawner when trigger is triggered, and the second line is just decorative, to make player interface flicker and to hear static signals from the radio chatter. Again # represents seconds how long player will have this. It is recommended to put a few seconds longer than the delay in the previous commands we entered before. You can change to the black and white vision too, check WorldEdit.chm I mentioned before and to the player commands section. Press OK and build the map. If you done everything correctly, Alma should appear, just like in the campaign.
If you have any questions, put them down in the comment section, or join our Discord channel and meet us there! Happy modding...
Looking for finished map with this? Try this: