Morrowind Advanced Lutes

Post » Thu May 26, 2011 8:16 pm

I released a mod a few days ago entitled Advanced Lutes link( http://planetelderscrolls.gamespy.com/View.php?view=Mods.Detail&id=8239 )
It adds a playable lute, however, i wish to expand upon this. Using a Guitar Hero style thing, I was wondering if it were possible to have letters like wasd coming towards the player and the player has to press those letters in time for the music to continue playing. I was thinking that two forcefields could be set up when you choose to play. Then the letters would start coming to the players and the player would have to press the letters while in between the forcefields. I don't know much in the way of scripting so i would need help on this. But, can you guys give me advise on how to do this thing? Because i would have no idea where to start. Thank You!
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am

Post » Fri May 27, 2011 12:46 am

I believe MWSE adds the ability to listen for keystrokes, not sure which ones though. But here's how I'd script it:

1. disableplayermovement so that the WASD keys will not move him.
2. Script the forcefields to appear relative to the player's position (combination of player->getposx/y/z, placeatpc, and "object_id"->setposx/y/z.
3. Script the button (WASD) indicators start near the end of the forcefield and fly toward the player's position relative to the x/y plane of the forcefields and not relative to the direction the player is facing, so they will always be coming from a fixed position and angle. (moveworld or move, not sure which).
4. Listen for the keypresses the entire time with getdistance->player: if too far away when a key is pressed, penalize; otherwise, continue playing if within a specified distance.

You'd have to have a script attached to the button indicators by default (not an instanced script) so that the button's could check their distance to the player and report that distance to a global script. You couldn't check for distance from the player to the object (order being important here) because that only works reliably for unique IDs.

It may be possible with a lot of scripting and extensive use of MWSE.. maybe not. Good luck!
User avatar
Cheryl Rice
 
Posts: 3412
Joined: Sat Aug 11, 2007 7:44 am


Return to III - Morrowind