removing item

A place to discuss mods in development and concepts for new mods.
Post Reply
muffildy
Anarchist
Anarchist
Posts: 19
Joined: Fri Jul 15, 2011 1:16 am

hello.
i am trying to get my weapon to add an item, and remove it after a certain amount of time has passed.

http://paste.neurohack.com/view/YhHbw/
This adds it just fine, it just doesnt remove it like i want it to.
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

I think the problem is because you are creating new item when you remove it:

Code: Select all

(objRemoveItem gSource (itmCreate 0XD0040018 1))
Try using a setq when you create it so that the game has a reference to which item you want removed. (Every item has a unique number for it)
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
muffildy
Anarchist
Anarchist
Posts: 19
Joined: Fri Jul 15, 2011 1:16 am

can you paste that idea? It didnt seem to do anything when i added it
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

I mean when you create the item, use (setq WhateverYouCallTheItem (itmCreate UNID####))
Then, (itmRemove WhateverYouCallTheItem)

That might work. I haven't tested it, so I don't know.
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
muffildy
Anarchist
Anarchist
Posts: 19
Joined: Fri Jul 15, 2011 1:16 am

a bunch of people on IRC helped fix it
i uploaded the new weapon idea to xelerus - the driftmoon
muffildy
Anarchist
Anarchist
Posts: 19
Joined: Fri Jul 15, 2011 1:16 am

http://xelerus.de/index.php?s=mod&id=950

Driftmoon weapon system onboard sapphire yacht
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

i was going to say you can add an expiration : crystals expire. you can usually find the codes you need or adapt the ones in the game pretty easy..
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
arham
Anarchist
Anarchist
Posts: 1
Joined: Tue Feb 03, 2015 7:35 am

The best way to learn specific details about modding in Trans is to download a mod that uses that and pick it apart to find out how it works.
Lily lara
Post Reply