WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prince of Persia:The Two Thrones.... Just like Wii version!

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
thagerty



Joined: 01 Feb 2007
Posts: 35

Digg It
PostPosted: Sat Mar 03, 2007 5:52 am    Post subject: Prince of Persia:The Two Thrones.... Just like Wii version!

This script plays just like the Wii version. Swing the Wii remote for your right Attack and swing the Nunchuk for left Attack. Very cool!

I have included two versions. One script that needs PPJOY and another one that doesn't. The PPJOY version gives you full Analogue control with with the Nunchuk stick and better camera movement.


Here is the version that does NOT need PPJOY.

Code:

/* Prince of Persia: The Two Thrones script by Terry Hagerty    Mar 2-07

This script lets you play the game just like on the Wii version!
NO PPJOY Needed.
Read below for controls...


Roll/Jump/Action = Wiimote.A
Walling/Block/Swing = Wiimote.B
Attack Dagger = Swing WiiRemote up/down or left/right
2nd weapon/Grab/Speedkill = Swing Nunchuk up/down or left/right
Pickup/Throw/DropDown = Wiimote.Minus
Walk Toggle = Wiimote.Home
Reverse/Slow Down Time = Wiimote.Plus
Reset Camera = wiimote.Nunchuk.ZButton
First Person View = wiimote.Nunchuk.CButton
Landscape View = Wiimote.One
Pause/Menu = Wiimote.Two

Movement = Nunchuk Joystick

Camera movement (You must assign these keys in game under keyboard control options)
key.1 = Wiimote.Up
key.2 = Wiimote.Down
key.3 = Wiimote.Left
key.4 = Wiimote.Right

Menu movement = Nunchuk Joystick

HAVE FUN!!!

*/
//This varible controls the ammount of force you need to use when moving the
//wiimote or nunchuk, make it lower if you want to use less force when moving the
//wiimote or nunchuk
var.ForceSensitivity=15

//Roll/Jump/Action
key.space = Wiimote.A
//Walling/Block/Swing
mouse.rightbutton = Wiimote.B
//Attack Dagger
mouse.leftbutton = Wiimote.RawAccX > var.ForceSensitivity or < -var.ForceSensitivity or Wiimote.RawAccy > var.ForceSensitivity or < -var.ForceSensitivity
//2nd weapon/Grab/Speedkill
key.e = Wiimote.Nunchuk.RawAccx > var.ForceSensitivity or < -var.ForceSensitivity or Wiimote.Nunchuk.RawAccy > var.ForceSensitivity or < -var.ForceSensitivity
//Pickup/Throw/DropDown
key.c = Wiimote.Minus
//Walk Toggle
key.shift = Wiimote.Home
//Reverse/Slow Down Time
key.r = Wiimote.Plus
//Reset Camera
key.x = wiimote.Nunchuk.ZButton
//First Person View
key.f = wiimote.Nunchuk.CButton
//Landscape View
key.q = Wiimote.One
//Pause/Menu
key.esc = Wiimote.Two

//Movement
key.w = wiimote.Nunchuk.JoyY < -0.5
key.s = wiimote.Nunchuk.JoyY > 0.5
key.a = wiimote.Nunchuk.JoyX < -0.5
key.d = wiimote.Nunchuk.JoyX > 0.5

//Camera movement (You must assign these in game under keyboard control options)
key.1 = Wiimote.Up
key.2 = Wiimote.Down
key.3 = Wiimote.Left
key.4 = Wiimote.Right

//Menu movement
key.up = wiimote.Nunchuk.JoyY < -0.5
key.down = wiimote.Nunchuk.JoyY > 0.5
key.left = wiimote.Nunchuk.JoyX < -0.5
key.right = wiimote.Nunchuk.JoyX > 0.5


Here is the script that requires PPJOY! And you need to setup some controls in game as well... Read below for full instructions...

Code:


/* Prince of Persia: The Two Thrones script by Terry Hagerty    Mar 2-07

This script lets you play the game just like on the Wii version!
PPJOY Needed. 2 Axis, 17+ buttons
You need to assign your Nunchuk stick IN GAME for movement.
You need to assign your wiimote DPAD IN GAME for Camera movement.
Read below for controls...


Roll/Jump/Action = Wiimote.A
Walling/Block/Swing = Wiimote.B
Attack Dagger = Swing WiiRemote up/down or left/right
2nd weapon/Grab/Speedkill = Swing Nunchuk up/down or left/right
Pickup/Throw/DropDown = Wiimote.Minus
Walk Toggle = Wiimote.Home
Reverse/Slow Down Time = Wiimote.Plus
Reset Camera = wiimote.Nunchuk.ZButton
First Person View = wiimote.Nunchuk.CButton
Landscape View = Wiimote.One
Pause/Menu = Wiimote.Two

Movement = Nunchuk Joystick

Camera movement = Wiimote DPAD (You must assign this in-game under gamepad control options)

Menu movement = Nunchuk Joystick

HAVE FUN!!!

*/
//This varible controls the ammount of force you need to use when moving the
//wiimote or nunchuk, make it lower if you want to use less force when moving the
//wiimote or nunchuk
var.ForceSensitivity=15

//Movement (You must assign your Nunchuk stick for movement in-game under gamepad options)
PPJoy.Analog0=wiimote.Nunchuk.JoyX
PPJoy.Analog1=wiimote.Nunchuk.JoyY

//Camera movement (You must assign these in-game under gamepad options)
ppjoy.digital6 = Wiimote.Up
ppjoy.digital7 = Wiimote.Down
ppjoy.digital8 = Wiimote.Left
ppjoy.digital9 = Wiimote.Right

//Roll/Jump/Action
key.space = Wiimote.A
//Walling/Block/Swing
mouse.rightbutton = Wiimote.B
//Attack Dagger
mouse.leftbutton = Wiimote.RawAccX > var.ForceSensitivity or < -var.ForceSensitivity or Wiimote.RawAccy > var.ForceSensitivity or < -var.ForceSensitivity
//2nd weapon/Grab/Speedkill
key.e = Wiimote.Nunchuk.RawAccx > var.ForceSensitivity or < -var.ForceSensitivity or Wiimote.Nunchuk.RawAccy > var.ForceSensitivity or < -var.ForceSensitivity
//Pickup/Throw/DropDown
key.c = Wiimote.Minus
//Walk Toggle
key.shift = Wiimote.Home
//Reverse/Slow Down Time
key.r = Wiimote.Plus
//Reset Camera
key.x = wiimote.Nunchuk.ZButton
//First Person View
key.f = wiimote.Nunchuk.CButton
//Landscape View
key.q = Wiimote.One
//Pause/Menu
key.esc = Wiimote.Two

//Menu movement
key.up = wiimote.Nunchuk.JoyY < -0.5
key.down = wiimote.Nunchuk.JoyY > 0.5
key.left = wiimote.Nunchuk.JoyX < -0.5
key.right = wiimote.Nunchuk.JoyX > 0.5


Let me know how it works out!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group