CoM_Solaufein Posted June 28, 2010 Share Posted June 28, 2010 I would like my world to be a little interactive. One of these things I would like done is having a character, lets say during the day, appear at the local market and at night you would find them at home. So how would this be done? Link to comment
devSin Posted June 28, 2010 Share Posted June 28, 2010 See Maheer in the promenade. Basically, add him both places and schedule him right. Otherwise, you can just use Time() triggers and Activate()/Deactivate() to control it entirely through script (Deactivate() one when the other should Activate(), depending on your Time() checks). This works if you don't plan on touching the AREs. IF TimeGT(5) TimeLT(18) Global("MeHide","LOCALS",0) THEN RESPONSE #100 SetGlobal("MeHide","LOCALS",1) Deactivate(Myself) END IF Or(2) TimeLT(6) TimeGT(17) Global("MeHide","LOCALS",1) THEN RESPONSE #100 Activate(Myself) SetGlobal("MeHide","LOCALS",0) END and opposite for the outdoor guy. The times aren't exact (the example would be like 0630 to 1730 having the indoor guy turn off), so it won't happen immediately at 6AM (Time(5) lasts a bit past 6AM the way time is counted in the game). Link to comment
CoM_Solaufein Posted June 28, 2010 Author Share Posted June 28, 2010 That's good that will do. An interactive world is far more interesting and real compared to a character that stands in one place 24/7 or does a RandomWalk(). I've been spoiled by newer games. Link to comment
lroumen Posted June 29, 2010 Share Posted June 29, 2010 This is very helpful/insightful for me as well. Great! Link to comment
Miloch Posted June 30, 2010 Share Posted June 30, 2010 There's also code like this in Aurora's Shoes that takes it a step further - she actually walks home at night and goes to bed, and a night attendant wakes up from his hovel and walks to her stall to take her place (and vice versa at daybreak). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.