Die by Sword
Die by Sword
Die by Sword
version 2.5
[Features]
_______
/______ /|
(POWER) ------ o | |
| _ | |
| _| |_ | | Climb
| | |
| | |
| | |
| | |
PageUp --------- 1 | |
| | |
PageDown --------- 2 | |
|__Wii__|/
| | |
|____|/
//\ _______
EDSF ---- // \ / \
/ |
| /
| /
| |
| |
| |
| |
| |
|______/
|_|
-Hold Z button: the shield moves to the neutral position(left cursor key)
-Hold Z button and pitch up the Nunchuk: the shield moves upward(up cursor key)
-Hold Z button and pitch down the Nunchuk: the shield moves downward(down cursor
key)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
[Options]
VSIM Invert Y: No
[Movement controls]
Move forward : E
Move backward : D
Spin right : V
Spin left : A
Sidestep right: F
Sidespep left : S
Crouch : 6
Jump : 5
Climb : 1
[VSIM controls]
[Other controls]
Sheathe : 3
Action : 4
[Camera controls]
Raised Camera(toggle) : 7
Glance Camera : 8
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
PPJoy gives joystick emulation to GlovePIE. You need it to use this script and
PPJoy - Parallel Port Joystick driver for Windows 98, Me, 2000 and XP
http://www.geocities.com/deonvdw/Docs/PPJoyMain.htm
Install PPJoy and confirm there is "PPJoy Virtual joystick 1" in joystick
option.
Select "Modify the mapping for this controller" in the first of the PPJoy's
mapping wizard. You need to set 2 axes. Then map axes like the below in
X axis as Axis1
Y axis as Axis2
Then set axes like the below in "Configure mapping for axes".
Analog0 as X Axis
Analog1 as Y Axis
Other PPJoy settings are not needed for this script. Also if you use WinXP,
you must set PPJoy Virtual Joystick as the default device used in an old
About the Nunchuk thing, it just performs a custom movement which I have set
for the shield/off-arm so you need to make the similar custom movements and
-------------------------------------------------------------------------------
How to use
-------------------------------------------------------------------------------
[Wiimote]
Roll is for analog0(X) and pitch is for analog1(Y). When acceleration is over
[Nunchuk]
If you have a nunchuk you can use it together. Joystick is for EDSF. Nunchuk C
of Nunchuk pitch for other 3 custom movements. Nunchuk roll is for turning.
Note:
roll movement is used for x axis: you need to roll/twist the wiimote to input
x axis. But you can swing your arm to have the vibrate longer, rolling the
wiimote.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
swing the sword independently of the custom movement playing. If you don't make
it like this, it would prevent you to VSIM the sword when you are performimg
[status icon]
O : record
|> : play
[] : stop
0. Choose a character
1. Offarm record
Body :[]
Arm :[]
Offarm :O
Record only Offarm(practically means the shield). Hold keypad 8 to move the
shield up. Then click the record button at the middle and bottom. After a few
second, stop it to click the stop button next to the record button.
2. Arm tweak
Body :[]
Arm :|>
Offarm :|>
3. Playback
Body :[]
Arm :[]
Offarm :|>
Click the play button and confirm that you can swing the sword when the shield
4. Frame adjustment
Cut the excessive frames. If the movement is too long to perform, you can set
the entire length of it. For example, when the entire length is 50 and the
length of the shield movement is 20, you enter 20 as the entire length and
You can directly input the frame length to click the 3 digits. The top row
to the body parts. To fastenWhen you make a mixed movement, it allows you to
5. Save as
Now you can use the motion with Nunchuk gesture after mapping it in DbtS'
"Options>Custom moves". To set other character or weapon, click the face upper
left.
If you have "Limb from Limb" and want to use the same custom movements on
every characters and weapons, Unfortunately, you must make a set of custom
I use 4 shield movements: default position, up, down and Right-to-left. This
You can guard ogre's rectangle strike and Dark Enric's leg slash with your
*/
//-----------------------------------------------------------------------------
// Script
//-----------------------------------------------------------------------------
//------------------------------------
//------------------------------------
/*
*/
Key.One = Wiimote1.Up
Key.Two = Wiimote1.Down
Key.Three = Wiimote1.Left
Key.Four = Wiimote1.Right
Key.Five = Wiimote1.A
Key.Six = Wiimote1.B
Key.Seven = Wiimote1.Minus
Key.Eight = Wiimote1.Plus
Key.Enter = Wiimote1.Home
Key.Escape = DoubleClicked(Wiimote1.Home)
Key.PageUp = Wiimote1.One
Key.PageDown = Wiimote1.Two
var.NunchukJoyDeadzone = 0.3
//------------------------------------
// Custom movement
//------------------------------------
/*
When Nunchuk Z button is pressed and Nunchuk is pitched, the shield moves up and
down.
*/
var.NunchukRollDeadzoneRight = 0.3
var.NunchukRollDeadzoneLeft = 0.3
var.NunchukRoll = maprange(Wiimote1.Nunchuk.gx,0.5,-0.5,1,-1)
var.NunchukPitchDeadzoneUp = 0.3
var.NunchukPitchDeadzoneDown = 0.3
var.NunchukPitch = maprange(Wiimote1.Nunchuk.gz,0.3,-0.3,1,-1)
if Wiimote1.Nunchuk.CButton then
wait 10ms
Key.Up = false
wait 0.5s
Key.Down = true
wait 10ms
Key.Down = false
wait 0.5s
Key.Right = true
wait 10ms
Key.Right = false
wait 0.5s
Key.Left = true
wait 10ms
Key.Left = false
wait 0.5s
endif
endif
//------------------------------------
// Turn
//------------------------------------
/*
You roll the Nunchuk and Enric turns. The speed of turning changes in 3 levels
by the tilt. It is not so good but works when Enric moves.
*/
var.NunchuklRollDeadzoneFull = 0.9
var.NunchuklRollDeadzoneMiddle = 0.7
var.NunchuklRollDeadzoneLow = 0.5
var.NunchuklRoll = maprange(Wiimote1.Nunchuk.gx,0.7,-0.7,1,-1)
Key.A = false
Key.V = false
var.NunchukRollFull = false
var.NunchukRollFullMiddle = false
endif
Key.A = true
var.NunchukRollFull = true
endif
Key.V = true
var.NunchukRollFull = true
endif
var.NunchukRollFullMiddle = true
Key.A = false
wait 10ms
Key.A = true
wait 150ms
Key.A = false
wait 200ms
endif
var.NunchukRollFullMiddle = true
Key.V = false
wait 10ms
Key.V = true
wait 150ms
Key.V = false
wait 200ms
endif
endif
Key.A = false
wait 10ms
Key.A = true
wait 50ms
Key.A = false
wait 200ms
endif
Key.V = false
wait 10ms
Key.V = true
wait 50ms
Key.V = false
wait 200ms
endif
endif
//------------------------------------
// Rumble
//------------------------------------
/*
When you swing the Wiimote, it vibrates. If you don't like it, make
*/
Wiimote1.Rumble = true
else
Wiimote1.Rumble = false
endif
var.Rumble = abs(Wiimote1.RelAccX)
Wiimote1.Rumble = true
else
Wiimote1.Rumble = false
endif
var.Rumble = abs(Wiimote1.RelAccZ)
Wiimote1.Rumble = true
else
Wiimote1.Rumble = false
endif
endif
endif
//------------------------------------
// Auto dodge
//------------------------------------
/*
This part can make auto dodge to input Nunchak joystick(EDSF) near the max value,
Key.F = false
wait 10ms
Key.F = true
wait 10ms
Key.F = false
wait 10ms
Key.F = true
wait 10ms
Key.F = false
endif
Key.S = false
wait 10ms
Key.S = true
wait 10ms
Key.S = false
wait 10ms
Key.S = true
wait 10ms
Key.S = false
endif
Key.D = false
wait 10ms
Key.D = true
wait 10ms
Key.D = false
wait 10ms
Key.D = true
wait 10ms
Key.D = false
endif
Key.E = false
wait 10ms
Key.E = true
wait 10ms
Key.E = false
wait 10ms
Key.E = true
wait 10ms
Key.E = false
endif
*/
//------------------------------------
//------------------------------------
//by J.Coulston
//wiimote1.Rumble = shift
//A full battery gives 0xC0 (192)
var.Batt = wiimote1.Battery / 48
if true then
wait 5 seconds
end if
//Display the battery level of your wiimote using the four LEDs on the bottom.
//Battery level is displayed in four levels increasing to the right, like a cell
//phone battery gauge. As the battery gets close to the next level down, the LED
//Blink rate
//var.Blink = 500ms
if 0<=var.Batt<=0.25 then
wiimote1.Leds = 1
//wait var.Blink
//wiimote1.Leds = 0
//wait var.Blink
wiimote1.Leds = 1
//wait var.Blink
//wiimote1.Leds = 1
//wait var.Blink
wiimote1.Leds = 3
wiimote1.Leds = 7
//wait var.Blink
//wiimote1.Leds = 3
//wait var.Blink
wiimote1.Leds = 7
wiimote1.Leds = 15
//wait var.Blink
//wiimote1.Leds = 7
//wait var.Blink
wiimote1.Leds = 15
else
wiimote1.Leds = 0
endif
//------------------------------------
// Debug
//------------------------------------