zones - moving objects

Pertex
I read in the forum, that someone is missing zones and moving objects. Here is my solution for doing something like this. You need to copy 2 functions to your game ( countChar and getRoom) and the procedure moveObjects, which must be called in the Game/Advanced script command "After each turn"

Every room within a zone must get the property "zone" with the name of the rooms, the object can walk to from here (comma-list).

Objects must have 2 properties:
move=1 says, that the Object should move
move_percent=55 is the probability, that the object moves


Alex, I hope, Q5 will have a better editor. Its not possible to handle procedures like this in Q4

Alex
The script editor for Q5 is much better at handling at nested scripts - you can take a look at it now if you want (you can only add "if", "msg" and "create" commands at the moment, but you'll see the general idea). They don't open in a pop-up window - instead the "then" or whatever appears within the editor. Things could still get a little cramped when you've got a lot of nested scripts though, so you can always "pop out" an editor.

You can take a look now by building the latest source from http://quest.codeplex.com - it still needs a lot of fleshing out and refining of course.

I'm also planning to embed a text editor so you can code by hand, swapping back and forth between the visual view and the code view.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums