Loading, Please Wait... HOME
T h e   C a r t o r i u m

Training - Scripting

Pulling A
Yoshitsune

by Darth Maul ~TMBM~

      Tools Used
Loathing
 
      Resources
[none]
 
      Prerequisites
Basic Loathing Usage
Basic Scripting

      Pulling A Yoshitsune
How to use "Bushido-Yoshitsune" scripting.

Many people have played the Bushido solos. Perhaps the most striking feature was Yoshitsune, the hero of the story. When he picked up a bow, he would literally sheath his sword and pick up the bow, and be able to attack with a bow. "Wow," people said. "That's so crazy. I bet *I* could never do that!". Well, you can. If you're a decent scripter, scripting a "Yoshitsune" unit is rather easy.

I'm going to first explain this as if you're doing a very simple "Yoshitsune" unit...in other words, replacing a bungie unit with a modified bungie unit. Please note: You can't replace one unit (say, a dwarf) with a unit with a different collection (say, a munki). If you want a unit to change into a totally different unit, you'll have to make the different collections into one.

I'm going to assume you're want to make your standard dwarf (bari) into a Screaming Iron Assault Dwarf (bArI) which you made in fear already. And bArI uses the same collection as bari...the dwarf collection. You want bari, when he taunts, to be replaced with bArI, so he can kick some ass and chew bubblegum...even though he's all outta bubblegum. First, we make a standard tuni testing to see if bari is taunting. Activates on success starts up the center of our "Yoshitsune" magic...the Moma. The Move Marker action has only three parameters. The first is subject. This is the monster you will move. The second is Team Index. I've never seen this used, and have never used it. The third is Destination, which is where you want your subject to go to. The Move Marker action is typically used to teleport units. However, with a bit of tweaking, it'll replace units.

First, you need to place bArI. Place bArI in the corner of the map, and DO NOT make him invisible. Then open your Map Actions window and add a Unit Control action that makes bArI invisible immediately. IF YOU MAKE bArI INVISIBLE BY USING THE EDIT MARKER FIELD (double clicking the unit in loathing) YOUR MOMA WILL NOT WORK. Now for the moma. For subject, select bArI, as we will be moving him. Then add a "link". We want this to be linked to a Data Container containing bari, the normal dwarf. However, bari must be a monster_identifier targ, not subject. This is because bari is the target of bArI, as bArI will be replacing him. Now we do some basic Unit Control actions...first, a CTRL to make bari invisible...we're done with him. Second, have that CTRL use a "triggers simultaneously" to activate a CTRL to make bArI visible...we need him to show up. While this shortcut wasn't used with Yoshitsune, Ares says it is being used in The Seventh God (www.theseventhgod.com) to make the transitions totally seamless. Last but not least, we need that last CTRL to activate (on trigger) a Generic Action. This GENE must either make bArI stop or taunt...otherwise you get a nasty animation loop of the entrance animation. And...you're done! Now, when bari taunts, he'll be replaced by our Screaming Iron Assault Dwarf, bArI.

What did you say? You want to know why your bari is replaced in a dirty ugly looking way, while Yoshitsune actually picks up his weapon and puts his other away? Allright, I'll tell you why.

He has special animation's. Know how thrall occasionally burst from the ground in TFL and some Myth mods? That's called their "entrance sequence". Yoshitsune with his sword has an entrance sequence of him pulling out his sword. When you have Yoshitsune throw his bow, a tuni or geom tests to make sure that he did indeed throw it. If so, it moma's the sword Yoshitsune into the bow Yoshitsune's place, and activates his entrance sequence. To the non-scripter observer, it looks like Yoshitsune simply threw his bow down and pulled out his sword. In truth, it's animation and scripting.

So there you have it...a basic explanation of how to pull off a "Yoshitsune". Of course, you'll have to use various tuni's and geom's to get your unit to be replaced how and when you want him to...but now you know that it's not CreationMAGIC(TM). It's ScriptingMAGIC(TM) and AnimationMAGIC(TM). Creation(TM) just used their ScriptingMaster(TM) and AnimationMaster(TM) to get it to be pulled off well. This scripting can also be seen on "Twice Born", several yet-to-be released TMBM maps (including the soon-to-be-released Alien-Darktide [clix.to/darktide]), and Touga, by Reddek. If anything I said here did not work or make sense, feel free to email me at hamfam@jps.net. I'll try to help you fix your problem, and if it occurred because of an error in my instructions here, I'll fix it as soon as possible.

While 95.3% of the scripting here was figured out by me, myself, and I, Ares of Creation helped to verify that was how Yoshitsune was done, and he'd like to point out that mainly Silicondream figured out/used this scripting. Much thanks to them.



The Cartorium is brought to you by... YOU! If you are a Myth modmaker and feel you have something that you simply must share with the world, then by all means, let us know.

Home  |  Tools  |  Training  |  Resources  |  People  |  The Forge  |  The Mill

Cartorium concept by and HTML by Forrest. Scripting by (You?). Thanks to Funky J for the name.

Myth at Bungie.org is now maintained almost entirely by Gholsbane and Zandervix; Forrest is (theoretically) still around calling the shots when he can be bothered to check his email, and Claude, as always, OWNZ U. Original Nontoxic™ webpage design copyright (c) 1998 by Joshstar; updates and revisions mostly by Forrest. Many thanks to all those old Nontoxic™ munkies - you know who you are.

No portion of this website may be reprinted without explicit permission from Bungie.org, unless it is content created and submitted by you. By submitting content to this site, you grant Bungie.org the right to use it as they see fit, unless otherwise negotiated in writing.

Myth: The Fallen Lords, Myth II: Soulblighter, and all materials derived therefrom are trademarks and copyrights of Bungie Software Products Corporation (now Bungie Studios, a wholly owned subsidary of the Microsoft Corporation). We are not Bungie; we are an independantly run fan organization who Bungie has been so kind as to not sue for using their trademarked name in our domain. The Myth franchise is now owned by Take Two Interactive; Myth III: The Wolf Age is a trademark/copyright of Mumbo Jumbo, Inc., and is published by Gathering of Developers and MacSoft - none of whom are associated with us.
 
[ 2263880 ]
[ 25782 ]