Author Topic: how to link recource to a unit after killing.  (Read 2098 times)

Exazzo

  • Guest
how to link recource to a unit after killing.
« on: 22 October 2009, 11:00:12 »
how do i link a resource to a unit after killing it so i get fx. stone after killing the target ?

dannylee

  • Guest
Re: how to link recource to a unit after killing.
« Reply #1 on: 24 October 2009, 17:56:19 »
WOW SOLDIER, I DON'T THINK THAT ANYBODY FOLLOWS YOU, WHAT DO YOU MEAN, EXPLAIN LOUD AND CLEAR, THAN WE CAN HELP YOU, SOLDIER! OR DO YOU NEED A MEDIC? OR 50 PUSH UPS?
NOW TALK TO ME SON, TALK TO ME AND EXPLAIN!
DO YOU UNDERSTAND ME, SOLDIER?


Loronal

  • Guest
Re: how to link recource to a unit after killing.
« Reply #2 on: 24 October 2009, 20:06:07 »
You know everyone on this forum wishes they could block dannylee and his pointless spam. Sadly though in glest you cannot place resources on death (in my knowledge) you should ask ligerteeth he had a hero strategy that supposedly used death resources

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: how to link recource to a unit after killing.
« Reply #3 on: 24 October 2009, 20:19:55 »
No, Ligerteeth claimed to have found a way, what he did might not have made a difference.
Sometime I'll investigate that.
Egypt Remastered!

Proof: Owner of glest@mail.com

dannylee

  • Guest
Re: how to link recource to a unit after killing.
« Reply #4 on: 24 October 2009, 20:31:14 »
PHOENIX, YOU DISSAPOINT ME! I SHOULD COURTMARSHALL YOU FOR YOUR BULL YOU JUST SAID! THIS IS NO SPAM, THIS IS (NOT SPARTA BUT) THE GLEST HELP MILITARY, NOW GO AND DO 100 PUSH UPS, AND TAKE THE PUNISHMENT LIKE MAN YOU WIMP!
DO YOU UNDERSTAND ME SOLDIER?

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: how to link recource to a unit after killing.
« Reply #5 on: 24 October 2009, 21:06:10 »
Pheonix outranks you smart one.....
Egypt Remastered!

Proof: Owner of glest@mail.com

Mark

  • Guest
Re: how to link recource to a unit after killing.
« Reply #6 on: 24 October 2009, 21:12:45 »
PHOENIX, YOU DISSAPOINT ME! I SHOULD COURTMARSHALL YOU FOR YOUR BULL YOU JUST SAID! THIS IS NO SPAM, THIS IS (NOT SPARTA BUT) THE GLEST HELP MILITARY, NOW GO AND DO 100 PUSH UPS, AND TAKE THE PUNISHMENT LIKE MAN YOU WIMP!
DO YOU UNDERSTAND ME SOLDIER?

This is not 300...

About the initial question:  I think you can have a player be awarded an amount of resources when an enemy dies with LUA scripting.

Ligerteeth

  • Guest
Re: how to link recource to a unit after killing.
« Reply #7 on: 30 October 2009, 23:15:52 »
You know everyone on this forum wishes they could block dannylee and his pointless spam. Sadly though in glest you cannot place resources on death (in my knowledge) you should ask ligerteeth he had a hero strategy that supposedly used death resources

He wants resources from kills, I made it so when your unit dies it gives you resources, which btw why does everyone just say that resources from death doesn't work, it makes sense, since death is a skill and you can make other skills have resource costs.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: how to link recource to a unit after killing.
« Reply #8 on: 31 October 2009, 03:01:28 »
Try it without the extra stuff in the death/die(whatever) tag, and see what happens, because in my Hero mod I don't have that in the XML, and I get the Hero_points resource back.......
Egypt Remastered!

Proof: Owner of glest@mail.com

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: how to link recource to a unit after killing.
« Reply #9 on: 31 October 2009, 03:24:32 »
Try it without the extra stuff in the death/die(whatever) tag, and see what happens, because in my Hero mod I don't have that in the XML, and I get the Hero_points resource back.......
That's how static resources work.  Think of it like a library full of books.  When you create a unit that requires that resource, it "checks out" the resource, and gives it back when it dies.  Ligerteeth's XML tag is completely superfluous as far as I can tell, as long as it's a static resource.  Frankly, I'm surprised it doesn't crash the game.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: how to link recource to a unit after killing.
« Reply #10 on: 31 October 2009, 04:08:27 »
Yah, I never tried it..........
Ligerteeth try asking for 1000 wood, and see what happens in the game when the unit that asks for that dies.
Egypt Remastered!

Proof: Owner of glest@mail.com