|
Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||
|
well see I want the level of difficulty to increase or decreased based on the players points in 5 point intervals. The player loses 3 points if he dies. The script I've got works fine for that.
if the player has 15 points and dies several times and drops back down to say 9 points, the difficulty will drop back down as well. points will not go below 0 (if V17 lt 0 then set V17, 0) and when the player reaches 20 points, the objective is won. |
#22
|
|||
|
Quote:
What if the ai kills itself accidentally? |
#23
|
|||
|
Quote:
It doesnt matter how many times the player is killed. V17 (players points) will not go below zero. If an ai kills itself or is killed by another means (like a mortar) it wont count as a player kill because v17 only increases if the player makes the kill. |
#24
|
|||
|
Note that vars can go below zero and looking back over this thread, you have left out crucial info making it difficult to know if you have accounted for this.
Your'e asking questions and my suggestions are based on the questions and bits and pieces. The scripts I've posted work solidly, I posted them to aid you (and others) so I kindly suggest you look them over a little more closely and then if you see an issue, tell me how I they are wrong? Also you said... Quote:
Last edited by Guest001; 05-28-2018 at 06:18 PM. |
#25
|
|||
|
Quote:
Your examples are very helpful and i do learn from them, thank you... As i said in my previous post, v17 will not go below zero via a script in the wac. If lt(v17, 0) then Set (v17, 0) Endif V17 is the actual points displayed to the player. If eq (v14, 1) and ssnarea (10000, 9) then Text("========") Text#("kill points:", v17) Text ("========") Endif V17 increases by 1 for every kill the player makes. It decreases by 3 for every time the player is killed. |
#26
|
|||
|
Quote:
Also, I'm not sure that I understand your statement that piskills is an action. It's a condition not an action is it not? piskills is a condition that says if the player has killed X amount of enemies. |
#27
|
||
|
Contradictions again my friend?
Aaaah well. Just trying give you any info that may or may not help you shorten your wac and also help prevent any possible oversights, as I said it's hard to answer you accurately when you are so cryptic about your answers to my answers. I can go back over many of my own maps and now see (with extra info) that I could have shortened them further, or rather, made them more efficient. It's all about Flow control. Imagine that you're trying to stream it all down a narrow funnel neck. BTW Here's an example of a negative var for you. It's a timer script that I shortened years ago. Code:
if never() then set(v60, -1) set(v90, 10) set(v100, 1) endif if not eq(v100, 1) then dec(v100, 1) else set(v100, 60) sub(v90, 1) endif if not eq(v60, 59) then inc(v60, 1) else set(v60, 0) add(v70, 1) endif if elapse(1) then consol "Countdown" consol# "Min Left",v90 consol# "Sec Left",v100 endif if elapse(1) then text "Time" text# "Min Past",v70 text# "Sec Past",v60 endif |
#28
|
||
|
Can you see any difference between these timer scripts compared to traditional methods?
Do you think they may be more efficient? Notice I am using exclusion rather than inclusion. Last edited by Guest001; 05-28-2018 at 08:17 PM. Reason: glitch |
#29
|
|||
|
Quote:
Contradictions? What do you mean? Ill check out those scripts tomorrow, gotta get some sleep. Thanks. |
#30
|
||
|
I've investigated concatenation, single line statements etc but I don't know enough to advise you reliably on that subject and I really don't know if it saves on overhead but it may help you.
Example: Code:
if past(1) and never() then set(v17,5) endif |
#31
|
|||
|
I guess I mean this thread is 10 times longer than it could have been.
To clarify it would've been far better if you'd posted all the connected vars early on. Not having all the connected vars certainly does makes it cryptic. As for contradiction? Questions on answers need to stay relevant and answers are only suggestions, so it's polite to accept them and move on. Also in regards to v17 again... Quote:
My apologies but that's how it looks. Last edited by Guest001; 05-28-2018 at 10:54 PM. Reason: To clarify |
#32
|
|||
|
Quote:
In the example i gave, all of the linked variables were there. The only thing i really left out was the script that will not allow v17 to go below 0. My apologies, i just didnt think it was important info. The single line idea is intetesting. Its worth a shot. Ill give it a try... |
#33
|
|||
|
Quote:
|
#34
|
|||
|
Quote:
As I said, not sure if it saves overhead but if it's a line limit vs character limit then it may get you home. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|