Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I make a reaction for a free weapon?  (Read 711 times)

Audioworm333

  • Bay Watcher
  • [PREFSTRING: weirdness]
    • View Profile
How do I make a reaction for a free weapon?
« on: March 09, 2012, 03:55:06 pm »

Yes, I want to make a reaction make an adamantine sword appear - and possibly disappear - at will. How do I do this?
Logged
I didn't really understand why I died until I discovered I was teleporting my own spine into my enemies' body as a primary way of attack.

NecroRebel

  • Bay Watcher
    • View Profile
Re: How do I make a reaction for a free weapon?
« Reply #1 on: March 09, 2012, 06:34:15 pm »

You'd make one reaction that created an adamantine sword with no reagents, and a second reaction that would take an adamantine sword as a reagent and create nothing in return. Assuming you mean short swords for the specific type of sword, the relevant lines for those reactions would be:

[PRODUCT:100:1:WEAPON:ITEM_WEAPON_SWORD_SHORT:INORGANIC:ADAMANTINE]

and

[REAGENT:banish the cheat sword:1:WEAPON:ITEM_WEAPON_SWORD_SHORT:INORGANIC:ADAMANTINE]

These would have to be in separate reactions of course, else you'd take an adamantine short sword to make an adamantine short sword, which doesn't do you much good.
Logged
A Better Magma Pump Stack: For all your high-FPS surface-level magma installation needs!