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 08-22-2001, 05:45 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Block Scripting

say you have a NPC of a block. Here is what I want to know.

How would you make it so that a block had a certain identity (maybe like one block is called 1 or another one is 2) and an action only happens once they are drug on top of a certain area.

Say there are 4 different blocks and a specific one has to be dragged to a specific spot and then an action happens. How would you do this?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 08-22-2001, 05:48 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
ez use callnpc or triggeraction
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 08-22-2001, 05:51 AM
Guest
Posts: n/a
liquid explain the whole callnpc thing to me please
I don't get sh*t of it...
Reply With Quote
  #4  
Old 08-22-2001, 06:01 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
do like:
NPC Code:
if(x=sumthin&&y=sumtin){
script here;
}

__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #5  
Old 08-22-2001, 07:49 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
but the blocks are unique. That would allow any block to work in any space and I have 4 spaces and 4 blocks and I need the right one for each area to be placed for this to work.

How would I do that exactly?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 08-22-2001, 08:01 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
no, babylon d00d
Reply With Quote
  #7  
Old 08-22-2001, 08:04 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
here is an example
of how to open a certain door from something u touch
(not tested)
the 'switch'
NPC Code:

if (playertouchsme) {
for (this.i=0;this.i<npcscount;this.i++) {
callnpc this.i,open1;
}
}



then the door

NPC Code:

if (timeout) { showlocal; }
if (open1) { hidelocal; timeout=10; }
if (playerenters) { showlocal; }



easy =) callnpc basically sets a variable to true in another npc
trigger action is the same but its for x,y instead of calling by index
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 08-22-2001, 09:28 AM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
Quote:
Originally posted by ownerofbabylon
but the blocks are unique. That would allow any block to work in any space and I have 4 spaces and 4 blocks and I need the right one for each area to be placed for this to work.

How would I do that exactly?
actions work I think...
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
Reply With Quote
  #9  
Old 08-23-2001, 02:39 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Quote:
Originally posted by LiquidIce00
here is an example
of how to open a certain door from something u touch
(not tested)
the 'switch'
NPC Code:

if (playertouchsme) {
for (this.i=0;this.i<npcscount;this.i++) {
callnpc this.i,open1;
}
}



then the door

NPC Code:

if (timeout) { showlocal; }
if (open1) { hidelocal; timeout=10; }
if (playerenters) { showlocal; }



easy =) callnpc basically sets a variable to true in another npc
trigger action is the same but its for x,y instead of calling by index
wow I will have to play with that. One thing, I was informed hidelocal and showlocal arent used anymore
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #10  
Old 08-23-2001, 08:27 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
what liquid did ...

yeah what liquid did works ...
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 10:50 AM.


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