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-15-2002, 03:44 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,749
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Smile Scripting

I need some help from ubber leet scripters on strtofloat :P I asked b4 but my thread disappeared from lack of posting
I have no clue on this and addstring but I am going to read my scripting thingy I got with download,I hopers this helps.
Support Error if you get a chance,skitts,Razzmatazz and Xyrane are in the guild :P
__________________
Save Classic!
Reply With Quote
  #2  
Old 01-15-2002, 04:01 AM
GrowlZP2P GrowlZP2P is offline
Registered User
Join Date: Dec 2001
Location: Corpadverticus, which in case you don't know is the recently-formed and Blockbuster Video-sponsored Tenth Circle of Hell
Posts: 57
GrowlZP2P is on a distinguished road
Send a message via AIM to GrowlZP2P Send a message via Yahoo to GrowlZP2P
Talking

Addstring is fairly easy: it combines two different texts into one string. Try this example:

NPC Code:

if (playerenters) {
addstring b2,lol;
sleep 2;
addstring b2,pie;
sleep 2;
insertstring b2,1,for;
}



Insertstring places a new string in between two other strings. And as for strtofloat:

NPC Code:

if (playerenters){
setimg warpdoorani.gif;
}
if (playertouchsme){
setstring pineapples,#v(strtofloat(#s(pineapples))+1);
if (strtofloat(#s(pineapples))=>4){
say2 You have #s(pineapples) pineapples;
}else{
say2 You don't have enough pineapples;
}
}



Strtofloat changes a string to a number which can be read as a variable instead of a string, and can be changed easily. Hope this helped!
__________________


AIM: GrowlZ1010 | Y! IM: GrowlZ1010 | MSN: [email protected] | Email: [email protected]

- I use obscenely long words to befuddle my adversaries, therefore I am -

Current Favorite Quote: Real programmers don't document. If it was hard to write, it should be hard
to understand.
Reply With Quote
  #3  
Old 01-16-2002, 04:35 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,749
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Smile

Yes it did thx I needed the help,I made a quest using strtofloat but I got a wipe of the hard drive and with the files went my scripting knowledge
__________________
Save Classic!
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:41 PM.


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