RPGDot Network    
   

 
 
The Bard's Tale (InXile)
Display full image
Pic of the moment
More
pics from the gallery
 
 

Site Navigation

Main
   News
   Forums

Games
   Games Database
   Top 100
   Release List
   Support Files

Features
   Reviews
   Previews
   Interviews
   Editorials
   Diaries
   Misc

Download
   Gallery
   Music
   Screenshots
   Videos

Miscellaneous
   Staff Members
   Privacy Statement


 
Gothic: Modding, Tutorials (Back to contents)
1) Model Tutorial
2) Script Tutorial
3) Level Tutorial
4) Spacer Tutorial

Page: << 1 2 3 4 5 >>

SPACER TUTORIAL

3. A Simple Event

Now it gets a bit more involved. We're going to set up a simple event.

We're going to insert a lever into our world, which will trigger a script when the player pulls it. In the Objects Window, on the Create tab, expand the oCVob (Abstract) option in the tree view. (You may need to hit Activate to get this window to respond.)

Then you want oCMOB, then oCMobInter. Right click in the view window and insert the catchily titled oCMobInter against a wall somewhere. Now we need to attach a Visual. With the object selected, choose Visual in the Objects box. Then, at the bottom of the box, use the File button to browse to /_WORK/DATA/ANIMS/MDS_MOBSI/LEVER_1_OC.MDS.

Choose this file and hit Apply. You should now see your lever. Move it so it looks sensible, and the red bounding box around it just reaches the ground. Again, objects can be moved with the cursors once the M key, or the third button on the vertical toolbar, has been pressed.

Now we have to give it some particular properties. On the Objects box Modify tab, setting cdDyn to TRUE (Just double click on FALSE) will turn on dynamic collision detection for the object, while setting Rewind to TRUE will mean the lever returns to its orignal position once pulled. Remember to hit Activiate once you've made these changes, or nothing will happen.

Display full image

The lever will trigger something when pulled and that something is called a Trigger. Ot rather a zCTriggerBase - zCTrigger - oCTriggerScript, if you go by its location in the Objects box. Find that entry and insert it near your lever, just as you inserted the waypoints and the lever.

Now, the trigger has a property called ScriptFunc. This is the name of the script function which will be run. Set it to EVT_MOD_01, by typing in the box at the foot of the Modify tab. Then set its VobName property to TRIGGERSCRIPT. Remember to hit Apply.

Finally, we have to link this trigger to the lever. Find the property of the lever called TriggerTarget, and set it to TRIGGERSCRIPT. Now select Save ZEN from the File menu, choose a location in _WORK/DATA/WORLDS, and save.

You've just saved the world! Congratulations. And your mother said all those nasty things about you...

Anyhow, onward!

Display full image

Page: << 1 2 3 4 5 >>

 
 
All original content of this site is copyrighted by RPGWatch. Copying or reproducing of any part of this site is strictly prohibited. Taking anything from this site without authorisation will be considered stealing and we'll be forced to visit you and jump on your legs until you give it back.