Seven Towers: UCC Reference

USECODE INTRINSICS

[SI, Exult]

UI_modify_schedule(actor npc, int time, int sched, int pos[2])
npc->modify_schedule(int time, int sched, int pos[2])

Changes the schedule table of an NPC for the desired time period. This new schedule is persistent across save games. The NPC will execute his/her new schedule in the map he/she currently resides when the time comes.

Parameters

npcThe NPC whose schedule table is to be changed.
timeAn integer specifying the time period of the new schedule. Must be an integer in the 0-7 range, such as those returned by the part_of_day intrinsic.
schedAn integer specifying the new schedule. Must be an integer in the 0-31 range, such as those returned by the get_schedule_type intrinsic.
locA (x, y) location, specifying the location of the new schedule.

Related intrinsics

See also