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 11-18-2001, 10:52 AM
SabreKnot SabreKnot is offline
Registered User
SabreKnot's Avatar
Join Date: Nov 2001
Posts: 524
SabreKnot is on a distinguished road
Smack wall this.Variable+=1

THe title pretty much says it all. Let me igve you the basics....

I have a hammer. All it does is change my ganis to paxe.ganis. I also have a wall that changes gif depending on the variable *this.raine*. Anyways, I need it so if I am standing right next to the wall (it is an NPC btw, a gif I drew) and I use the hammer, if it looks like it is hitting the wall i need this.raine to go up 1.

So basically:

Grab hammer. Run to wall. Use it so that it looks like the hammer is hitting wall. This causes this.raine+=1.

I dont know how to make it so if i am standing right next to the wall and use the hammer it will make the WALL's variable go up 1.
Reply With Quote
  #2  
Old 11-19-2001, 01:06 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
triggeraction x,y,actionname,param1,param2,param3........;

and

if(actionactionname) {
this.wallvar ++;
}
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 11-19-2001, 01:36 AM
SabreKnot SabreKnot is offline
Registered User
SabreKnot's Avatar
Join Date: Nov 2001
Posts: 524
SabreKnot is on a distinguished road
I have no clue how to to do a trigger action. can you please explain what each step does?

triggeraction x,y,actionname,param1,param2,param3........;

and

if(actionactionname) {
this.wallvar ++; }
Reply With Quote
  #4  
Old 11-19-2001, 05:28 AM
SabreKnot SabreKnot is offline
Registered User
SabreKnot's Avatar
Join Date: Nov 2001
Posts: 524
SabreKnot is on a distinguished road
NM I figured it out. Thx for steerin me in the right direction man
Reply With Quote
  #5  
Old 11-20-2001, 12:03 AM
SabreKnot SabreKnot is offline
Registered User
SabreKnot's Avatar
Join Date: Nov 2001
Posts: 524
SabreKnot is on a distinguished road
It r finished 8). First you go buy the deed for like 4k, then you go and place the deed and you can begin to work on it. You need an axe to chop down the trees, a hammer to break the rocks, and then you need to shuvel the ground to make it build blocks. Next up you have to have the tiler and tile the floors so they are all tiled in its final stage. Then you can start using the build tool to build up the walls, at this.build==5 it changes to a small wall and at this.build==20 it changes to a final wooden wall stage. After the entire house is done, it saves and just puts the final gif i made for it so there isnt like 40 gifs on there. Then you go talk to the woodcutter and he makes you a door and he places it and along with that door is the inside of the door which is the link to the house. Also i will add for the house you can buy paint and paint it and also so you can hire workers and tell them what to do and they will work.
Reply With Quote
  #6  
Old 11-20-2001, 07:58 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
your sig is wrong
player.lifeline==0 is a test, player.lifeline=0 for assignment
Reply With Quote
  #7  
Old 11-20-2001, 10:20 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by Faheria_GP2
your sig is wrong
player.lifeline==0 is a test, player.lifeline=0 for assignment
From what I've seen of your scripts, you don't bother with the second '=' in your tests just if(x=3)
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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 09:23 PM.


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