Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Smack wall this.Variable+=1 (https://forums.graalonline.com/forums/showthread.php?t=17261)

SabreKnot 11-18-2001 10:52 AM

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.

Falcor 11-19-2001 01:06 AM

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

and

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

SabreKnot 11-19-2001 01:36 AM

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 ++; }

SabreKnot 11-19-2001 05:28 AM

NM I figured it out. Thx for steerin me in the right direction man :)

SabreKnot 11-20-2001 12:03 AM

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.

Faheria_GP2 11-20-2001 07:58 AM

your sig is wrong
player.lifeline==0 is a test, player.lifeline=0 for assignment ;)

Xaviar 11-20-2001 10:20 AM

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) ;) ;)


All times are GMT +2. The time now is 06:48 PM.

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