SI Trolls Special Items on Death

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
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

SI Trolls Special Items on Death

Post by Knight Captain »

In the released SI+SS game, the troll shape has death code. Combined with the TOURNAMENT flag, these IDs create:

npc_id 1: SHAPE_KEY, FRAME_19, QUALITY_21.
npc_id 2: SHAPE_ARTIFACT, FRAME_RUINED_SPELLBOOK.

The Beta calls this key a chest_key, but I'm not sure where that chest would be found.
Gotcha!
Posts: 354
Joined: Thu May 14, 2020 1:34 pm

Re: SI Trolls Special Items on Death

Post by Gotcha! »

Wouldn't this be the troll that holds the key to the chest containing the Serpent Staff in Furnace?
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: SI Trolls Special Items on Death

Post by Knight Captain »

No sir. That troll has a different key.
Gotcha!
Posts: 354
Joined: Thu May 14, 2020 1:34 pm

Re: SI Trolls Special Items on Death

Post by Gotcha! »

Then this might be a genuine trolling troll then:
Carrying a key of which there is no lock. ;)
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

Re: SI Trolls Special Items on Death

Post by agentorangeguy »

Pretty sure you could actually find your ruined spellbook in Furnace where the troll was... wonder if they planned on just scripting it and decided to just go with having the key on his body? Perhaps when they actually placed a key they used a different door quality and key quality.
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: SI Trolls Special Items on Death

Post by Knight Captain »

Yes, it's there. I'd like to add an egg for "Whoa, look at that!" And probably add something to the Equipment List scroll.
Lavacopter

Re: SI Trolls Special Items on Death

Post by Lavacopter »

Used, actually! Near the serpent staff there's a one time usecode egg that calls Func06AB, which among other things which are less clear, searches for two trolls and sets their ids and tournament flags. As for the key, it opens a door in the monks basement and an empty chest in the goblin village. There's a duplicate key in the swamp on Monk Isle anyway, so it's completely useless. The script also leads to there being a burnt spellbook on the ground /and/ on a troll's body so it's all pretty screwy.
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: SI Trolls Special Items on Death

Post by Knight Captain »

Yes, that's the code I'm reading. How did you find where that key was used?

You are right the egg is there, but since the nearby egg doesn't trigger nothing seems to come from this egg unless the Key_Guy is close to it. If so, on his death he has two keys. The ruined spellbook is placed on the map from the game start, so the one on the troll's body is duplicated. Perhaps they just left this ill-working egg in and forgot about removing it during the rush to release?
void eggFurnaceTournamentTrolls object#(0x6AB) ()
{
var eggs;
var index;
var max;
var egg;
var egg_frame;
var action;
var nearby_trolls;

if (event == EGG)
{
eggs = UI_find_nearby(item, SHAPE_EGG, 20, 16);

for (egg in eggs with index to max)
{
egg_frame = UI_get_item_frame(egg);
if (egg_frame == 0)
{
action = UI_execute_usecode_array(egg, [no_halt, hatch_egg]);
action = UI_delayed_execute_usecode_array(AVATAR, [no_halt, call_usecode, 1707], 5);
abort;
}
}
}

if (event == SCRIPTED)
{
nearby_trolls = UI_find_nearby(item, SHAPE_TROLL, 20, 0);
if (nearby_trolls)
{
UI_set_npc_id(nearby_trolls[1], 1);
UI_set_item_flag(nearby_trolls[1], SI_TOURNAMENT);
UI_set_npc_id(nearby_trolls[2], 2);
UI_set_item_flag(nearby_trolls[2], SI_TOURNAMENT);
}
else
return;
}
}
Lavacopter

Re: SI Trolls Special Items on Death

Post by Lavacopter »

U7Wizard lets you do object searches by just the quality.
Lavacopter

Re: SI Trolls Special Items on Death

Post by Lavacopter »

Aaaaanyway, it definitely works some of the time, as I was inspired to look into it further because I remembered the duplicate spellbook from at least one of my playthroughs.
Locked