Page 1 of 1
SI Trolls Special Items on Death
Posted: Tue Jan 31, 2017 10:21 am
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.
Re: SI Trolls Special Items on Death
Posted: Tue Jan 31, 2017 10:03 pm
by Gotcha!
Wouldn't this be the troll that holds the key to the chest containing the Serpent Staff in Furnace?
Re: SI Trolls Special Items on Death
Posted: Tue Jan 31, 2017 11:10 pm
by Knight Captain
No sir. That troll has a different key.
Re: SI Trolls Special Items on Death
Posted: Wed Feb 01, 2017 3:39 pm
by Gotcha!
Then this might be a genuine trolling troll then:
Carrying a key of which there is no lock.
Re: SI Trolls Special Items on Death
Posted: Wed Feb 01, 2017 4:58 pm
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.
Re: SI Trolls Special Items on Death
Posted: Wed Feb 01, 2017 8:16 pm
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.
Re: SI Trolls Special Items on Death
Posted: Sat Feb 04, 2017 2:49 pm
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.
Re: SI Trolls Special Items on Death
Posted: Sat Feb 04, 2017 4:40 pm
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;
}
}
Re: SI Trolls Special Items on Death
Posted: Sat Feb 04, 2017 8:24 pm
by Lavacopter
U7Wizard lets you do object searches by just the quality.
Re: SI Trolls Special Items on Death
Posted: Sun Feb 05, 2017 1:08 pm
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.