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

注册 登录

QQ登录

只需一步,快速开始

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

[资料] 防御力演示视频

[复制链接]

57

主题

1664

帖子

2001

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
258
金元
9685
积分
2001
精华
0
注册时间
2009-6-22
跳转到指定楼层
主题
发表于 2010-7-3 14:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本来这东西早就有了…………有一段时间没玩辐射3就给放弃做进MOD里了。

辐射3原本装备的属性只能防御百分比不能无视防御值以下的攻击,rlen(那个一个MOD写了80多个脚本的脚本狂)给这游戏弄了个防御值脚本可以无视攻击,可调节。
这脚本如下

scn T51Bscript

short on
float hp0
float hp1
float hp2
float hp3
float hp4
float hp5
float hp6
float dmg0
float dmg1
float dmg2
float dmg3
float dmg4
float dmg5
float dmg6

Begin onequip
   set on to 1
   set hp0 to player.getav health
   set hp1 to player.getav EnduranceCondition
   set hp2 to player.getav PerceptionCondition
   set hp3 to player.getav LeftAttackCondition
   set hp4 to player.getav RightAttackCondition
   set hp5 to player.getav LeftMobilityCondition
   set hp6 to player.getav RightMobilityCondition
End

Begin onunequip
   set on to 0
End

Begin gamemode
   if on == 1
       set dmg0 to hp0 - player.getav health
       if dmg0 > 0
         set dmg1 to hp1 - player.getav EnduranceCondition
         set dmg2 to hp2 - player.getav PerceptionCondition
         set dmg3 to hp3 - player.getav LeftAttackCondition
         set dmg4 to hp4 - player.getav RightAttackCondition
         set dmg5 to hp5 - player.getav LeftMobilityCondition
         set dmg6 to hp6 - player.getav RightMobilityCondition
         if dmg0 < 300
             player.restoreav health dmg0
             player.restoreav EnduranceCondition dmg1
             player.restoreav PerceptionCondition dmg2
             player.restoreav LeftAttackCondition dmg3
             player.restoreav RightAttackCondition dmg4
             player.restoreav LeftMobilityCondition dmg5
             player.restoreav RightMobilityCondition dmg6
             return
         else
             set hp0 to player.getav health
             set hp1 to player.getav EnduranceCondition
             set hp2 to player.getav PerceptionCondition
             set hp3 to player.getav LeftAttackCondition
             set hp4 to player.getav RightAttackCondition
             set hp5 to player.getav LeftMobilityCondition
             set hp6 to player.getav RightMobilityCondition
         endif
       endif
   endif
End




回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-4-8 21:29 , Processed in 0.028644 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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