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
  #16  
Old 01-23-2006, 04:27 PM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Quote:
Originally Posted by Raeiphon
And instead of double posting, ever heard of edit?
Ever heard of tree structure? Read the rules.
Reply With Quote
  #17  
Old 01-23-2006, 05:17 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
Quote:
Originally Posted by RavenofEarth
That's not helping me, How do I set it when i leave that level. Do I have to put an NPC in every level outside of the worldmap_ that sets the gani's, but then wouldn't that interfere with NPC's? Isn't there a way that if (created || timeout) <insert the rest of that script above, then at the end some how impliment a "else -blah-"?
HTML Code:
if (created || playerenters) { // This event is triggered every time a player enters a level.
  if (startswith(worldmap_,#L)) {
    /* player has entered a level that begins with worldmap_ */
  }
  else {
    /* player has entered a level that does not begin with worldmap_ */
  }
}
The block of code within an else (after an if statement) will be executed if that if statement is false.
Reply With Quote
  #18  
Old 01-23-2006, 06:00 PM
RavenofEarth RavenofEarth is offline
Registered User
RavenofEarth's Avatar
Join Date: Jan 2005
Posts: 86
RavenofEarth is on a distinguished road
Send a message via AIM to RavenofEarth
See, I knew one thing, but I wasn't sure how it was to be set up. the elseif worked, appreciate it.
__________________

Reply With Quote
  #19  
Old 01-24-2006, 12:06 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Raeiphon
I was asking.

And instead of double posting, ever heard of edit?
Ever heard of "read the forum rules" or "there are other types of view modes than linear"?

Well, I guess you have since Jordan already posted it.

Tip: don't tell a moderator how to post.
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 01:53 PM.


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