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 07-04-2002, 07:26 AM
Bane Bane is offline
Registered User
Join Date: May 2002
Posts: 6
Bane is on a distinguished road
RPG System

I'm trying to figure out a way to script an RPG system within an NPC server.

I figure that the various attributes such as hit points, magic points, strength, etc will all be maintained under flags (strings) within the client side of the server.

strtofloat and triggeraction may be used as well for when a player gets hit by another and the calculations (playergettinghitHP = playergettinghitHP - playerattackingstrength) etc.

I have no clue where to begin with this though. Could anybody point me in the right direction?

Thanks.
Reply With Quote
  #2  
Old 07-04-2002, 09:01 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Client flags.

They work wonders. :P
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #3  
Old 07-04-2002, 10:45 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
learn triggeraction and how to use triggeraction param efficently
Reply With Quote
  #4  
Old 07-06-2002, 07:45 AM
IAMNOTAFREAK IAMNOTAFREAK is offline
Registered User
Join Date: May 2002
Location: IBM Stellar Sphere
Posts: 118
IAMNOTAFREAK is on a distinguished road
Send a message via ICQ to IAMNOTAFREAK Send a message via AIM to IAMNOTAFREAK
hey, jagen, could you give a brief example of how to use to triggeraction parameter? please?
__________________
Crimson


Nocturne...it's coming.
Reply With Quote
  #5  
Old 07-06-2002, 07:58 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
triggeraction 10,10,test,#a,;



if(actiontest){
setstring this.attacker,#p(0);
}
Reply With Quote
  #6  
Old 07-06-2002, 01:48 PM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Quote:
Originally posted by Python523
triggeraction 10,10,test,#a,;


if(actiontest){
setstring this.attacker,#p(0);
}

wouldn't

setstring this.attacker,#p(test);

also work just the same?
__________________
maximus_asinus
Reply With Quote
  #7  
Old 07-06-2002, 10:49 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by darkriders_p2p


wouldn't

setstring this.attacker,#p(test);

also work just the same?
in theory, no


i have said in theory because i have never tried, but all signs point to no
__________________
[signature]insert here[/signature]
Reply With Quote
  #8  
Old 07-07-2002, 12:59 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by darkriders_p2p


wouldn't

setstring this.attacker,#p(test);

also work just the same?
no, #p(index) in params is similar to tokens, you can't just 'assign' an index for it, it does in the order it is stated in the triggeraction, the only was you would use
#p(test)
is if you did something like
test=1;

Last edited by Python523; 07-08-2002 at 01:21 AM..
Reply With Quote
  #9  
Old 07-07-2002, 06:42 PM
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
if you want to read about a good rp system

go to my post about Pandoras RP System Overview

its baisicly what you are doing now


btw

1000th post
Reply With Quote
  #10  
Old 07-08-2002, 01:06 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
Quote:
Originally posted by Warcaptain
if you want to read about a good rp system

go to my post about Pandoras RP System Overview

its baisicly what you are doing now


btw

1000th post
yes its wicked ;x
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #11  
Old 07-09-2002, 11:57 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
KICK ASS !!!!

1000th Post already *phew*

been alotof typing XD

Omi
__________________

Quote:
The Dark Nemesis begins.......
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 04:47 PM.


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