Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I need help making this item. (https://forums.graalonline.com/forums/showthread.php?t=58440)

jas988 04-04-2005 10:21 PM

I need help making this item.
 
I want to make a pot that makes a heart when thrown. the problem is i can't get the heart to appear. i tried...

// NPC made by jas988
if (created) {
canbecarried;
}
if (wasthrown) {
putleaps 4,x,y;
destroy;
putobject 5,x,y;
}

and...

// NPC made by jas988
if (created) {
canbecarried;
}
if (wasthrown) {
putleaps 4,x,y;
destroy;
putobject heart,x,y;
}


but no prevail. I need some help please!

Rick 04-04-2005 10:33 PM

Is this online or offline?

Also, destroy destroys the object NPC entirely. So putobject never gets called.

jas988 04-04-2005 10:34 PM

I tried putting destroy after putobject also, but no prevail. x_x

Xcessive54321 04-04-2005 10:34 PM

lol just used a predefinied pot :D

jas988 04-04-2005 10:35 PM

they don't make hearts.

Xcessive54321 04-04-2005 11:40 PM

mine did :D

Darlene159 04-04-2005 11:42 PM

Quote:

Originally Posted by Xcessive54321
mine did :D

I dont think he wants a heart to appear when he picks up a pot...I think he wants a heart to appear when he throws the pot...

jas988 04-05-2005 12:22 AM

yes I want it to come when I throw the pot.

jake13jake 04-06-2005 02:50 AM

Well, it doesn't matter if it doesn't work either way, the destroy should be the last thing done in your script. Aside from that, I have no idea how putobject works.

Dach 04-06-2005 04:00 AM

Use non-depricated commands like putnpc and showani..

jake13jake 04-06-2005 12:20 PM

Quote:

Originally Posted by Dach
Use non-depricated commands like putnpc and showani..

You know, showani would be nicer if you could manipulate it some other way than changeimgvis. Also, putnpc is evil, but I really have never laid a heart. Too bad you can't putnpc2 in an offline level.

Xcessive54321 04-06-2005 01:27 PM

oh

Skyld 04-06-2005 06:39 PM

Quote:

Originally Posted by Xcessive54321
oh

Please, make more substantial replies and quote the post you are replying to, if more than one post is present. "oh" doesn't tell us very much.
Quote:

Originally Posted by jake13jake
Too bad you can't putnpc2 in an offline level.

This could be tried on a server, though.

jake13jake 04-06-2005 11:07 PM

Quote:

Originally Posted by Skyld
Please, make more substantial replies and quote the post you are replying to, if more than one post is present. "oh" doesn't tell us very much.

This could be tried on a server, though.

What if you want to make your own little offline universe, though... WHAT IS ONE TO DO THEN?!?!??! Especially with all of the offline commands that are being deprecated.

Zero Hour 04-06-2005 11:39 PM

Quote:

Originally Posted by jake13jake
What if you want to make your own little offline universe, though... WHAT IS ONE TO DO THEN?!?!??! Especially with all of the offline commands that are being deprecated.

Realize that you're limiting yourself and make an online universe.

jas988 04-07-2005 07:24 PM

I just wanted to find out how to work the putobject command.Does anyone know how?

Admins 04-07-2005 09:56 PM

When I remember correctly the putobject command was for replacing tiles, it takes an "object" from the editor tiles panel and places it on the specified position (e.g. a bush,vase etc.). For laying hearts you need to use the lay or lay2 commands.


All times are GMT +2. The time now is 10:09 AM.

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