• Welcome to Freedom Reborn Archive.
 

EZ script update

Started by M25, April 05, 2007, 04:12:42 PM

Previous topic - Next topic

M25

This is an update for EZ script mod makers that I promised.

http://members.shaw.ca/m25/ezscriptpatch_apr507.zip

Unzip this into your mod directory.


Quick patch notes:

[spoiler]
The name used in the Marker: command can be the same name as the marker on the map.

Marker: mymarker
will now look for 'mymarker' on the map, as well as mymarker1, mymarker2, etc.


Campaign Recruit and Campaign Add Heroes should now work with freeroam campaigns.


Freeroam campaigns now allow for up to four controllable heroes at once.   You can set max heroes for the mission up to 4 in ffedit or you can bring in up to three other heroes (that have been previously recruited) by right clicking on your hero and selecting TEAMUP: <character name>. 

--------------------------------------
Added Teleport All Cutscene Command

teleport all <group> to <location>

<group> can be villains, villains and minions, minions, heroes or allies
<location> can be a character or a marker

example:
teleport all villains and minions to hero
teleport all heroes to ally
--------------------------------------

There are two new parameters in m25config.py.

# setting this to 1 will allow the AI and EZ script to display status messages in script.log, use it to diagnose problems
M25_USE_REPORT = 0

# setting this to 0 (zero) will disable the kuertee's cinematic camera system for mods that do not want it
M25_USE_SKXCAMERA = 1


Fixed some issues with the AI not turning on and off correctly while cutscenes are in effect.


-------------------------------------------
Added an encounter type called Custom:  which is the last bit promised waaaay back when EZ script was introduced.

Custom allows you to specify smaller-grained actions that you want to occur during the encounter.  It's a little more work to use, but it adds a lot of flexibility.

I've coded dozens of actions that can be mixed and matched to create encounters that are customized to what you want.

So if you want a fight scene that starts before the heroes get there, you could use a custom encounter:

Encounter: Immediate Fight
Type: Custom
Actions: villains fight heroes, allies fight villains, villains start immediately, allies start immediately, minions start immediately
Villains: thug_with_gun
Minions: thug_with_bat
Allies: cop


If you want a fight scene that starts immediately and includes an earthquake, you could use:

Encounter: Shaking all over
Type: Custom
Actions: villains fight heroes, allies fight villains, villains start immediately, allies start immediately, minions start immediately, earthquake
Villains: thug_with_gun
Minions: thug_with_bat
Allies: cop


Adding entries to m25enccustom.py allows you to create brand new encounter types that look and act like regular encounters.  I've put a few in there already.

Hurricane - fierce winds blow objects around for about 5 minutes game time

Rival Factions - villains/minions and rivals/cohorts fight the heroes and each other

Encounter: Factions
Type: Rival Factions
Villains: thug_with_gun
Minions: thug_with_bat
Rivals: ice_queen
Cohorts: ice_trooper

Rescue Frozen - rescue allies from a frozen fate
Rescue Fire - rescue allies for a blazing inferno
Rescue Caged - rescue allies from their not so gilded cages
One shot power trap - an item will use a power on the heroes when they get near
Switchable power trap - an item will use a power multiple times, until a set of switches is turned off.

Encounter: Trap
Type: One Shot Power Trap
Item: cub_market_crate2
Trap Power: bomber Explosion


I'm in the process of writing the docs.
[/spoiler]

HumanTon

Yow! I thought it was just going to be the change to the marker names but it's also packed to the gills with new features. Thanks!

BentonGrey

Ahh!  I haven't had a chance to check this out yet, but it looks like a nice little update.  Thanks M25!

Ohh!!  So awesome!  Rival factions, that was on my wish list!!!  You are SO the man M25!

joemama

DUDE!!!

SWEET!!!

DUDE!!!

SWEET!!!

quiet

thanks for this, I really like FF but I probably would have stopped playing if you had not come up with ezscript.  It is amazing.