Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-06-2009, 11:13 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
I don't see this.stage being defined anywhere, yet it's in two of your conditional checks. So, I took it out, and the effect is a small up-and-down movement.

PHP Code:
function onTimeout() {
  if (
player.== 2)
    
this.air 2;
  if (
player.== 1)
    
this.air 1;
  if (
this.air == 1)
    
player.+= 0.05;
  else if (
this.air == 2)
    
player.-= 0.05;
  else if (
this.air == && player.0)
    
player.-= 0.05;
  
setTimer(0.05);

__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #2  
Old 03-06-2009, 11:23 PM
Novice Novice is offline
Developer
Join Date: Dec 2008
Posts: 90
Novice is an unknown quantity at this point
Send a message via MSN to Novice
Quote:
Originally Posted by LoneAngelIbesu View Post
I don't see this.stage being defined anywhere, yet it's in two of your conditional checks. So, I took it out, and the effect is a small up-and-down movement.

PHP Code:
function onTimeout() {
  if (
player.== 2)
    
this.air 2;
  if (
player.== 1)
    
this.air 1;
  if (
this.air == 1)
    
player.+= 0.05;
  else if (
this.air == 2)
    
player.-= 0.05;
  else if (
this.air == && player.0)
    
player.-= 0.05;
  
setTimer(0.05);

Ah, I had this.stage from an earlier version.
Even with that changed, it still won't work.
Reply With Quote
  #3  
Old 03-06-2009, 11:25 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Novice View Post
Ah, I had this.stage from an earlier version.
Even with that changed, it still won't work.
The only other thing I changed was the deployment method. I used onPlayerChats(), because the onWeaponFired() key in being used on Valikorlia, already.

So, it could possibly be a problem with the way you are deploying. Have you tried using onKeyPressed()?
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #4  
Old 03-06-2009, 11:35 PM
Novice Novice is offline
Developer
Join Date: Dec 2008
Posts: 90
Novice is an unknown quantity at this point
Send a message via MSN to Novice
Quote:
Originally Posted by LoneAngelIbesu View Post
The only other thing I changed was the deployment method. I used onPlayerChats(), because the onWeaponFired() key in being used on Valikorlia, already.

So, it could possibly be a problem with the way you are deploying. Have you tried using onKeyPressed()?
I had put up a check system with setting player's chat after setting this.air , "player.chat = this.air;" seemed to work setting your chat to "0" or "1".
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.