D.murphy man 0 Posted June 7, 2002 ok i need a script that makes u loose the game (or make your health go down)when a civ comes near you and is it possible to make a script that makes the civs walk towords u when they see you Share this post Link to post Share on other sites
RED 0 Posted June 7, 2002 Yes, </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop ?((civ2 distance player) < 15 && (civ2 knowsabout player) > 0.6):goto "found" goto "loop" civ2 dowatch player ~2 civ2 domove (getpos player) <span id='postcolor'> That will make the civ guy move towards you if he knows about you and is less than 15 meters away. RED Share this post Link to post Share on other sites
ralphwiggum 6 Posted June 7, 2002 actually, i think you forgot to put '#found' some where..like this </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop ?((civ2 distance player) < 15 && (civ2 knowsabout player) > 0.6):goto "found" goto "loop" #found civ2 dowatch player ~2 civ2 domove (getpos player)<span id='postcolor'> Share this post Link to post Share on other sites
D.murphy man 0 Posted June 7, 2002 thx but were do i put it in a trigger or the person it self?and i still need to know how to make the game end when a civ comes near Share this post Link to post Share on other sites
D.murphy man 0 Posted June 7, 2002 well i just tried it out in both trigger and civ but it said "invalled number in expession"i put the script in on activtion if it matters so can u help if im puting it in the wrong place tell me im no good at scripting Share this post Link to post Share on other sites
RED 0 Posted June 7, 2002 You have to put that in a .sqs file in the mission directory. Then have a trigger with: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> [] exec "nameorscript.sqs" <span id='postcolor'> And in that triggers condition field replace this, with true. Call then person you don't want to come near you called civ2. I have changed the script so that it will end after you get seen by the civ guy. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #loop ?((civ2 distance player) < 15 && (civ2 knowsabout player) > 0.6):goto "found" goto "loop" #found civ2 dowatch player ~2 civ2 domove (getpos player) playerseen = 1 <span id='postcolor'> You will have to set up another trigger with playerseen == 1 instead of this in the condition field. And give it #end1 type of trigger. RED Share this post Link to post Share on other sites