Welcome to the Builder Academy

Question request: osetapply for dg scripts

More
22 Jan 2016 17:39 #5562 by rudeboyrave
It would work similar to osetval but would require 3 arguments.
the idea would allow you to use triggers to modify the values of object applys.

arg 1 for the location of the apply, arg 2 for what it is setting and 3rd arg would be the modifier

syntax would be something like

osetapply 1 22 23
osetapply 2 22 23
osetapply 3 22 23
osetapply 4 22 23
osetapply 5 22 23
osetapply 6 22 23

i tried modifying osetval to do this but for some reason it doesnt work on certain items? (food etc)

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

More
26 Jan 2016 10:31 #5568 by WhiskyTest
oset_apply will automatically check for an appropriate location.
If the same 'type' of affect is being applied then it will stack them on the same location.
Otherwise it will use the next free location, up to MAX_OBJ_AFFECT.

There shouldn't be any need for the builder writing the trigger to specify a location, unless you are doing some real funky triggers? :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds