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 

Harry Potter and the Goblet of Fire! Wave that wand!!!

 
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: Sun Feb 11, 2007 10:37 pm    Post subject: Harry Potter and the Goblet of Fire! Wave that wand!!!

My kids love this. Now you actually use your wand (the remote) to play!


Code:

/*HARRY POTTER AND THE GOBLET OF FIRE- SCRIPT BY TERRY HAGERTY

To play you can either just use the buttons like normal, or you can use your WAND!
Swing the remote left/right to fire Jinx spells. Hold the Remote upright to cast and
HOLD Charm spells (to move things,put out fires,etc). Hold the Nunchuk upright to
cast and HOLD Axio spells (to make things come to you). Hold both the Remote and
Nunchuk upright to cast Magic Extremos.

SETUP:

  In PPJoy set up a virtual controller with 2 axis and AT LEAST 16 buttons, Button 1 is
  Digital 1, Button 2 is Digital 2, ect

  In your game just select the PPjoy controller as your controller and use the
  games button mapping system to map the buttons with the wiimote

  Run this script FIRST and assign your buttons in the game (gofcontrols.exe) as follows:

charm = Wiimote A
jinx =  Wiimote B
pause = Wiimote Home
magic extremos = Nunchuk C Button
axio = Nunchuk Z Button

Other keyboard keys are assigned as well for convenience.

esc/skip = Wiimote.Plus

arrow keys/enter
   enter = Wiimote.Minus
   up = Wiimote.Up
   down = Wiimote.Down
   left = Wiimote.Left
   right = Wiimote.Right

Have Fun!!!

*/
//This varible controlls 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


//Joystick
PPJoy.Analog0=wiimote.Nunchuk.JoyX
PPJoy.Analog1=wiimote.Nunchuk.JoyY

//charm
ppjoy.digital1 = Wiimote.A or Wiimote.Pitch > 50
//jinx
ppjoy.digital2 = Wiimote.B or Wiimote.RawAccX > var.ForceSensitivity or Wiimote.RawAccX < -var.ForceSensitivity
//pause
ppjoy.digital3 = Wiimote.Home
//magic extremos
ppjoy.digital10 = wiimote.Nunchuk.CButton or (Wiimote.pitch >50 and Wiimote.Nunchuk.pitch >50)
//axio
ppjoy.digital11 = wiimote.Nunchuk.ZButton or  Wiimote.Nunchuk.pitch >50


///esc/skip
key.esc = Wiimote.Plus

//arrow keys/enter
key.enter = Wiimote.Minus
key.up = Wiimote.Up
key.down = Wiimote.Down
key.left = Wiimote.Left
key.right = Wiimote.Right

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