- Is it possible to store entity-based, static values? As in, f.e., counting the number of melee strikes beformed by a specific character. And will this work INDIVIDUALLY for multiple instances of the same character ID?
as someone else said
I've managed to replicate team commands that way
- Is there a more efficient way in determining what is in a specific area, other then iterating through the entire list of loaded objects and checking every single one?
http://www.lf-empire.de/forum/showthread.php?tid=7976
if you are looking for a specific kind of object you can try to only investigate the range where it is most likely to appear
also object slots always get filled up from low to high numbers - so if you are iterating over a larger empty area (empty object slots) you can cancel the iteration hoping that there won't be an old object lost on a higher slot because the ones below became free (blast/items disappearing)
also I suggest only iterating once, getting important/dangerous object slots (target/item/dangerous attack/ally) and then work with these numbers within all of your script
-Did anyone extract/recreate/copy the basic 'id();' LF2 uses for all vanilla chars? If not, did somebody write an own complete id() which could be refitted by me for my own characters? Or at the very least does somebody have a datasheet/list of all features performed by an basic id()-AI (aka fighting, approaching, running, picking objects etc)?
I am/was trying to create a new basic AI: http://www.lf-empire.de/forum/showthread.php?tid=8187
you can help me if you like
(AI - unrelated
-Is there a state that permits a character to change his facing based upon pressing left / right WITHOUT influencing the characters frame-behavior (which pretty much cancels out states 0 and 1, I guess)?)
no
there are only two frames that allow this: 110, 212
also the dash frames: 213, 214, 216, 217 (they redirect to 213, 214 though)
then there is the dircontrol in cpoints
and lastly this:
http://www.lf-empire.de/forum/showthread.php?tid=4470
edit: you've posted inside the threads I am linking to yourself ... why exactly are you asking these questions?
as someone else said
I've managed to replicate team commands that way
- Is there a more efficient way in determining what is in a specific area, other then iterating through the entire list of loaded objects and checking every single one?
http://www.lf-empire.de/forum/showthread.php?tid=7976
if you are looking for a specific kind of object you can try to only investigate the range where it is most likely to appear
also object slots always get filled up from low to high numbers - so if you are iterating over a larger empty area (empty object slots) you can cancel the iteration hoping that there won't be an old object lost on a higher slot because the ones below became free (blast/items disappearing)
also I suggest only iterating once, getting important/dangerous object slots (target/item/dangerous attack/ally) and then work with these numbers within all of your script
-Did anyone extract/recreate/copy the basic 'id();' LF2 uses for all vanilla chars? If not, did somebody write an own complete id() which could be refitted by me for my own characters? Or at the very least does somebody have a datasheet/list of all features performed by an basic id()-AI (aka fighting, approaching, running, picking objects etc)?
I am/was trying to create a new basic AI: http://www.lf-empire.de/forum/showthread.php?tid=8187
you can help me if you like
(AI - unrelated
-Is there a state that permits a character to change his facing based upon pressing left / right WITHOUT influencing the characters frame-behavior (which pretty much cancels out states 0 and 1, I guess)?)
no
there are only two frames that allow this: 110, 212
also the dash frames: 213, 214, 216, 217 (they redirect to 213, 214 though)
then there is the dircontrol in cpoints
and lastly this:
http://www.lf-empire.de/forum/showthread.php?tid=4470
(02-04-2013, 07:30 PM)Alblaka Wrote: @static variables:that still uses the same amount of memory, won't it?
If creating Arrays is possibe, there is a simpler solution: Creating a basic map.
Implement two static Arrays, the first contains a number of 'num's, the second one the associated value, write a function
int getValueFor (int num)
and done.
edit: you've posted inside the threads I am linking to yourself ... why exactly are you asking these questions?

Chat
