Hello, I'm trying to create a list of conditions relating to scenes.
For instance check if a town is under siege, has a tournament or a feast.
I know I have to use slots to achieve these condition checks and I wanted to make sure my understanding is correct.
The idea is to have certain conditions for my agent spawning scene prop OSP that I'm working on.
So for example I want extra people watching at the arena during a tournament so I'd use the following operations
(store_current_scene,<destination>),
(scene_slot_eq,<scene_id>,<slot_no>,<value>),
and checking module constants I found
slot_town_has_tournament = 156
So the code should look like
(store_current_scene,":Scene"),
(scene_slot_eq,":Scene",156,1),
where am I going wrong here? to me it reads does current scene have a tournament 1= Yes 0= No, if Yes it passes and the rest of the code continues.
Any help with this would be great.
So far I have got time of day conditions working, example extra people in the tavern at night and more civillians in town during the day.
For instance check if a town is under siege, has a tournament or a feast.
I know I have to use slots to achieve these condition checks and I wanted to make sure my understanding is correct.
The idea is to have certain conditions for my agent spawning scene prop OSP that I'm working on.
So for example I want extra people watching at the arena during a tournament so I'd use the following operations
(store_current_scene,<destination>),
(scene_slot_eq,<scene_id>,<slot_no>,<value>),
and checking module constants I found
slot_town_has_tournament = 156
So the code should look like
(store_current_scene,":Scene"),
(scene_slot_eq,":Scene",156,1),
where am I going wrong here? to me it reads does current scene have a tournament 1= Yes 0= No, if Yes it passes and the rest of the code continues.
Any help with this would be great.
So far I have got time of day conditions working, example extra people in the tavern at night and more civillians in town during the day.