Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Editor and tools
08-10-2016, 01:15 PM
Post: #103
RE: Editor and tools
(08-10-2016 08:40 AM)Liz Shaw Wrote:  
(08-10-2016 06:59 AM)ComradeReptiloid Wrote:  All credits go to Liz Shaw user for interaction idea:



8:10 part lost during editing. You need to write T112 in TestUniqueID and RADI in action description. You can find RADI in missiontext.shadvs and change description string or you can create new for you RAD2 (or whatever you called your radio).
Two easter eggs in the end. I try to fix ai priorities, so body move able to work 100% of times, curently 2-3 of 10 times.

Thanks for replicating what I've done. It's not 100% how I did it, but it is similar. I actually struggled to get the bartender to turn the radio off as soon as he puts the tray down, but I eventually got there. I did it by adding an extra string here:

--------------------------------------------------------
-- Name: Level.FailBarmenPickTray()
-- Desc:
--------------------------------------------------------
function Level.FailBarmenPickTray()
local actor = Level.FindActor('WR05');

if ( Actor.HasItem( actor, 'TR01' ) == true ) then
Actor.DropItem( actor, Level.FindItem('TR01') );
end;

if ( Level.BarmenRadio == true ) then
Level.RunAnchorJob( AI.FindNPC('WR05'), 'AN01', true );
else
AI.SetJob( AI.FindNPC('WR05'), 'bar_clean' );
end;

Level.TrayLocked1 = false;
end
Awesome idea, i'm not good programmer, so you can probably optimize my scripts if you know how.
I dont wont to fuck with addictional scripts. My very first thought was adding AI.SetJob instead of anchor list, but doing this resulting in game crash after activating radio.

Can you clarify one thing for me. If npc start start pour_wine job by taking tray and distracted by radio, does it mean that after switching off radio he proceed to bar_clean full loop again instead of pour_wine continuation? What if he has tray and wine already? did he drop tray on the floor and wine break, because i dont see this conditions in Level.OnCheckConsNeedWine(). is it possible to use Level.PutTrayOnBar instead of Actor.DropItem and i never saw bartender callback to Level.FailBarmenPickTray() in vanilla. How does it look in game? Tray just dissapears from his hands or he drop it on floor?
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)