Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-07-2006, 10:29 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
String being trimmed when I don't want it to?

Due to a 'typo,' an item's name was set as 'Gold Platemail '
Notice the extra space at the end.
The string holding the number of Gold Platemail I have is set as 'Gold Platemail =3' in attributes. Notice the space again.

When the system goes to load the archetype of 'Gold Platemail,' it trims out the space even though I didn't tell it to. This causes a bug. The systems look for the stats of 'Gold Platemail ' but they're saved as 'Gold Platemail' so it doesn't find them.

I tried to make an NPC convert all 'Gold Platemail ' strings to 'Gold Platemail' but the NPC automatically trims the space off the end..

Any ideas?
Reply With Quote
 


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:42 AM.


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