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 11-12-2003, 12:57 AM
MrGannondorf MrGannondorf is offline
Teh Lunpa
Join Date: Apr 2002
Location: usa, alas
Posts: 395
MrGannondorf is on a distinguished road
Send a message via AIM to MrGannondorf
Question help with parseing?

I'm working on a script that involves checking the current weapon of the player, and some other weapons based on the index of the current weapon. The only problem is, weaponscount apears to include the -"hidden" weapons in its count, as do they have thier own weapons index. My script doesn't like hidden weapons.
To what I know there isn't any equivalent of visibleweaponscount or such, so my solution involves checking the first character of the weapon name to figure out if its hidden or not, wich leads me to my scripting problem:

I can't get the engine to parse/check the first character
I've tried the statswith flag, tokenize2, etc, but all to no avail. (and I'm not gonna rename every weapon for the sake of compatibility, thank you very much).

any helpfull ideas? (a minor emphisis on 'helpfull' and 'ideas', btw)
__________________
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 10:25 AM.


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