Jump to content

Photo

Permanent Clock Item??


  • Please log in to reply
3 replies to this topic

#1 theAssetZoo

theAssetZoo

    Newbie

  • Members
  • Location:Having a swim in Minus World

Posted 14 July 2021 - 10:14 AM

Hey all. As the title says, is there any way to enable the Clock item as a permanent inventory item? Think in terms of a Stop spell/ item, using the magic meter. I'm using 2.53 by the way. Thanks in advance.



#2 Mani Kanina

Mani Kanina

    Rabbits!

  • Members

Posted 14 July 2021 - 11:06 AM

The easiest way is a make a separate item with a simple item script that upon use spawns the clock item on link's X, Y, and Z coordinates. This is what I had for one of my older quest projects but that is really old and might not be up to par with modern implementations of zscript.

I don't think there is any way to do this in-editor in 2.53 without scripting.


  • Mitsukara and theAssetZoo like this

#3 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 14 July 2021 - 01:00 PM

item script ClockItem
{
    void run()
    {
        item it = CreateItemAt(I_CLOCK, Link->X, Link->Y);
        it->Z = Link->Z; 
    }
}

As per above post, and aye, that's the only way, even in 2.55.


  • ShadowTiger, Mitsukara, Mani Kanina and 1 other like this

#4 theAssetZoo

theAssetZoo

    Newbie

  • Members
  • Location:Having a swim in Minus World

Posted 24 July 2021 - 10:50 AM

Ah, my thanks to you both.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users