I want to make my game hold quests and storyline events, but there seems to be some slight codes I am lacking to make it work 100% how I want.
All movement, inventory, etc needs to be locked, but using dsb_lock_game tends to lock everything even triggers etc
So is there some kind of delay function other then dsb_delay(#, function) cause that seems to only work on functions right?
If not is there something else to use besides lock_game? Something that will do what I am asking but not lock everything. I want everything BUT triggers/call_functions locked.
Now I read that lock and unlock can work on seperate aspects but obviously dsb_lock_game(movement) did not work out other then errors.
Events in DSB
Moderator: Sophia
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

- Sophia
- Concise and Honest
- Posts: 4307
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Re: Events in DSB
The locking flags weren't on the wiki, only in base/global.lua. For convenience I've added them to the wiki.
The flag you want seems to be LOCK_MOVEMENT.
To lock multiple aspects just put them together with a +. Such as, to lock both movement and actuators, dsb_lock_game(LOCK_MOVEMENT + LOCK_ACTUATORS)
The flag you want seems to be LOCK_MOVEMENT.
To lock multiple aspects just put them together with a +. Such as, to lock both movement and actuators, dsb_lock_game(LOCK_MOVEMENT + LOCK_ACTUATORS)
Re: Events in DSB
thank you very much ^.^ now my startup.lua isnt cluttered with functions, hehe