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 01-12-2006, 01:36 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
Control NPC doesn't like breaks?

I've got a projectile. I want it to lay a bomb when it hits the ground.

PHP Code:
putnpc2(params[0], params[1], "join(\"bomb\");"); 
It should work, as far as I can tell. However, I get this error crap.

PHP Code:
Script compiler output for Control-NPC:
errorunexpected tokenbomb at line 557bomb\"";"");"
error: missing semicolon at line 557: bomb\""
;"");"
error: unexpected token: \ at line 557: bomb\""
;"");"
error: unexpected token: ) at line 557: bomb\""
;"");"
error: unexpected token: " 
at line 557bomb\"";"");"
error: unexpected token: SPC at line 557: bomb\""
;"");
Reply With Quote
  #2  
Old 01-12-2006, 03:26 AM
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
HTML Code:
putnpc2(params[0], params[1], "join(\\"bomb\\");");
Yes I know that's incorrect but it works -- I think it's due to an RC bug.
Reply With Quote
  #3  
Old 01-12-2006, 03:40 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I would stay away from escape sequences and just put:

PHP Code:
putnpc2(params[0], params[1], "join bomb;"); 
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 01-12-2006, 03:47 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
Yeah, I did it in GS1 instead. Also, it doesn't run the script block with the error, so leaving it won't do.
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 08:52 PM.


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