scripting commands

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

scripting commands

Post by agentorangeguy »

Is there a document somewhere with all the commands to use in scripting? I am trying to change an object's shape in a script but cannot do it. I know how to change the frames of an object within a script but I don't know what to use to change it's shape. Anyone know?
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: scripting commands

Post by Malignant Manor »

In intrinsics, you use UI_set_item_frame. For scripting you use frame int_exp;

Seven Towers has examples for both ways.
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

Re: scripting commands

Post by agentorangeguy »

I can set the frames, but I need to know how to change the object's actual shape from one to another within a script. I know the UI_set_item_shape intrinsic but is there a way to use that within a script?
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: scripting commands

Post by Malignant Manor »

Sorry, I misread. You probably have to create a function that changes the shape number of an object. Then you can call it from the script.
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

Re: scripting commands

Post by agentorangeguy »

ohhhh ok, i didn't think of that. I'll try that now, thanks!
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: scripting commands

Post by marzo »

The full range of commands allowed in a script is here.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Locked