![]() |
new command suggestion
Need something to return certain parameters of a return... like
parm(2-,#c) would return the second word and on of the players chat text.. parm(2,#c) return the second word alone, parm(2-3,#c) would show the 2nd & 3rd words, etc. I know theres already ways to do it with loops & stuff.. but that is annoying in a way :D just suggesting a simpler way to do it. Also... left(2,parm(3,#c)) could show the first 2 letters of the third word in chat text, right() the opposite.. you get the idea :-) |
true.. but you still have to use loops w/ tokenize if you don't want the first word of a return to show up.. like:
setradio Kaimetsu is the script monkey you have to make a loop to get rid of all of #t(0) so you only get the sentence you want =\ [edit] I'm a mIRC scripter.. I feel the parm stuff just makes a lot of stuff go way quicker when you're making it x.x [/edit] |
tokenize is the same way really..
thatd only make things a bit smoother, and so you can still tokenize and use that at same time. but i doubt stefan would add 2 almost identical commands, unless the first was outdated |
Quote:
If the above post was patronizing, then I apologize, but this method works fine. I can't see any need for improvement. |
tokenize is sorta outdated :D
the point IS to make it simpler smallers scripts too |
it would be cool, a lot easier too
but i dont mind using tokenize either :D |
Quote:
new commands will still help anyways =P my other suggestion I already told stefan about: either make it so emotiocons draw over everything even if its a drawoverplayer npc, or have an option like "drawemoover"/"drawemounder" I end up trying to do an emotioncon under a treetop often & it is aggrivating x.x |
you can use something like #e to do the same thing basically
humm but then you would have to know how many chars to go in. |
Quote:
its like 1\10 that itll get done. there are commands like setbody and swetshield even though there is setplayerprop #8 setplayerporop #2 etc only to make things simpler for the scripter i dont see why this wouldnt work well. but param() wouldnt work well worded like that more like: [script] strtoken(token,string); [/script] sort of like #e() but its words not single characters. |
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Wouldn't this work?
NPC Code: That would be setradio (8 letters) + 1, and take that string and continue until the end of #c... Havn't tested it though, still at school (*curses proxies*) |
| All times are GMT +2. The time now is 12:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.