The Dink Network

Alternative Hero

April 2nd 2010, 07:38 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
When Dink reads a story book, a flashback will take place and instead of Dink being controlled, the hero of the story Dink is reading is the controllable hero for the moment. Thing is that I want the other hero use only one weapon and disable magic and the inventory screen. Right now the alternative hero can use everything Dink has.
April 2nd 2010, 07:41 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
I've used alternative heroes with disabled magic and weapons in the scourger. (check the goblin world)

Unfortunately I don't think there's a good way of disabling the inventory screen. You could attach a script to the return key, but that'd require you to script the entire inventory screen yourself, I think.
April 2nd 2010, 08:59 AM
spike.gif
Nah, there's a command to bring up the inventory. Then just add the inventory pop-up sound and you're set, more or less.
//button4.c
void main()
{
playsound(18,22050,0,0,0);
show_inventory();
}
April 2nd 2010, 02:46 PM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Been playing Scourger today and it's a great DMOD! I'm currently at the disguised as a goblin part now. Kinda want to implement that technique into my dmod. Looked through all the scripts and found the goblin disguise part. I can make Dink a knight in my DMOD but I want that 'I can't use this weapon/magic while in this shape' thingie. Help would be greatly appreciated.
April 2nd 2010, 02:50 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Just use a global variable and set it to something when a knight. Then check for that in every weapon script. That's what I did in Three Amulets during Shadow form.

EDIT:
Or just check dink's basewalk in every weapon/magic script. That way you don't have to waste an variable and save some scripting.
April 2nd 2010, 03:06 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
That's the same technique I used in the scourger too. &lock is the global variable I used. (in case you want to look it up)
April 2nd 2010, 05:23 PM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
I'll look into it tomorrow, thanks for all the help.