JacobJ 10 Posted April 14, 2011 Hey all I am looking for a point/rating-system. I want team west to start out with let say 1600 points. When something happens, lets say a tower gets destroyed, 200 points is being added to their points. I was looking at the addrating and I can make it work, but how do I define the starting rating for the whole team and how to I disable the standard rating values or how do I redefine them? Hope I made myself clear enough. /Jacob Share this post Link to post Share on other sites
demonized 20 Posted April 14, 2011 use in initline of all units you want to start with extra rating: this addrating 1600; and trigger with cond: (getdammage towername) == 1 pn act: {_x addrating 200} foreach [unit1,uni2 etc...] or {_x addrating 200} foreach units groupname. can ofcourse be used in init.sqf for the initial 1600 also. Share this post Link to post Share on other sites
JacobJ 10 Posted April 14, 2011 Okay, what about the rating values? Can I change them? like when a civilian gets killed you lose 200 points instead of 400 points? I know this sounds a bit newbish but how do I put units into a group and how do I set the groups name? ---------- Post added at 05:34 PM ---------- Previous post was at 05:30 PM ---------- Can I somehow make the civilians that gets added to a mission with ALICE a permanent number, so that when the game starts, civilians gets placed only in one definded city and there is not spawning anymore civilians, also not if they die or there is no-one around to look at them (the player is outside the placement radius of ALICE)? Share this post Link to post Share on other sites
demonized 20 Posted April 14, 2011 For adjusting kill penalty scores i dont think there is a way to do that, exept if you add a killed eventhandler to EVERY civilian, then you can readd 200 for every civilian killed to the killer. Example place this in any civilians initline: this addEventHandler ["killed", "(_this select 1) addRating 200"] Now everytime a unit kills a civilian that had this in the initline, he will be awarded 200 in score, ofcourse he will also be awarded with his -400 so killer will total get -200 score for killing that civilian. To make units in a group, simply place them in editor and click on GROUPS right side (F2) and drag a line from the unit to the one you want it to be in group with. Doing it in a script: [unitname] join (group otherUnitName); for groupnames, place this in 1 of the groups members initline: groupname = group this; ---------- Post added at 19:48 ---------- Previous post was at 19:42 ---------- Can I somehow make the civilians that gets added to a mission with ALICE a permanent number, so that when the game starts, civilians gets placed only in one definded city and there is not spawning anymore civilians, also not if they die or there is no-one around to look at them (the player is outside the placement radius of ALICE)? there is a thread here in scripting and editing that have indebt explanation on all modules, including ALICE. http://forums.bistudio.com/showthread.php?t=77403 Also a search for ALICE would probably yield some answers ;) Share this post Link to post Share on other sites
JacobJ 10 Posted April 14, 2011 Okay thank you very much, now I have something to work with. I think it is to complicated using the rating-system as is. I think I will make my own. I will have a look at that link and see if I can find what I need. ---------- Post added at 18:23 ---------- Previous post was at 17:55 ---------- I have a very weird problem. _allunits = count allunits; hint str _allunits; that displays one less than it should! I have counted and counted and I have 70 units and it displays 69. What can be the problem? Share this post Link to post Share on other sites
demonized 20 Posted April 14, 2011 one unit is maybe setCaptive, maybe you as the observer? SetCaptive units is never counted in anything afaik. Share this post Link to post Share on other sites
JacobJ 10 Posted April 14, 2011 No I dont have anyone to captive. I think it has something to do with my triggers that makes the lists that I count. Ill have a look at this when I get that with the ALICE sorted. I have a question about the townlist in ALICE. My town is called Shukukalay and I have added that to the BIS_fnc_locations, so that the city gets populated. How would I make a townlist only for this city. I dont understand the example that is given in the link you send me: this setvariable ["townlist",[bis_loc_acityc_mogilevka,[position this,3000],trigger1]]; ---------- Post added at 19:24 ---------- Previous post was at 19:01 ---------- I have tried this: this setVariable ["townlist",[[],Shukurkalay]]; But it doesnt work. All other cities gets populated too. Share this post Link to post Share on other sites
Shyjonathan1588 10 Posted August 28, 2011 How might I add rating points for every time the player speaks to a civilian (using ambient civilians mod)? I make very long patrol missions with low probability of enemy contact (for realism), and I want to add a "hearts and minds" aspect to encourage interaction with civilians. Share this post Link to post Share on other sites
hogmason 2 Posted May 28, 2012 JacobJ mate did you get your rank system working if so i am looking to achieve that at the moment my self i dont suppose you would share your one would you. Share this post Link to post Share on other sites
orcinus 121 Posted May 28, 2012 Um, reviving threads more than 3 months old is a no-no. The mods run a tight ship, keeping the forum organised and easier to search.. I suggest you PM the OP (as the forum rules state you should do with old threads). BR Orcinus Share this post Link to post Share on other sites