3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 2674|回复: 5
打印 上一主题 下一主题

[求助] 召唤脚本高手……

[复制链接]

83

主题

1883

帖子

1686

积分

游戏狂人

Rank: 6Rank: 6

贡献度
111
金元
12418
积分
1686
精华
0
注册时间
2008-2-22
跳转到指定楼层
主题
发表于 2011-2-28 18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
日本刀背在背上不爽……挂在腰间只能是单手的也不爽……武丽堂里有让单手武器抽出来就变成双手的脚本,不过蓄力攻击依然还是单手武器的……因此求改进此脚本……

SCN AA0SamuraiSword2H

Ref Me
Ref Who
Ref Shield
Short C
Short M
Long KEY

Begin OnAdd
set Who to Getcontainer
set Me to GetBaseObject
set Shield to Who.GetEquippedObject 13
end

Begin OnEquip
setWeaponType 0
set Who to Getcontainer
If Shield != 0
Who.UnequipItem Shield
endif
set C to 1
end

begin MenuMode 1
set Shield to Who.GetEquippedObject 13
If Shield != 0 && Who.GetEquipped Me
Who.UnequipItem Shield
endif
SetWeaponType 1
set M to 1
end

Begin OnUnEquip
setWeaponType 0
set C to 0
end

Begin OnDrop
set c to 0
end

Begin GameMode
if Who.GetEquipped Me && C == 0
SetWeaponType 0
  If Shield != 0
  Who.UnequipItem Shield
  endif
set C to 1
endif

if M == 1 && Who.IsWeaponOut == 0
setWeaponType 0
set M to 0
endif

If C == 1 && Who.IsWeaponOut
set KEY to GetControl 8
SetWeaponType 1
set C to 2
elseIf C == 2 && IsKeyPressed2 KEY
setWeaponType 0
elseIf C == 2 && Who.IsWeaponOut == 0
setWeaponType 0
Message " "
Message " "
Who.UnequipItem Me
Who.equipItem Me
set c to 1
endif

If Who.GetEquipped Me == 0 && C == 1
setWeaponType 0
set C to 0
endif

end
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-10 14:11 , Processed in 0.029830 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表