Freedom Reborn Archive

Freedom Force Forums => Scripting Forum => Topic started by: GogglesPizanno on November 02, 2008, 11:41:20 AM

Title: EZScript and custom python
Post by: GogglesPizanno on November 02, 2008, 11:41:20 AM
I think I already know the answer but I'll throw it out anyway. Is there a way from within EZScript to call a custom python function if that function was part of the mission script? So lets say in an EZScript encounter a certain outcome happens, at that point in addition to being able to trigger a new encounter, you could also trigger a custom python function as well.

I have some slightly less interactive ways to sort of accomplish what i want, but I figured I would make sure its not one of those cool functions that M25 hid in there.
Title: Re: EZScript and custom python
Post by: M25 on November 03, 2008, 08:33:20 AM
There is a special encounter type that calls a user-specified custom python function.  It may do what you want. 

Encounter: XYZ
Type: User Function
Function: myfunction()


Title: Re: EZScript and custom python
Post by: GogglesPizanno on November 03, 2008, 09:14:27 AM
Awesome, that's exactly what I was looking for...
Title: Re: EZScript and custom python
Post by: yell0w_lantern on November 03, 2008, 01:29:56 PM
Now I'm interested. What can you do with that?