Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   RPG System (https://forums.graalonline.com/forums/showthread.php?t=32884)

Bane 07-04-2002 07:26 AM

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.

Torankusu 07-04-2002 09:01 AM

Client flags.

They work wonders. :P

Python523 07-04-2002 10:45 AM

learn triggeraction and how to use triggeraction param efficently

IAMNOTAFREAK 07-06-2002 07:45 AM

hey, jagen, could you give a brief example of how to use to triggeraction parameter? please?

Python523 07-06-2002 07:58 AM

triggeraction 10,10,test,#a,;



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

darkriders_p2p 07-06-2002 01:48 PM

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?

screen_name 07-06-2002 10:49 PM

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

Python523 07-07-2002 12:59 AM

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;

Warcaptain 07-07-2002 06:42 PM

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

RavenTelvecho 07-08-2002 01:06 AM

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

Dragona2002 07-09-2002 11:57 PM

KICK ASS !!!!

1000th Post already *phew*

been alotof typing XD

Omi


All times are GMT +2. The time now is 07:50 AM.

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