Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-02-2009, 07:06 AM
xfazex xfazex is offline
Registered User
Join Date: Feb 2009
Location: Eastern Shore, Maryland USA
Posts: 81
xfazex is an unknown quantity at this point
Send a message via AIM to xfazex Send a message via MSN to xfazex Send a message via Yahoo to xfazex
Quote:
Originally Posted by Rufus View Post
Yeah, a regular Weapon NPC should do, unless you want to include it into a "System" NPC so you don't have tons of NPCs for different things. It all depends on how the script is in NPC-Control, but you can probably something like "Emoticons","Tiles" so you don't have to keep reusing the same script.
So right now, my sys NPC looks like this...

PHP Code:
function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions"); 
I assume this will work?

PHP Code:
function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions","-System/Tiles"); 
Reply With Quote
  #2  
Old 03-02-2009, 04:37 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by xfazex View Post
So right now, my sys NPC looks like this...

PHP Code:
function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions"); 
I assume this will work?

PHP Code:
function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions","-System/Tiles"); 
You'd have to do:

PHP Code:
player.addweapon("-System/Emotions");
player.addweapon("-System/Tiles"); 
Reply With Quote
  #3  
Old 03-02-2009, 07:02 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by xfazex View Post
I assume this will work?

PHP Code:
function onActionPlayerOnline() {
  
player.addWeapon("-System/Emotions","-System/Tiles"); 
nope, if you want a array of weapons u better do a for() loop
like this:
PHP Code:
temp.weapons = {"wep1","wep2","ect"};
for (
loopweps temp.weaponsaddWeapon(temp.loopweps); 
or use Codein's
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #4  
Old 03-02-2009, 07:23 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Deas_Voice View Post
PHP Code:
temp.weapons = {"wep1","wep2","ect"};
for (
loopweps temp.weaponsaddWeapon(temp.loopweps); 
Yeah, I recommend this.
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 07:55 AM.


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