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 06-13-2002, 11:37 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
set it w/o the npcs server? you could use server.strings...

like set a string such as..

server.#a_attr //i use #a so it will be unique for all players.

and then give it a value like

setmp 0 //the space between setmp and 0 is used for tokenizing

then tokenize #a(server.#a_attr); in a weapon that the person that you wanna change has (such as maybe a system weapon) and then change his stuff accordingly.

he would check for a server.#a_attr string to be set for him to change his attributes and you could make the weapon he has do what you want.

tokenizing the string would give you 2 tokens

#t(0) = setmp
#t(1) = 0

you would read token 1 to see what you want to do (in this case, set mp)

so

if(strequals(#t(0),setmp)) {
yourcode;
delete the server string; //bc if you dont he gets more mp over and over
}

within your code for setting mp you could use the value of #t(1) to set his mp.
__________________

subliminal message: 1+1=3
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:06 AM.


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