I hope someone undestand what my prob iz and what i want to do.
What Ive got:
- Script_objects moving in a given direction.
- Ive written a whole script when/how they have to move.
- Each of them has its own trigger called with different names.
- Each trigger got its own count variable parallel to the triggered object
What I want:
- duplicate 3 times that objects with same behaviour
BUT different Triggers!
- Not to type all the things and give them xdifferent names over
and over again!
- The countervariables value must not be changed!
Whats the pr0b?
- Is it possible to make procedures?
- How to give an Object Variable over to the Script->Procedure
Practically:
script_object 1: targetname:object1
script_object 2: targetname:object2
script_object 3: targetname:object3
script_object 1 called by trigger 1[setthread:obj1]
script_object 2 called by trigger 2[setthread:obj2]
...
Code: Select all
blablabla....
obj1:
$object1 movesouth 100
$object1 waitmove
level.i+=1
end
obj2:
$object2 moveeast 100
$object2 waitmove
level.j+=1
end
obj3:
$object3 movewest 100
$object3 waitmove
level.k+=1
endI want to use all that for another x times for different script_objects/triggers.
each of it must have its own countervariable.
How to use the movement of object3 by eg.[ script_object 6: targetname:object6 ] leaving level.k counting for obj3. The
script_object3 must not be moved!
Is it possible to make $object[X] so that the variable
X is chnaged to 6 if the object6 uses it? That same for level.x+=1 ?
In the end the whole thig has to turn to kind of procedure.
I hope ya undesrtand what my prob is
