Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create another type of arrow
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #9
RE: Create another type of arrow
Yes that was very similar to the idea I had in mind Anarch. I was thinking this can be done in a single player event, and afterwards the scripter can add their own arrows. The code should look something like this:
Code:
on=@itemdclick
if (<act.type>==t_weapon_arrow)
tag.ammotype_arrow=<act.baseid>
sysmessage Arrow Type Changed To: <act.name>
return 1
elseif (<act.type>==t_weapon_bolt)
tag.ammotype_bolt=<act.baseid>
sysmessage Bolt Type Changed To: <act.name>
return 1
endif

on=@hittry
if (<act.type>==t_weapon_bow)
if !(strmatch(<tag0.ammotype_arrow>,0))
  if (<rescount <tag0.ammotype_arrow>>)
   act.tag.override.ammotype=<tag0.ammotype_arrow>
  else
   act.tag.override.ammotype=
  endif
endif
elseif (<act.type>==t_weapon_xbow
if !(strmatch(<tag0.ammotype_bolt>,0))
  if (<rescount <tag0.ammotype_bolt>>)
   act.tag.override.ammotype=<tag0.ammotype_bolt>
  else
   act.tag.override.ammotype=
  endif
endif
endif

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
07-04-2012 06:52 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Create another type of arrow - Extreme - 07-03-2012, 11:06 AM
RE: Create another type of arrow - Skul - 07-03-2012, 12:07 PM
RE: Create another type of arrow - Skul - 07-04-2012, 01:48 AM
RE: Create another type of arrow - Skul - 07-04-2012 06:52 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)