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 08-11-2003, 01:34 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
deletestring?!

so i was having trouble with a deletestring npc
what i wanted it to do is when used, would trim back the string by one

so something like
lolhi
would become
lolh

when used

this is what i got

NPC Code:
    deletestring client.reg#v(this.id),strlen(#s(client.reg#v(this.  id))-1);



it gives me no error in the editor and i asked some other people other possibilies to do this, but nothing has worked so far
__________________
Reply With Quote
  #2  
Old 08-11-2003, 01:52 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
#e(startindex,length,string)
__________________


Help me keep scripting
Reply With Quote
  #3  
Old 08-11-2003, 05:15 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
deletestring is for string arrays, normal strings are not string arrays. Use #e, as Giltwist said.
__________________
Reply With Quote
  #4  
Old 08-11-2003, 06:40 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally posted by TribulationStaff
#e(startindex,length,string)
yar, thanks for that Gilt
__________________
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 12:12 PM.


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