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 04-04-2005, 10:21 PM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
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!
Reply With Quote
  #2  
Old 04-04-2005, 10:33 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Is this online or offline?

Also, destroy destroys the object NPC entirely. So putobject never gets called.
Reply With Quote
  #3  
Old 04-04-2005, 10:34 PM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
I tried putting destroy after putobject also, but no prevail.
Reply With Quote
  #4  
Old 04-04-2005, 10:34 PM
Xcessive54321 Xcessive54321 is offline
Zodiac Nub
Xcessive54321's Avatar
Join Date: Mar 2005
Location: In my room
Posts: 289
Xcessive54321 is on a distinguished road
lol just used a predefinied pot
__________________
Reply With Quote
  #5  
Old 04-04-2005, 10:35 PM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
they don't make hearts.
Reply With Quote
  #6  
Old 04-04-2005, 11:40 PM
Xcessive54321 Xcessive54321 is offline
Zodiac Nub
Xcessive54321's Avatar
Join Date: Mar 2005
Location: In my room
Posts: 289
Xcessive54321 is on a distinguished road
mine did
__________________
Reply With Quote
  #7  
Old 04-04-2005, 11:42 PM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally Posted by Xcessive54321
mine did
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...
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #8  
Old 04-05-2005, 12:22 AM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
yes I want it to come when I throw the pot.
Reply With Quote
  #9  
Old 04-06-2005, 02:50 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #10  
Old 04-06-2005, 04:00 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Use non-depricated commands like putnpc and showani..
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 04-06-2005, 12:20 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #12  
Old 04-06-2005, 01:27 PM
Xcessive54321 Xcessive54321 is offline
Zodiac Nub
Xcessive54321's Avatar
Join Date: Mar 2005
Location: In my room
Posts: 289
Xcessive54321 is on a distinguished road
oh
__________________
Reply With Quote
  #13  
Old 04-06-2005, 06:39 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
Reply With Quote
  #14  
Old 04-06-2005, 11:07 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #15  
Old 04-06-2005, 11:39 PM
Zero Hour Zero Hour is offline
Stiff Upper Lip
Zero Hour's Avatar
Join Date: Oct 2006
Location: Nova Scotia, Canada
Posts: 0
Zero Hour is on a distinguished road
Send a message via AIM to Zero Hour
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.
__________________
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 03:45 PM.


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