Jump to content

Photo

Guy Behavior Event Change

script guy event item sword

  • Please log in to reply
2 replies to this topic

#1 linkinsphere

linkinsphere

    Junior

  • Members
  • Gender:Male
  • Location:US

Posted 25 January 2018 - 08:40 PM

It's been awhile since I've worked on my quest, but I'm back.

 

Anyway... I have an issue revolving around a supposedly simple script.

 

When Link enters a Cave/Item room, I want the Guy to detect whether Link currently has the White Sword or not. If he does, his White Sword's damage will increase by half a heart (2 damage). So I need help with two things: Detect the condition of Link wielding the White Sword and how can I change the damage of the white sword if the condition is met? I appreciate any help! :)



#2 Saffith

Saffith

    IPv7 user

  • ZC Developers
  • Gender:Male

Posted 25 January 2018 - 10:06 PM

You can do this with string control codes.
Make another item that's a copy of the white sword with the power increased. Start the string with this control code:
\5\X\Y
where X is the item number of the regular white sword (normally 6) and Y is the number of another string. Start that other string with
\17\X\16\Y
with X being the number regular white sword and Y being the powered up version.
  • linkinsphere likes this

#3 linkinsphere

linkinsphere

    Junior

  • Members
  • Gender:Male
  • Location:US

Posted 26 January 2018 - 02:37 PM

You can do this with string control codes.
Make another item that's a copy of the white sword with the power increased. Start the string with this control code:
\5\X\Y
where X is the item number of the regular white sword (normally 6) and Y is the number of another string. Start that other string with
\17\X\16\Y
with X being the number regular white sword and Y being the powered up version.

Great! Thanks for your help! :)





Also tagged with one or more of these keywords: script, guy, event, item, sword

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users