PDA

View Full Version : GEM Editor: Reinforcement points



mufans
19-07-2009, 16:21
Hello. i have seen that many of you are asking for help how to make that reinforcment points add for each kill. well i have the answer.
P.S. this is my first tutorial so ask me if you have any questions or you didnt understood something(which you will)
so lets get started...

1)create your enemies that when they are killed you will gain X points. now add them tags(for example "attackers")



2)now create you reinforcment buttons which you will summon squads/vehicles/bombardments(i called mine "idiot")



3)now the important part of this tutorial(if you can call it that). create trigger "gain_score" "add_score"(whatever you whant, well as long as you remember what it is) inside create condition "entities". inside there create "tag-attackers"(that is what you added on 1st stem) "type-human" "state-dead"
and "count->=" "value-1"



4)create command: "entity_state" "tag_add-counted"(you can choose it whatever you whant as long it doesnt confuse you with other map tags) "tag_remove-attackers



5)now add inside of "selector". "tag-attackers" "state-dead



6)now create after "entity_state" commad "reinforcment". inside change from "operation-show" to "operation-score_add". change the "score" how much you like(this will be added(per kill) to your score). i entered "5"



7)now the last thng in this tutorial is the "trigger" command. create it and pick you trigger name(for example "renforcment/gain_points") and set it to "off"(leave as it is if its on "off" already(its usually default))


if you whant to know how to creat the same thing for cars i can show it to you. hope this helped :)

f you know a method how to show you the printscreens i would be glad to listen to you

note... it wont work 100%, because if you kill 2 or more enemies in maybe 0.1sec to 1sec(im not sure) it will count as 1

mufans
26-07-2009, 09:39
someone else told me how to do this another way(here is what he wrote to me)


First create a variable called 'menkilled'

Next create a trigger which initiates only when the game begins which sets the variable to 0 (not even sure if its necesary but a habit)

i_set menkilled$ = 0

Next create another trigger called counter, this is where everything is done, fill in the parts which are stated here.

Conditions:

Entities,
Player: Player 1
State: Dead
Count: >
Value: menkilled$

Commands:

Set_i, menkilled$
op: +
Value: 1

Reinforcement,
Operation: score_add
Score: 1

Trigger,
counter

Zlatko
05-08-2009, 16:15
Yeah that would be me, Glad you took the initiative to write a tutorial, though a bit more depth, and a more relevent title might help people understand better. I'm just about to go to bed now, but I could help you write up a detailed tutorial tommrow if you like.

mufans
06-08-2009, 12:48
If it would benefit other peoples/reader then sure

Lap
14-08-2009, 18:37
Though relatively simple to do, the amount of different screens you have to go to to set this up kind of warrants an example mission save.

I have a similar thing to this (though as penalty and not reward) as part of a mission already, but uploading your version would probably help people more as mine uses advanced selectors instead of the basic ones.

greenguy
25-01-2010, 00:48
I tried this method, and it worked once, and then it only aaccredited me score for every other kill.
Solutions?

*solved* I tried it again just restarting and it worked fine.

asureka
25-01-2010, 07:23
thanks. :) this tutorialis very useful. i'll try it next time. And you can post more helpfulness tutorials :realbig:

~asureka