What about define 2 threads in single ai script?
Something like:
ai.src:
program ai_script()
..code
endprogram
events ai_scripts()
..code
endevents
I know I can always use start_script() but have all code in single src could be more readable...
THe 2 threads could share same global var ...
Search found 14 matches
- Mon Sep 17, 2007 6:56 am
- Forum: Feature Request Archive
- Topic: Wait_For_Event(0);
- Replies: 7
- Views: 8992
- Fri Jul 20, 2007 4:57 am
- Forum: General Help (097)
- Topic: 2007-07-15 POL 097 Win32, Linux and FreeBSD RC4 - Coregina
- Replies: 14
- Views: 17292
- Fri Jul 20, 2007 4:52 am
- Forum: Feature Request Archive
- Topic: More details on Event queue full
- Replies: 2
- Views: 4256
- Mon Jul 16, 2007 1:05 am
- Forum: General Help (097)
- Topic: 2007-07-15 POL 097 Win32, Linux and FreeBSD RC4 - Coregina
- Replies: 14
- Views: 17292
BuT bug in strunct definition in function parameter.... the bug I have documented month ago.... is already bugged pol?
In this post I did all test:
http://forums.polserver.com/viewtopic.php?t=1545
In this post I did all test:
http://forums.polserver.com/viewtopic.php?t=1545
- Tue May 15, 2007 1:14 am
- Forum: Feature Request Archive
- Topic: Abstract items
- Replies: 7
- Views: 8825
- Thu Apr 26, 2007 5:13 am
- Forum: Feature Request Archive
- Topic: ListMobilesNearLocationEx
- Replies: 2
- Views: 3596
ListMobilesNearLocationEx
New parameters:
LISTEX_FLAG_NPC
LISTEX_FLAG_PLAYER
?
LISTEX_FLAG_NPC
LISTEX_FLAG_PLAYER
?
- Tue Apr 10, 2007 2:15 am
- Forum: General Help (097)
- Topic: Commands don't work
- Replies: 3
- Views: 4567
- Tue Apr 10, 2007 2:10 am
- Forum: Contributed Scripts & Packages
- Topic: Tooltip Packethook [0xD6]
- Replies: 23
- Views: 37101
- Thu Feb 01, 2007 6:57 am
- Forum: Feature Request Archive
- Topic: start_script(commmand, who, par)
- Replies: 3
- Views: 4722
- Wed Jan 31, 2007 5:36 am
- Forum: Feature Request Archive
- Topic: start_script(commmand, who, par)
- Replies: 3
- Views: 4722
start_script(commmand, who, par)
start_script(commmand, who, par)
to launch text command and pass parameters?
to launch text command and pass parameters?
- Sun Feb 05, 2006 6:14 am
- Forum: Feature Request Archive
- Topic: die and custom vitals setup
- Replies: 7
- Views: 9095
- Sat Feb 04, 2006 10:20 am
- Forum: Scripting Help
- Topic: How to copy a cfg file in a datafile
- Replies: 8
- Views: 9392
- Sat Feb 04, 2006 10:19 am
- Forum: Scripting Help
- Topic: "enum"
- Replies: 2
- Views: 3867
"enum"
I script from 3 years but I have never used "enum".
Someone can explain me how to use it?
Someone can explain me how to use it?
- Sat Feb 04, 2006 10:17 am
- Forum: Feature Request Archive
- Topic: die and custom vitals setup
- Replies: 7
- Views: 9095
die and custom vitals setup
In current script I can add vitals (vitals.cfg) but character dies
when life go to zero on vital "Life" and this is hard-coded.
A new setting in vital:
"DieWhen 0"
that decide tha character dies when precise vital reach zero?
It could be usefull to use "DieWhen" on multiple vital also.
What do ...
when life go to zero on vital "Life" and this is hard-coded.
A new setting in vital:
"DieWhen 0"
that decide tha character dies when precise vital reach zero?
It could be usefull to use "DieWhen" on multiple vital also.
What do ...