Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-03-2006, 11:45 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
hitobjects

Doesn't seem to work with bushes?

HTML Code:
function onMouseDown()
{
  putleaps(2, mousex - 0.5, mousey - 0.5);   
  hitobjects(1, mousex, mousey);
}
Doesn't seem to want to destroy any bush I click >:[
__________________
Reply With Quote
  #2  
Old 12-04-2006, 12:09 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
o-o
It triggers 'onWas Hit()' on the NPC/player.. It's not made to break bushes..

And while we're on the topic, onWas Hit() is only serverside.

Minus the space, of course.
Reply With Quote
  #3  
Old 12-04-2006, 09:14 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Yen View Post
o-o
It triggers 'onWas Hit()' on the NPC/player.. It's not made to break bushes..

And while we're on the topic, onWas Hit() is only serverside.

Minus the space, of course.
So what can be used to break bushes then =O
__________________
Reply With Quote
  #4  
Old 12-04-2006, 03:26 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Using put leaps, and update board would work, I assume.
You could also replace the sword gani and use S or Space.
Reply With Quote
  #5  
Old 12-04-2006, 03:40 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xAndrewx View Post
So what can be used to break bushes then =O
PHP Code:
function onCreated()
  
setTimer(0.05);

function 
onTimeout() {
  if (
player.ani == "sword") {
    
setani("punch"NULL);
    
freezeplayer(0.24);
  }
  
setTimer(0.05);

That would play the 'punch' gani instead of 'sword',
and still crush brushes. If you change the setTimer(0.05)
to something else, it will play sword in a very short moment,
then play the wanted gani, so .05 would be best.
__________________
Reply With Quote
  #6  
Old 12-04-2006, 04:12 PM
Magadal Magadal is offline
Banned
Join Date: Jan 2005
Location: Germany
Posts: 942
Magadal will become famous soon enough
Quote:
Originally Posted by Chompy View Post
PHP Code:
function onCreated()
  
setTimer(0.05);

function 
onTimeout() {
  if (
player.ani == "sword") {
    
setani("punch"NULL);
    
freezeplayer(0.24);
  }
  
setTimer(0.05);

That would play the 'punch' gani instead of 'sword',
and still crush brushes. If you change the setTimer(0.05)
to something else, it will play sword in a very short moment,
then play the wanted gani, so .05 would be best.
What the hell. I hope you know that theres still the replaceani command?Oo
Reply With Quote
  #7  
Old 12-04-2006, 05:58 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Magadal View Post
What the hell. I hope you know that theres still the replaceani command?Oo
replaceani is weird :]
__________________
Reply With Quote
  #8  
Old 12-04-2006, 09:28 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
So there isn't anything other than ''sword.gani'' to destroy bushes? Nah, you're playin'
__________________
Reply With Quote
  #9  
Old 12-04-2006, 09:51 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by xAndrewx View Post
So there isn't anything other than ''sword.gani'' to destroy bushes? Nah, you're playin'
What are bushes? Levels do not contain bushes. Swords do not interact with any bush objects. They never have.
Reply With Quote
  #10  
Old 12-04-2006, 11:26 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
The only way to cut up bush tiles is by hitting the S button or replacing their tiles.
Reply With Quote
  #11  
Old 12-05-2006, 09:29 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Yen View Post
The only way to cut up bush tiles is by hitting the S button or replacing their tiles.
that's pathetic. Serverside gani's it is.
__________________
Reply With Quote
  #12  
Old 12-05-2006, 09:53 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Yen View Post
The only way to cut up bush tiles is by replacing their tiles.
I would have gotten to that
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:34 PM.


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