learning how to script
Posted: Sat Aug 08, 2009 1:46 am
So, I want to script. To learn it, I'm doing the Ares tutorial and graydon helped me out yesterday. But now the udogs hl is down, so I need to ask this somewhere else.
How the hell do I make my reinforcements spawn??? I know got 3 actions in the first scripting box, I'll give them beneath here. ()=2nd box and []=3 box
TUNI.reins spawn (object test radius) [2 values] (activates on succes) [thrall @ reins attack + reinforcements]
CTRL.reinforcements (monster_identifier obje) [2 warriors + 1 dwarf] (visible flag) [true] (received user control flag) [true] (reinforcements alert) [true]
MELE.thrall @ reins attack (link; action identifier) [player as obje] (subject, monster_identifier) [4 thrall] (power over distance threshold) [2.001]
To give you some idea of what I'm trying to do, I'll explain that to. I'm using 'willow creek' and deleted all original map actions and scripts so I can place my own on them. After that I made an observer movement and groups of enemy units that have a trigger. Now I placed 3 'invisible' units at 'Tuncer's ale house' (in the town of willow creek) and I want them to become 'visible' if the player gets close enough. I placed the MELE.thrall @ reinforcements because I wanted to check if my TUNI.reins spawn works, but it seems the thrall get activated at the beginning of the level, and you don't need to get close to them, if you camp at the beginning of the level they'll come and get you to.
I hope you can help me, if you need more information on what I did just ask. Killerking
How the hell do I make my reinforcements spawn??? I know got 3 actions in the first scripting box, I'll give them beneath here. ()=2nd box and []=3 box
TUNI.reins spawn (object test radius) [2 values] (activates on succes) [thrall @ reins attack + reinforcements]
CTRL.reinforcements (monster_identifier obje) [2 warriors + 1 dwarf] (visible flag) [true] (received user control flag) [true] (reinforcements alert) [true]
MELE.thrall @ reins attack (link; action identifier) [player as obje] (subject, monster_identifier) [4 thrall] (power over distance threshold) [2.001]
To give you some idea of what I'm trying to do, I'll explain that to. I'm using 'willow creek' and deleted all original map actions and scripts so I can place my own on them. After that I made an observer movement and groups of enemy units that have a trigger. Now I placed 3 'invisible' units at 'Tuncer's ale house' (in the town of willow creek) and I want them to become 'visible' if the player gets close enough. I placed the MELE.thrall @ reinforcements because I wanted to check if my TUNI.reins spawn works, but it seems the thrall get activated at the beginning of the level, and you don't need to get close to them, if you camp at the beginning of the level they'll come and get you to.
I hope you can help me, if you need more information on what I did just ask. Killerking