Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Editor and tools
08-07-2016, 12:01 AM (This post was last modified: 08-07-2016 03:09 AM by ComradeReptiloid.)
Post: #59
RE: Editor and tools
(08-06-2016 05:20 PM)allrounder18 Wrote:  Few basic things I would want to learn and will great help for every new user.
1)how to setup ai patrol using way point ,ai area and anchors
2)how to setup triggers and its associated action such unlocking certain building if players do certain things
3)setup the uniform zones with specific uniform requirement
4)assigning certain actions for npc , like maid cleaning up , chef cooking , carpenter doing his work
5)how to assign npc as target to kill
6)how to setup internal and external houses with visarea and occlude house with portals
7)how to setup objectives as primary and 2ndary.
8)setup exit zones in order to complete mission.
General tip: i recommend adding * before every added object, so you can easyly find and remove them, if something went wrong. Use search a lot ("H").

1. NPC using waypoints by default, picking fastest way to new target. You can create you own and link them to existing group or create "door waypoints" to connect waypoints from different groups (used to distinct height levels or visareas). You want to attach all kind of animation anchors to waypoints for precision (usualy if you want someone to sit and perform animation).

Second most importand thing about waypoints - vision level. It directly affect ai field of vision length, so have huge impact on gameplay. It would be pain in the ass, to edit all waypoints vision levels, but i done most crucial ones already.

Ai area patrolling - connect starting point with last one you create. Check path and closed path options (otherwise npc go in straight line from last placed point). You can generate waypoints along the lines, that connect points together. You can use animation curve, timings, addictional anchors and intervals, but it a bit advanced.

You want to use patrollingjob anchor for one npc and pick created path for him. You can also use aijob patrol multiple to assign companions, that would follow main npc. Also you must choose same idle group and disable group for every npc or patrol wont properly work.

Anchors serve the purpose of controled timing based alternative to patrol. Pick animation or function or cascade animations for newly created anchor.

For aijob anchoridle you gonna be connecting single anchor or couple of anchors to npc. You want to set up actor idle group number equivalent to every anchor idlegroup nuber he gonna use and put anchor sequence in his aijob anchoridle. You can check showidlegroup parameter on actor, so green arrow appear and show defined sequence.
If you want you actor to perform super complex path, use cascade job manager, where you can define couple of different jobs, but you must include them in .lua too.

For aijob customanimation just use any animation, actor stuck with it for whole map.

For aijob cascadeanimation pick animation sequence and set time for every new animation, use on idle npc.
Analog for aijob cascadeanimation designed for aijob anchoridle called AiAnchor AnimationFixed.
AiAnchor AnimationFunction exist too, mainly for activating your script functions from .lua file or executing callbacks.

2. Most simpletriggers defined already. But for you instance i recommend using function OnEnter trigger, that gonna execute new jobs for actors after activating it. This is far to complex and require codding in lua language skills.
Check different OnEnterTriggers names for your current level (Hei probably deleted them all) and find them in .lua scripts, located in proper Levels folder.

3. Check visiblearea custom params tab to define zones or create simpletrigger with zones.lua and define zones for it. You can use zone editor ("Alt+M") to access zone propereties or create new zones. You can create any combo of npc and player unifrom and pick interaction for that combo.

Example: Pick boid_room from zone list, pick officerSS from NPC forms list, pick Soldier from player form list. Pick Alert reaction from reaction list. Click update level.
What it does? When you enter boid_room (doctor room in prison) in soldier uniform and officer see you - he start to shoot immidiatly.

Interface explanation: if you want to add new player form reaction for same OfficerSS in current screnn, without reentering it, do next:
Uncheck Soldier from player uniform list and pick another uniform/reaction combo for OfficerSS.
If you want to add new NPC reactions to your soldier uniform, uncheck OfficerSS.
If you want create different player/npc unifrom combo, uncheck both OfficerSS and Soldier. Proceed further and create new combo.

4. See #1 Anchors part.
Interface explanation: use AiAnchor Rot Idle. Pick animation from one of predefined templates (strogov or gsoldier for male actors). Like Custom_WashWall and set use time and idle group number same as npc, that gonna execute this anchor. For different types of anchors and jobs see #1 (i dont describe talking job there, because i dont use it yet).

5. This is done in .lua files, located in proper Level folder. Check exemples of developer scripts for Kneller to understand how it works (Levels/Level08.Zamok.lua). Use search for this line Actor.MarkAsTarget( Level.FindActor('KNLR'), true ); And check all related scripts for KNLR to find more on that.
Spoiler: A shit load of work must be done to create new target on level and add description for it. Basicaly you need experience with LuaEditor and Shadvs Editor.

6. Add VisArea with same form as your brush model, use doors and create portals, assigned to door as external brush, and for VisArea as internal scenery.

7. I'm not totaly sure, but you can actualy make leaving mission possible before completed all objectives, if you use right conditions in functions. I will test one thing in latter updates - is it possible to get new task after stepping on function trigger or activating action trigger (like in Black Book mission).

8. It is done by function trigger. Again, you must define it in .lua files. Check Levels/Level02/Level2.lua and search OnEnterTrigger_TaskLEAV to see how its done.

You can track my current mod progression in AG Rebirth theme. I realease videos upon new version release and update todo changelog constantly. You can also check my hardcore walkthrough theme in Alekhine`s Gun subforum, if you interested in hard max.ratings suit only speedruns of all missions except 2 and 11 and superfast speedruns heavily bugs abd exploits abusive in uniforms.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Editor and tools - Alexey - 07-30-2016, 03:43 PM
RE: Editor and tools - Liz Shaw - 07-30-2016, 07:43 PM
RE: Editor and tools - adolf - 07-30-2016, 09:36 PM
RE: Editor and tools - Liz Shaw - 07-31-2016, 11:14 AM
RE: Editor and tools - Alexey - 07-31-2016, 01:27 PM
RE: Editor and tools - Liz Shaw - 07-31-2016, 02:03 PM
RE: Editor and tools - Alexey - 07-31-2016, 02:26 PM
RE: Editor and tools - Liz Shaw - 07-31-2016, 03:32 PM
RE: Editor and tools - Alexey - 07-31-2016, 10:37 PM
RE: Editor and tools - ComradeReptiloid - 08-01-2016, 01:13 AM
RE: Editor and tools - Liz Shaw - 08-01-2016, 07:50 AM
RE: Editor and tools - ComradeReptiloid - 08-01-2016, 12:32 PM
RE: Editor and tools - Alexey - 08-01-2016, 01:27 PM
RE: Editor and tools - Alexey - 08-01-2016, 01:29 PM
RE: Editor and tools - Liz Shaw - 08-01-2016, 02:41 PM
RE: Editor and tools - armitom - 08-01-2016, 04:43 PM
RE: Editor and tools - Alexey - 08-03-2016, 03:57 PM
RE: Editor and tools - Liz Shaw - 08-03-2016, 05:21 PM
RE: Editor and tools - Hiei- - 08-03-2016, 10:13 PM
RE: Editor and tools - Hiei- - 08-04-2016, 02:49 AM
RE: Editor and tools - Hiei- - 08-04-2016, 02:40 PM
RE: Editor and tools - Liz Shaw - 08-04-2016, 06:39 AM
RE: Editor and tools - allrounder18 - 08-04-2016, 08:10 AM
RE: Editor and tools - ComradeReptiloid - 08-04-2016, 11:16 AM
RE: Editor and tools - Liz Shaw - 08-04-2016, 04:46 PM
RE: Editor and tools - allrounder18 - 08-04-2016, 06:41 PM
RE: Editor and tools - Hiei- - 08-04-2016, 07:43 PM
RE: Editor and tools - Liz Shaw - 08-04-2016, 07:49 PM
RE: Editor and tools - allrounder18 - 08-04-2016, 08:08 PM
RE: Editor and tools - Hiei- - 08-04-2016, 09:12 PM
RE: Editor and tools - allrounder18 - 08-04-2016, 09:47 PM
RE: Editor and tools - ComradeReptiloid - 08-06-2016, 04:06 PM
RE: Editor and tools - Liz Shaw - 08-06-2016, 04:21 PM
RE: Editor and tools - Alexey - 08-06-2016, 08:08 PM
RE: Editor and tools - allrounder18 - 08-06-2016, 05:20 PM
RE: Editor and tools - ComradeReptiloid - 08-07-2016 12:01 AM
RE: Editor and tools - Alexey - 08-06-2016, 08:06 PM
RE: Editor and tools - Hiei- - 08-04-2016, 06:40 PM
RE: Editor and tools - Hiei- - 08-04-2016, 07:53 PM
RE: Editor and tools - Liz Shaw - 08-04-2016, 08:08 PM
RE: Editor and tools - Hiei- - 08-04-2016, 10:16 PM
RE: Editor and tools - Alexey - 08-06-2016, 08:12 PM
RE: Editor and tools - Hiei- - 08-04-2016, 11:34 PM
RE: Editor and tools - ComradeReptiloid - 08-05-2016, 12:27 AM
RE: Editor and tools - allrounder18 - 08-05-2016, 06:34 AM
RE: Editor and tools - ComradeReptiloid - 08-05-2016, 01:00 PM
RE: Editor and tools - allrounder18 - 08-05-2016, 03:25 PM
RE: Editor and tools - Alexey - 08-06-2016, 08:21 PM
RE: Editor and tools - ComradeReptiloid - 08-06-2016, 10:18 PM
RE: Editor and tools - allrounder18 - 08-06-2016, 10:31 AM
RE: Editor and tools - allrounder18 - 08-06-2016, 02:03 PM
RE: Editor and tools - allrounder18 - 08-06-2016, 03:27 PM
RE: Editor and tools - Alexey - 08-06-2016, 08:32 PM
RE: Editor and tools - allrounder18 - 08-06-2016, 09:55 PM
RE: Editor and tools - Hiei- - 08-07-2016, 12:47 AM
RE: Editor and tools - allrounder18 - 08-07-2016, 03:49 AM
RE: Editor and tools - Liz Shaw - 08-07-2016, 07:25 AM
RE: Editor and tools - allrounder18 - 08-07-2016, 09:56 AM
RE: Editor and tools - ComradeReptiloid - 08-07-2016, 05:01 PM
RE: Editor and tools - allrounder18 - 08-07-2016, 10:56 AM
RE: Editor and tools - allrounder18 - 08-07-2016, 01:36 PM
RE: Editor and tools - Hiei- - 08-07-2016, 09:40 PM
RE: Editor and tools - ComradeReptiloid - 08-07-2016, 10:48 PM
RE: Editor and tools - Hiei- - 08-07-2016, 10:40 PM
RE: Editor and tools - Hiei- - 08-07-2016, 11:09 PM
RE: Editor and tools - ComradeReptiloid - 08-07-2016, 11:22 PM
RE: Editor and tools - allrounder18 - 08-08-2016, 12:28 AM
RE: Editor and tools - ComradeReptiloid - 08-08-2016, 12:35 AM
RE: Editor and tools - Hiei- - 08-07-2016, 11:50 PM
RE: Editor and tools - Hiei- - 08-08-2016, 12:41 AM
RE: Editor and tools - allrounder18 - 08-08-2016, 07:50 AM
RE: Editor and tools - allrounder18 - 08-08-2016, 01:37 PM
RE: Editor and tools - Liz Shaw - 08-08-2016, 01:52 PM
RE: Editor and tools - ComradeReptiloid - 08-08-2016, 02:01 PM
RE: Editor and tools - allrounder18 - 08-08-2016, 03:19 PM
RE: Editor and tools - allrounder18 - 08-08-2016, 04:42 PM
RE: Editor and tools - ComradeReptiloid - 08-08-2016, 06:27 PM
RE: Editor and tools - allrounder18 - 08-09-2016, 07:41 AM
RE: Editor and tools - Liz Shaw - 08-09-2016, 08:59 AM
RE: Editor and tools - Hiei- - 08-09-2016, 12:06 AM
RE: Editor and tools - allrounder18 - 08-09-2016, 09:33 AM
RE: Editor and tools - Liz Shaw - 08-09-2016, 10:28 AM
RE: Editor and tools - allrounder18 - 08-09-2016, 12:36 PM
RE: Editor and tools - allrounder18 - 08-09-2016, 03:08 PM
RE: Editor and tools - allrounder18 - 08-09-2016, 04:49 PM
RE: Editor and tools - ComradeReptiloid - 08-09-2016, 05:37 PM
RE: Editor and tools - allrounder18 - 08-09-2016, 08:48 PM
RE: Editor and tools - Liz Shaw - 08-09-2016, 09:30 PM
RE: Editor and tools - allrounder18 - 08-09-2016, 09:35 PM
RE: Editor and tools - allrounder18 - 08-09-2016, 10:40 PM
RE: Editor and tools - Hiei- - 08-10-2016, 01:59 AM
RE: Editor and tools - ComradeReptiloid - 08-10-2016, 03:54 AM
RE: Editor and tools - Hiei- - 08-10-2016, 04:04 AM
RE: Editor and tools - ComradeReptiloid - 08-10-2016, 04:56 AM
RE: Editor and tools - allrounder18 - 08-10-2016, 06:34 AM
RE: Editor and tools - ComradeReptiloid - 08-10-2016, 06:59 AM
RE: Editor and tools - Liz Shaw - 08-10-2016, 08:40 AM
RE: Editor and tools - ComradeReptiloid - 08-10-2016, 01:15 PM
RE: Editor and tools - Liz Shaw - 08-10-2016, 01:22 PM
RE: Editor and tools - allrounder18 - 08-10-2016, 01:45 PM
RE: Editor and tools - ComradeReptiloid - 08-10-2016, 03:15 PM
RE: Editor and tools - allrounder18 - 08-10-2016, 09:21 PM
RE: Editor and tools - Liz Shaw - 08-10-2016, 10:02 PM
RE: Editor and tools - ComradeReptiloid - 08-10-2016, 10:09 PM
RE: Editor and tools - Hiei- - 08-11-2016, 01:46 AM
RE: Editor and tools - allrounder18 - 08-11-2016, 06:22 AM
RE: Editor and tools - Hiei- - 08-11-2016, 06:58 AM
RE: Editor and tools - allrounder18 - 08-11-2016, 08:26 AM
RE: Editor and tools - Hiei- - 08-11-2016, 09:13 AM
RE: Editor and tools - allrounder18 - 08-11-2016, 02:49 PM
RE: Editor and tools - ComradeReptiloid - 08-12-2016, 12:44 AM
RE: Editor and tools - Hiei- - 08-12-2016, 06:33 AM
RE: Editor and tools - allrounder18 - 08-12-2016, 08:48 AM
RE: Editor and tools - adolf - 08-12-2016, 02:58 PM
RE: Editor and tools - ComradeReptiloid - 08-12-2016, 05:09 PM
RE: Editor and tools - adolf - 08-12-2016, 07:34 PM
RE: Editor and tools - allrounder18 - 08-13-2016, 10:17 AM
RE: Editor and tools - ComradeReptiloid - 08-13-2016, 07:02 PM
RE: Editor and tools - allrounder18 - 08-13-2016, 08:07 PM
RE: Editor and tools - Liz Shaw - 08-13-2016, 08:23 PM
RE: Editor and tools - Hiei- - 08-14-2016, 06:17 AM
RE: Editor and tools - Hiei- - 08-14-2016, 07:21 AM
RE: Editor and tools - allrounder18 - 08-14-2016, 09:53 AM
RE: Editor and tools - Liz Shaw - 08-14-2016, 10:23 AM
RE: Editor and tools - allrounder18 - 08-14-2016, 12:24 PM
RE: Editor and tools - ComradeReptiloid - 08-14-2016, 02:10 PM
RE: Editor and tools - allrounder18 - 08-14-2016, 02:53 PM
RE: Editor and tools - ComradeReptiloid - 08-14-2016, 06:22 PM
RE: Editor and tools - allrounder18 - 08-14-2016, 09:19 PM
RE: Editor and tools - Liz Shaw - 08-16-2016, 06:37 PM
RE: Editor and tools - Alexey - 08-16-2016, 11:57 PM
RE: Editor and tools - allrounder18 - 08-16-2016, 08:22 PM
RE: Editor and tools - allrounder18 - 08-17-2016, 10:51 AM
RE: Editor and tools - ComradeReptiloid - 08-19-2016, 02:50 AM
RE: Editor and tools - allrounder18 - 08-19-2016, 02:06 PM
RE: Editor and tools - Liz Shaw - 08-19-2016, 02:38 PM
RE: Editor and tools - ComradeReptiloid - 10-26-2016, 05:12 PM
RE: Editor and tools - Liz Shaw - 10-27-2016, 01:57 AM
RE: Editor and tools - ComradeReptiloid - 10-27-2016, 02:26 AM
RE: Editor and tools - Liz Shaw - 10-27-2016, 03:57 AM
RE: Editor and tools - ComradeReptiloid - 10-28-2016, 12:15 AM
RE: Editor and tools - Hiei- - 10-27-2016, 11:34 PM
RE: Editor and tools - Hiei- - 08-20-2016, 01:08 AM
RE: Editor and tools - allrounder18 - 08-20-2016, 09:43 AM
RE: Editor and tools - Liz Shaw - 08-24-2016, 05:17 PM
RE: Editor and tools - allrounder18 - 08-26-2016, 07:18 AM
RE: Editor and tools - Liz Shaw - 08-29-2016, 04:30 PM
RE: Editor and tools - Liz Shaw - 10-17-2016, 04:32 AM
RE: Editor and tools - ComradeReptiloid - 10-18-2016, 12:03 AM
RE: Editor and tools - armitom - 10-18-2016, 05:25 PM
RE: Editor and tools - ComradeReptiloid - 10-20-2016, 05:28 PM
RE: Editor and tools - ComradeReptiloid - 10-30-2016, 03:06 AM
RE: Editor and tools - ComradeReptiloid - 11-02-2016, 12:32 AM
RE: Editor and tools - ComradeReptiloid - 11-02-2016, 03:16 PM
RE: Editor and tools - ComradeReptiloid - 02-18-2017, 10:59 PM
RE: Editor and tools - Hiei- - 02-24-2017, 04:19 PM
RE: Editor and tools - ComradeReptiloid - 02-27-2017, 09:01 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)