GlovePIE:FableFixed

From WiiLi

Jump to: navigation, search
if you have a hard time dealing with the wiimote mouse control, i made a seperate version of the script that allows the camera to follow the character constantly. this should not replace your wiimouse control version. but just serve as an alternate version 

/* 
--------------------------------------------------------- 
Instructions: 
-Open Fable 
-Start Game 
-Open Menu - Go to Options 
-Configure Keys 
-WASD KEYS 
-SET Block/Flourish TO F 
-Save controls and return to game 
-Hold alt and press Tab untill you reach Glovepie 
-Hit Run 
-Press Home on WiiMote IMMEDIATELY 
-Hold Alt and press tab again untill you get back to fable 

HOLD Z AND PRESS HOME TO ACCESS MENU 

Modes: 
-Menu Mode 
To enter Menu Mode, press Home 
-Use Menu Mode for situations such as: trading, menu, quest cards, experience 
WASD becomes D Pad on Wiimote 
Mouse is controlled by Nunchuk analog stick 
Use A on Wiimote to Select and B to Cancel 

-Melee Mode 
To enter Melee Mode, press One 
This also brings out your sword 
Camera is controlled by Wiimote 
Movement: Nunchuk Analog 
Attack: Shake wiimote 
Defend: C on Nunchuk 
Run/Flourish: Z on Nunchuk 
Lock On/Fix Camera: B 

-Ranged Weapon Mode 
This also brings out your Bow 
HIGHLY RECOMENDED FOR MAGIC USE 
To enter Range mode, press Two 
Same for Melee Mode except 
Attack: C 
Toggle First person: C + Z 

-First Person Mode: 
To enter first person move, look up 
Nunchuk controls aim 
Holding A on Wiimote allows Wiimote Aim 
Attack: C 
Exit: Z 

universial (except menu): 
DPAD: 
Left: F1 item 
Up: F2 item 
Right: F3 item 
Down: 1 item 
WHILE HOLDING Z::: 
DPAD: 
Left: 2 item 
Up: 3 item 
Right: 4 item 
Down: 5 item 
MINUS: MAP 
PLUS: HERO VIEW 

--------------------------------------------------------- 
READ 
--------------------------------------------------------- 
IF FOR SOME REASON, YOU ARE NOT IN THE RIGHT MODE, JUST 
PRESS THE CORRECT BUTTON AND CHANGE INTO THAT MODE 
IT IS NOT WISE TO BE IN MELEE MODE WITH A BOW 
IT IS NOT WISE TO USE MAGIC IN MELEE MODE 
IF YOU REALLY WANT TO USE MAGIC IN MELEE MODE, APPLY MAGIC 
TO THE 2, 3, 4, AND 5 BUTTONS RATHER THAN USING THE SHIFT/ 
MOUSE SHORTCUT, ONLY USE THAT IN RANGE MODE 
--------------------------------------------------------- 

*/ 
press(r) 

if not Wiimote1.Nunchuk.ZButton 
Key.F1 = Wiimote1.Left 
Key.F2 = Wiimote1.Up 
Key.F3 = Wiimote1.Right 
Key.One = Wiimote1.Down 
endif 


// Take out Sword with One 
var.Sword = Wiimote1.One 
Key.Q = var.Sword 
if var.sword then 
var.S = true 
var.B = false 
var.H = false 
Say("Melee Weapon Mode") 
Wiimote1.Leds = 1 
endif 

// Take out Bow with Two 
var.Bow = Wiimote1.Two 
Key.E = var.Bow 
if var.Bow then 
var.S = false 
var.B = true 
var.H = false 
Say("Ranged Weapon Mode") 
endif 

// Home for menu mode 
var.Menu = Wiimote1.Home 
if var.Menu then 
var.H = true 
var.S = false 
var.B = false 
Say("Menu Mode") 
Wiimote1.Leds = 8 
endif 
// Hold Z and Press Home for Menu 
if Wiimote1.Nunchuk.ZButton 
Key.Escape = Wiimote1.Home 
Key.Two = Wiimote1.Left 
Key.Three = Wiimote1.Up 
Key.Four = Wiimote1.Right 
Key.Five = Wiimote1.Down 
Key.H = Wiimote.Plus 
Key.M = Wiimote.Minus 
endif 

// Zoom with Plus and Minus 
Key.Minus = Wiimote1.Minus 
Key.Equals = Wiimote1.Plus 

//If You Take Out Your Sword, The Controls Become 
if var.S == true then 
var.B = false 
var.H = false 
var.F = false 
// Attack By Swinging Wiimote 
Mouse.LeftButton = Wiimote.RelAccX >= 15 
// Run, Parry With Z 
Mouse.RightButton = Wiimote1.Nunchuk.Zbutton 
// Use Items Roll, Block with C 
var.Item = Wiimote1.Nunchuk.CButton 
Key.F = var.Item 
// Examine with A 
Key.Tab = Wiimote1.A 
// Lock on with B 
Key.Space = Wiimote1.B 
// Nunchuk analog = movement 
W = Wiimote.Nunchuk.JoyY < -0.2 
S = Wiimote.Nunchuk.JoyY > 0.2 
A = Wiimote.Nunchuk.JoyX < -0.2 
D = Wiimote.Nunchuk.JoyX > 0.2 
// Roll The Nunchuk to attract experience orbs and use spells 
Key.LeftShift = Wiimote1.Nunchuk.Roll > 60 degrees 
// Mouse control camera with D Pad 
// First four Items are used on D - Pad, 1 = left 2 = up 3 = right 4 = down 
// when holding C 
endif 

if var.B == true then 
var.S = false 
var.H = false 
var.F = false 
Wiimote1.Leds = 2 
// Fire Arrows by Pressing C 
var.Fire = Wiimote1.Nunchuk.CButton 
Mouse.LeftButton = var.Fire 
if var.Fire 
var.First = true 
endif 
// Run With Z 
var.Run = Wiimote1.Nunchuk.Zbutton 
Mouse.RightButton = var.Run 
if var.Run 
var.R = true 
endif 
// go to first person by c + z 
// Lock On With B 
Key.Space = Wiimote1.B 
// Examine with A 
Key.Tab = Wiimote1.A 
// Nunchuk analog = movement 
W = Wiimote.Nunchuk.JoyY < -0.2 
S = Wiimote.Nunchuk.JoyY > 0.2 
A = Wiimote.Nunchuk.JoyX < -0.2 
D = Wiimote.Nunchuk.JoyX > 0.2 
// Roll The Nunchuk to attract experience orbs and use spells 
Key.LeftShift = Wiimote1.Nunchuk.Roll > 60 degrees 
//tilting wiimote does not effect aim 
//If You put away the Bow, The Sword Settings are enabled 
endif 
if var.Fire and released(Mouse.RightButton) then 
var.F = true 
Say("First Person Mode") 
Wiimote1.Leds = 4 
endif 
// First person mode 
if var.F == true then 
var.B = false 
var.H = false 
var.S = false 
// aim with nunchuk 
if (-1.2 < wiimote.Nunchuk.JoyY < -0.5) 
Mouse.DirectInputY = Mouse.DirectInputY + 10; 
endif 
if (0.5 < wiimote.Nunchuk.JoyY < 1.2) 
Mouse.DirectInputY = Mouse.DirectInputY - 10; 
endif 
if (-1.2 < wiimote.Nunchuk.JoyX < -0.5) 
Mouse.DirectInputX = Mouse.DirectInputX - 10; 
endif 
if (0.5 < wiimote.Nunchuk.JoyX < 1.2) 
Mouse.DirectInputX = Mouse.DirectInputX + 10; 
endif 
//---------------------------------------------- 
//activate wiimote aiming by holding A 
if (Wiimote1.A)and(Wiimote1.Pitch) < -5 degrees 
Mouse.DirectInputY = Mouse.DirectInputY + 3 
endif 
if (Wiimote1.A)and(Wiimote1.Pitch) > 15 degrees 
Mouse.DirectInputY = Mouse.DirectInputY - 3 
endif 
if (Wiimote1.A)and(Wiimote1.Roll) < -15 degrees 
Mouse.DirectInputX = Mouse.DirectInputX - 10 
endif 
if (Wiimote1.A)and(Wiimote1.Roll) > 15 degrees 
Mouse.DirectInputX = Mouse.DirectInputX + 10 
endif 
if (Wiimote1.A)and(Wiimote1.Pitch) < -15 degrees 
Mouse.DirectInputY = Mouse.DirectInputY + 5 
endif 
if (Wiimote1.A)and(Wiimote1.Pitch) > 25 degrees 
Mouse.DirectInputY = Mouse.DirectInputY - 5 
endif 
if (Wiimote1.A)and(Wiimote1.Roll) < -25 degrees 
Mouse.DirectInputX = Mouse.DirectInputX - 20 
endif 
if (Wiimote1.A)and(Wiimote1.Roll) > 25 degrees 
Mouse.DirectInputX = Mouse.DirectInputX + 20 
endif 
// shoot with C 
var.Fire = Wiimote1.Nunchuk.CButton 
Mouse.LeftButton = var.Fire 
Mouse.RightButton = Wiimote1.Nunchuk.ZButton 
// exit with Z 
if pressed(Mouse.RightButton) then 
Say("Ranged Weapon Mode") 
var.F = false 
var.B = true 
endif 
endif 
//If You Access the Menu The Controls become 
if var.H == true then 
var.S = false 
var.B = false 
var.F = false 
//WASD becomes D pad 
Key.W = Wiimote1.Up 
Key.A = Wiimote.Left 
Key.S = Wiimote.Down 
Key.D = Wiimote.Right 
// Move the curser with the Nunchuk analog 
if (-1.2 < wiimote.Nunchuk.JoyY < -0.5) 
Mouse.DirectInputY = Mouse.DirectInputY - 10; 
endif 
if (0.5 < wiimote.Nunchuk.JoyY < 1.2) 
Mouse.DirectInputY = Mouse.DirectInputY + 10; 
endif 
if (-1.2 < wiimote.Nunchuk.JoyX < -0.5) 
Mouse.DirectInputX = Mouse.DirectInputX - 10; 
endif 
if (0.5 < wiimote.Nunchuk.JoyX < 1.2) 
Mouse.DirectInputX = Mouse.DirectInputX + 10; 
endif 
// Press A for left mouse button 
Mouse.LeftButton = Wiimote1.A 
// Press B for Right mouse button 
Mouse.RightButton = Wiimote1.B 
endif
Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy