Triggers Saving and Loading

Blitz3D Forums/Blitz3D Beginners Area/Triggers Saving and Loading

GIB3D(Posted 2008) [#1]
I'm working on my Block Puzzle game and I earlier today I thought out a plan to setup my triggers in my map editor. There's going to be a whole bunch of
conditions and effects
condition entities and effect entities
condition variables and effect variables

Well anyways, I thought out a way to select my Condition Entities. It checks for the entity that is picked using CameraPick and makes it
ConditionEnt[0] = PickedEntity().

Here's the problem... I went to the bathroom (lol no that's not the problem) and a I started thinking "Hey, when you save that trigger and load it, the entity that ConditionEnt[0] came from might not have the same handle number..."

So now I need help with thinking of a way to set up my Trigger's Condition/Effect entities so that when it's saved and loaded, there will actually be a real entity that that trigger will be effecting.. understand?


Matty(Posted 2008) [#2]
Create your own unique ID number for each entity as it is generated in the order of creation and then identify them by that, saving out the ID as well as details of what the ID represents.