Activators and Named Activators

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Activators and Named Activators

Postby andylegate » Wed Dec 10, 2008 2:59 pm

Got a question here:

working on my doors along with the ALCscripting and the Python scripting here.

The scripting is going like Gahreesen's doors. In the Python file for Gahreesen we have:

Code: Select all
arrivePt = ptAttribSceneobject(1, 'arrive point')
triggerRgn1 = ptAttribActivator(2, 'door 1 region sensor')
triggerRgn2 = ptAttribNamedActivator(3, 'door 2 region sensor')


As you can see the 2nd trigger region is not just a AttribActivator, but it's a AttribNamedActivator

My question is, should that be reflected in my ALCscripting? Like this? (sorry about the indents.....)

Code: Select all
           pythonfile:
               file: InnPortalWarpEnter
               parameters:
               - type: sceneobject
                ref: scnobj:entrypoint
             - type: activator
              ref: logicmod:$EnterRgn
            - type: namedactivator
              ref: logicmod:$ExitRgn


or does it still just get referenced like this:

Code: Select all
           pythonfile:
               file: InnPortalWarpEnter
               parameters:
               - type: sceneobject
                ref: scnobj:entrypoint
             - type: activator
              ref: logicmod:$EnterRgn
            - type: activator
              ref: logicmod:$ExitRgn
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Activators and Named Activators

Postby GPNMilano » Wed Dec 10, 2008 8:01 pm

Andy, are you using the Training Center doorway idea? Or the Exterior Door idea, where it takes control over the avatar and moves him/her into the Training center?

Either way, just naming it "activator" is fine. There is an exit script for the latter type of doors, as well as an entry script though, figured I'd warn you about that.

When in doubt, just check the PythonFileMods though in PRPTool, PRPExplorer or PageEditor. Those will give you the answer you're looking for. Which is what i did, its activator.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: Activators and Named Activators

Postby andylegate » Thu Dec 11, 2008 7:14 am

Yah, I got it all figured out, with some help from D'Lanor with the Python.

I've now how what happens in Gahreesen working in my Age. I did it just like Cyan's stuff, with some variations. Why mess with a good thing?

How to do this is complex. But fortunately only Blender and PlasmaShop are needed. However the ties between ALC and Python are very important.

It's going to take me a week or two to get the tutorial written for this, but I WILL make one and post it. I just hope I can make it easier for other people to understand. For me, it took hours and hours, with a LOT of music I jammed to until I got it figured out, and working ;)
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am


Return to Building

Who is online

Users browsing this forum: No registered users and 7 guests

cron