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-08-2002, 02:32 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Joining.

Ok,
I've been gone from Graal for 3 months and I'm kind of behind in the new scripting commands. How do you use join/how do you make `classes` so you use the join command?
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #2  
Old 01-08-2002, 03:17 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
http://forums.graal2001.com/forums/s...threadid=17698
Reply With Quote
  #3  
Old 01-08-2002, 04:15 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Thanks!

One more question. How does Graal read strings? I'm trying to set the strings, then read the value. So something like:
//NPC one
setstring blah,0;

//NPC two
if (#s(blah)=>0){
codehere;
}

That doesn't work though. =\ Could someone enlighten me?
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #4  
Old 01-08-2002, 10:40 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
ok
//npc 1
setstring blah,0;

//NPC 2
if (strtofloat(#s(blah))=>0){
codehere;
}

that should work
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #5  
Old 01-08-2002, 07:37 PM
kp_p2p kp_p2p is offline
Banned
kp_p2p's Avatar
Join Date: Sep 2001
Location: In my own world of chaos and depression.
Posts: 1,758
kp_p2p is on a distinguished road
=> looks funny i always learned it as >= greater than or equal to sounds better than equal to or greater than
Reply With Quote
  #6  
Old 01-09-2002, 01:10 AM
Shorty2Dope Shorty2Dope is offline
Psychopathic
Shorty2Dope's Avatar
Join Date: Oct 2001
Location: Insane Asylum
Posts: 3,290
Shorty2Dope is on a distinguished road
Send a message via AIM to Shorty2Dope Send a message via Yahoo to Shorty2Dope
Quote:
Originally posted by kp_p2p
=> looks funny i always learned it as >= greater than or equal to sounds better than equal to or greater than
Yea thats the way it is done and better to learn
__________________
blah
Reply With Quote
  #7  
Old 01-09-2002, 02:45 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
unless it says string or partstring or value or something like that, it should always be a varible, and must be 'converted' to a variable, to make sure there are no string values in it. strtofloat(string) is the way to go
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 11:33 PM.


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